从存储帐户工具模板

时间:2018-02-27 13:04:34

标签: azure azure-storage azure-resource-manager

我正在尝试使用ARM模板部署新的Azure资源组。该模板使用托管在我的存储帐户上的webdeploy包。现在,当我尝试部署模板时,出现错误。

这是我运行的powershell命令

  

New-AzureRmResourceGroupDeployment -Name $ Name -ResourceGroupName $ Name -TemplateUri $ ArmTemplateUrl -TemplateParameterFile $ paramJsonFile

现在在我的参数文件中,我引用了一个Web部署包,其中包含URL中的sas令牌:

"singleMsDeployPackageUrl":  {
                                 "value":  "https://<MYNAME>.blob.core.windows.net/sitecore/Sitecore%208.2%20rev.%20170407_single.scwdp.zip?<MYTOKEN>"
                             },

我在下面发布了完整的错误。这曾经起作用,但在Azure中发生了一些变化?

  

New-AzureRmResourceGroupDeployment:1:43:59 PM - 资源Microsoft.Resources / deployments&#39; habitatazure-application&#39;失败的消息&#39; {     &#34;状态&#34;:&#34;失败&#34;,     &#34;错误&#34;:{       &#34;代码&#34;:&#34; ResourceDeploymentFailure&#34;,       &#34; message&#34;:&#34;资源操作在终端配置状态下完成&#39;失败&#39;。&#34;,       &#34;详情&#34;:[         {           &#34;代码&#34;:&#34;部署失败&#34;,           &#34; message&#34;:&#34;至少一个资源部署操作失败。请列出部署操作以获取详细信息有关用法,请参阅https://aka.ms/arm-debug   的信息。&#34 ;,           &#34;详情&#34;:[             {               &#34;代码&#34;:&#34;冲突&#34;,               &#34;消息&#34;:&#34; {\ r \ n \&#34;状态\&#34;:\&#34;失败\&#34;,\ r \ n \&#34 ;错误\&#34;:{\ r \ n \&#34;代码\&#34;:\&#34; ResourceDeploymentFailure \&#34;,\ r \ n \&#34;消息\&# 34;:\&#34;资源操作   已完成终端配置状态&#39;。\&#34;,\ r \ n \&#34;详细信息\&#34;:[\ r \ n {\ r \ n \&#34 ;代码\&#34;:\&#34;失败\&#34;,\ r \ n \&#34;消息\&#34;:\&#34;无法下载   package。\ r \ nAppgallery Deploy Failed:&#39; System.Net.WebException:请求已中止:无法创建SSL / TLS安全通道。\ r \ n at   在System.Net.WebClient.GetWebResponse上的System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\ r \ n(WebRequest请求,IAsyncResult结果)\ r \ n at   System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\ r \ n ---从抛出异常的上一个位置开始的堆栈跟踪结束--- \ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification中的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n   任务)\ r \ n在Microsoft.Web.Deployment.WebApi.AppGalleryPackage。&amp; amp; amp; amp; lt; Download&amp; amp; amp; amp; gt; d__a.MoveNext()\ r \ n ---结束堆栈跟踪来自   抛出异常的前一个位置--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.AppGalleryPackage。&amp; amp; amp; amp; lt; Download&amp; amp; amp; amp; gt; d__0.MoveNext()\ r \ n ---从上一个位置开始的堆栈跟踪结束   异常被抛出--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.DeploymentController。&amp; amp; amp; amp; lt; DownloadPackageAndSettings&amp; amp; amp; amp; gt; d__27.MoveNext()\ r \ n ---堆栈跟踪结束   抛出异常的前一个位置--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.DeploymentController。&amp; amp; amp; amp; lt; DownloadAndDeployPackage&amp; amp; amp; amp; gt; d__17.MoveNext()&#39; \ r \ n无法下载   package。\ r \ nAppgallery Deploy Failed:&#39; System.Net.WebException:请求已中止:无法创建SSL / TLS安全通道。\ r \ n at   在System.Net.WebClient.GetWebResponse上的System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\ r \ n(WebRequest请求,IAsyncResult结果)\ r \ n at   System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\ r \ n ---从抛出异常的上一个位置开始的堆栈跟踪结束--- \ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification中的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n   任务)\ r \ n在Microsoft.Web.Deployment.WebApi.AppGalleryPackage。&amp; amp; amp; lt; Download&amp; amp; amp; gt; d__a.MoveNext()\ r \ n ---堆栈跟踪结束以前   抛出异常的位置--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.AppGalleryPackage。&amp; amp; amp; lt; Download&amp; amp; amp; gt; d__0.MoveNext()\ r \ n ---从上一个位置开始的堆栈跟踪结束   异常被抛出--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.DeploymentController。&amp; amp; amp; lt; DownloadPackageAndSettings&amp; amp; amp; gt; d__27.MoveNext()\ r \ n --- ---以前的堆栈跟踪结束   抛出异常的位置--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.DeploymentController。&amp; amp; amp; lt; DownloadAndDeployPackage&amp; amp; amp; gt; d__17.MoveNext()&#39; \ r \ n无法下载   package。\ r \ nAppgallery Deploy Failed:&#39; System.Net.WebException:请求已中止:无法创建SSL / TLS安全通道。\ r \ n at   在System.Net.WebClient.GetWebResponse上的System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\ r \ n(WebRequest请求,IAsyncResult结果)\ r \ n at   System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\ r \ n ---从抛出异常的上一个位置开始的堆栈跟踪结束--- \ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification中的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n   任务)\ r \ n在Microsoft.Web.Deployment.WebApi.AppGalleryPackage。&amp; amp; lt; Download&amp; amp; gt; d__a.MoveNext()\ r \ n --- ---从先前位置开始的堆栈跟踪   抛出异常的地方--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.AppGalleryPackage。&amp; amp; lt; Download&amp; amp; gt; d__0.MoveNext()\ r \ n ---来自先前位置的堆栈跟踪结束,其中异常是   抛出--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.DeploymentController。&amp; amp; lt; DownloadPackageAndSettings&amp; amp; gt; d__27.MoveNext()\ r \ n --- ---从先前位置开始的堆栈跟踪   抛出异常的地方--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.DeploymentController。&amp; amp; lt; DownloadAndDeployPackage&amp; amp; gt; d__17.MoveNext()&#39; \ r \ n无法下载包。\ r \ nAppGallery   部署失败:&#39; System.Net.WebException:请求已中止:无法创建SSL / TLS安全通道。\ r \ n at   在System.Net.WebClient.GetWebResponse上的System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\ r \ n(WebRequest请求,IAsyncResult结果)\ r \ n at   System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\ r \ n ---从抛出异常的上一个位置开始的堆栈跟踪结束--- \ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification中的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n   任务)\ r \ n在Microsoft.Web.Deployment.WebApi.AppGalleryPackage。&amp; lt; Download&amp; gt; d__a.MoveNext()\ r \ n --- ---从前一个位置开始的堆栈跟踪   异常被抛出--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.AppGalleryPackage。&amp; lt; Download&amp; gt; d__0.MoveNext()\ r \ n ---从抛出异常的上一个位置开始的堆栈跟踪结束   --- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.DeploymentController。&amp; lt; DownloadPackageAndSettings&amp; gt; d__27.MoveNext()\ r \ n ---从上一个位置开始的堆栈跟踪   异常被抛出--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.DeploymentController。&amp; lt; DownloadAndDeployPackage&amp; gt; d__17.MoveNext()&#39; \ r \ n无法下载包。\ r \ n \ nAppgallery Deploy   失败:&#39; System.Net.WebException:请求已中止:无法创建SSL / TLS安全通道。\ r \ n在System.Net.HttpWebRequest.EndGetResponse(IAsyncResult)   asyncResult)\ r \ n在System.Net.WebClient.GetWebResponse(WebRequest请求,IAsyncResult结果)\ r \ n at   System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\ r \ n ---从抛出异常的上一个位置开始的堆栈跟踪结束--- \ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification中的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n   任务)\ r \ n在Microsoft.Web.Deployment.WebApi.AppGalleryPackage。&lt;下载&gt; d__a.MoveNext()\ r \ n ---从前一个位置的堆栈跟踪结束,其中异常是   抛出--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.AppGalleryPackage。&lt; Download&gt; d__0.MoveNext()\ r \ n ---从抛出异常的上一个位置开始的堆栈跟踪结束--- \ r \ n

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务   任务)\ r \ n在Microsoft.Web.Deployment.WebApi.DeploymentController。&lt; DownloadPackageAndSettings&gt; d__27.MoveNext()\ r \ n --- ---以前的堆栈跟踪结束   抛出异常的位置--- \ r \ n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\ r \ n at   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\ r \ n at   Microsoft.Web.Deployment.WebApi.DeploymentController。&lt; DownloadAndDeployPackage&gt; d__17.MoveNext()&#39; \&#34; \ r \ n} \ r \ n] \ r \ n} \ r \ n}&# 34;             }           ]         }       ]     }   }&#39;

1 个答案:

答案 0 :(得分:0)

任何人的信息(以及未来的参考)。我已经弄明白了(部分)问题。通过应用程序服务上的KUDU工具,我能够更准确地查明作为罪魁祸首的软件包。我发现了以下错误:

  

          从blob'https://github.com'下载包路径'Sitecore / Sitecore-Azure-Quickstart-Templates / releases / download / v1.5.0 / SetCompatibilityLevel.scwdp.zip'                         无法下载包。       

所以从Github.com下载包是个问题。我会尝试改变模板,以便在其他地方使用。