Azure App Service部署的版本4-ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP [英] Version 4 of Azure App Service Deploy - ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP

查看:97
本文介绍了Azure App Service部署的版本4-ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是这个问题.原始问题的答案对我有所帮助,但我被困在其他地方.提醒一下,我想使用发布配置文件来部署我的应用程序.我在Azure中的Web应用程序在wwwroot中有两个子文件夹,其中一个称为后端.我想将我的应用程序部署到该文件夹​​.我不确定msdeploy为什么要创建任何东西,因为该Web应用程序已经存在-我只需要将工件保存在后端文件夹中即可.

This is a follow-up question to this question. The answer in the original question helped me, but I am stuck somewhere else. As a reminder, I want to deploy my application using a publish profile. My web app in Azure has two subfolders inside wwwroot and one of them is called backend. I want to deploy my application to that folder. I am not sure why msdeploy wants to create anything, since the web app is already there - I just need to get the artifacts inside the backend folder.

以下是日志的相关部分(某些名称更改为 xyz ):

Here is the relevant part of the log (with some names changed to xyz):

2018-06-14T09:19:25.0295238Z开始执行msdeploy.exe

2018-06-14T09:19:25.0295238Z Start executing msdeploy.exe

2018-06-14T09:19:25.0323018Z"C:\ Program Files \ IIS \ Microsoft Web Deploy V3 \ msdeploy.exe" -source:package ='D:\ a \ r1 \ a \ artifacts \ drop \ xyz.zip'-dest:auto,computerName ="https://xyz.scm.azurewebsites.net:443/msdeploy.axd?site=xyz/backend",userName ="$ xyz",密码="*** ,authtype =" basic,includeAcls =" False"-verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:" D:\ a \ r1 \ a \ artifacts \ drop \ xyz.SetParameters. xml" -enableRule:DoNotDeleteRule -retryAttempts:6 -retryInterval:10000

2018-06-14T09:19:25.0323018Z "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:package='D:\a\r1\a\artifacts\drop\xyz.zip' -dest:auto,computerName="https://xyz.scm.azurewebsites.net:443/msdeploy.axd?site=xyz/backend",userName="$xyz",password="***",authtype="basic",includeAcls="False" -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"D:\a\r1\a\artifacts\drop\xyz.SetParameters.xml" -enableRule:DoNotDeleteRule -retryAttempts:6 -retryInterval:10000

2018-06-14T09:19:25.6154385Z信息:使用ID'89f1210b-39ba-4758-b7ee-76a06407a503'连接到远程服务器.

2018-06-14T09:19:25.6154385Z Info: Using ID '89f1210b-39ba-4758-b7ee-76a06407a503' for connections to the remote server.

2018-06-14T09:19:28.0800802Z信息:创建应用程序(默认网站)

2018-06-14T09:19:28.0800802Z Info: Creating application (Default Web Site)

2018-06-14T09:19:28.2012951Z ## [debug] rc:1

2018-06-14T09:19:28.2012951Z ##[debug]rc:1

2018-06-14T09:19:28.2013216Z ## [debug] rc:1

2018-06-14T09:19:28.2013216Z ##[debug]rc:1

2018-06-14T09:19:28.2013360Z ## [debug]成功:false

2018-06-14T09:19:28.2013360Z ##[debug]success:false

2018-06-14T09:19:28.2013523Z ## [debug]成功:false

2018-06-14T09:19:28.2013523Z ##[debug]success:false

2018-06-14T09:19:28.2073234Z ## [错误]无法将Web包部署到App Service.

2018-06-14T09:19:28.2073234Z ##[error]Failed to deploy web package to App Service.

2018-06-14T09:19:28.2081930Z ## [debug]已处理:## vso [task.issue type = error;]无法将Web包部署到App Service.

2018-06-14T09:19:28.2081930Z ##[debug]Processed: ##vso[task.issue type=error;]Failed to deploy web package to App Service.

2018-06-14T09:19:28.2082198Z ## [debug] {}

2018-06-14T09:19:28.2082198Z ##[debug]{}

2018-06-14T09:19:28.2082470Z ## [debug] System.DefaultWorkingDirectory = D:\ a \ r1 \ a

2018-06-14T09:19:28.2082470Z ##[debug]System.DefaultWorkingDirectory=D:\a\r1\a

2018-06-14T09:19:28.2083178Z ## [错误]错误代​​码:ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP更多信息:无法 使用指定的提供程序("createApp")完成操作时 使用Web管理服务进行连接.如果 服务器管理员尚未授权用户执行此操作. createApp http://go.microsoft.com/fwlink/?LinkId=178034 了解更多 网址: http://go.microsoft.com/fwlink/?LinkId=221672# ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP .

2018-06-14T09:19:28.2083178Z ##[error]Error Code: ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP More Information: Could not complete an operation with the specified provider ("createApp") when connecting using the Web Management Service. This can occur if the server administrator has not authorized the user for this operation. createApp http://go.microsoft.com/fwlink/?LinkId=178034 Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP.

错误计数:1.

推荐答案

我设法解决了该问题.根据 @starian chen-MSFT 的回答,我需要在SetParameters.xml中设置正确的参数.为此,我将以下内容添加到了Visual Studio Build任务中:

I managed to resolve the issue. According to this answer by @starian chen-MSFT, I needed to set the correct parameter in SetParameters.xml. I did this by adding the following to my Visual Studio Build task:

/p:DeployIisAppPath="xyz"

其中xyz是发布配置文件中DeployIisAppPath元素的值.

where xyz is the value of DeployIisAppPath element in the publish profile.

这篇关于Azure App Service部署的版本4-ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆