【Azure 应用服务】登录App Service 高级工具 Kudu站点的 Basic Auth 方式

方式,站点,Kudu,Azure · 浏览次数 : 64

小编点评

**解决方法:** 1. 在 Azure App Service 门户中访问 Deployment Center。 2. 在 Local Git/FTPS Credentials 中,找到 UserName 和 Password。 3. 在 kudu 站点的 URL 后加 `/basicauth`,并在弹出的验证窗口中输入 FTP credentials。 4. 在 Basic auth 中选择您要使用的 FTP 凭据类型。 5. 点击 "Save Changes"。 **注意:** * 请确保您已注册了应用程序并具有访问 Kudu 服务所需的 FTP 凭据。 * 在您使用基本认证时,请确保您的 FTP 凭据的用户名和密码是安全的。

正文

问题描述

从Azure App Service的页面中,直接跳转到高级管理工具Kudu站点(https://<your app service name>.scm.chinacloudsites.cn/)时,可以自动使用AAD用户(即登录Azure门户的订阅账号),同时,也可以使用App Service的发布账号(如FTP账号和密码)登录,那如何来使用呢?

There are 2 authentication mechanisms.

  • Single sign on. This is only available and a default mechanism accessing via browser. User will be authenticated via AAD login.
  • Basic Auth using Deployment-credentials. This is default for non browser - such as curl. However, one can force this mode on browser by appending basicauth such as https://mysite.scm.chinacloudsites.cn/basicauth.

问题解答

在Azure App Service的门户中,可以在Deployment Center中,查看到Deployment Center中的Local Git/FTPS Credentials项中的UserName和Password。

 

在获取到上一步的 UserNamePassword 后,通过 kudu 站点的 basicauth 接口登录它。

具体的操作方式为:

在Kudu站点的url后加/basicauth,在弹出的验证窗口中的输入FTP credentials。

https://<your app service name>.scm.chinacloudsites.cn/basicauth

 

 

附录一:禁用Kudu的FTP Credential方式登录(/basicauth), 可以通过Azure Cli的语句,具体如下:

az resource update --resource-group <resource-group> --name scm --namespace Microsoft.Web
--resource-type basicPublishingCredentialsPolicies --parent sites/<site-name>
--set properties.allow=false

 

参考资料

Accessing the kudu servicehttps://github.com/projectkudu/kudu/wiki/Accessing-the-kudu-service#authentication--authorization

 

与【Azure 应用服务】登录App Service 高级工具 Kudu站点的 Basic Auth 方式相似的内容:

【Azure 应用服务】登录App Service 高级工具 Kudu站点的 Basic Auth 方式

问题描述 从Azure App Service的页面中,直接跳转到高级管理工具Kudu站点(https://.scm.chinacloudsites.cn/)时,可以自动使用AAD用户(即登录Azure门户的订阅账号),同时,也可以使用App Servi

【Azure 应用服务】Java ODBC代码中,启用 Managed Identity 登录 SQL Server 报错 Managed Identity authentication is not available

问题描述 在App Service中启用Identity后,使用系统自动生成 Identity。 使用如下代码连接数据库 SQL Server: SQLServerDataSource dataSource = new SQLServerDataSource(); dataSource.setSer

【Azure 环境】移动应用 SSO 登录AAD, MSAL的配置为Webview模式时登录页面无法加载

问题描述 移动端集成MASL登录过程中,配置文件中配置项“authorization_user_agent”使用“DEFAULT”可以正常登录,但是改为“WEBVIEW”后就无法登陆,一直处于Loading状态。 参考的示例文档: https://docs.microsoft.com/zh-cn/a

【Azure 应用服务】使用Python Azure SDK 来获取 App Service的访问限制信息(Access Restrictions)

azure.core.exceptions.ClientAuthenticationError: Authentication failed: AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is

【Azure 应用服务】使用Docker Compose创建App Service遇见"Linux Version is too long. It cannot be more than 4000 characters"错误

{ "code":"DeploymentFailed", "message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usag

【Azure 应用服务】Azure JS Function 异步方法中执行SQL查询后,Callback函数中日志无法输出问题

Warning: Unexpected call to 'log' on the context object after function execution has completed. Please check for asynchronous calls that are not awaited or calls to 'done' made before function executi

【Azure 应用服务】 在App Service中无法上传证书[Private Key Certificates (.pfx)],导入Azure Key Vault中的证书也无法成功

问题描述 在App Service的TLS/SSL settings页面,切换到Private Key Certificates (.pfx),通过Import Key Vault Certificate方式上传证书,提示成功,实际没有上传成功。通过Upload Certificate的方式上传证书

【Azure 应用服务】部署WAR包到App Service访问出现404错误的解决方式

问题描述 在Linux的App Service上,通过FTP把war文件和HTML静态文件上传到wwwroot目录下,静态文件访问成功,但是java应用中的请求都返回404错误 问题解决 因为FTP上传文件只是把文件放在 WWWROOT 目录中,并没有部署war包成功。如果要部署war包,需要使用w

【Azure 应用服务】App Service的运行状况检查功能失效,一直提示"实例运行不正常"

问题描述 为App Service配置了健康检查,单独访问Health Check Path的路径,返回代码为200。但为什么在App Service的页面上,一直提示“实例运行不正常”呢? 问题解答 通过查看Health Check Path发送的请求,当使用HTTPS的时候,直接返回200,而当

【Azure 应用服务】Azure Web App 服务默认支持一些 Weak TLS Ciphers Suite,是否有办法自定义修改呢?

问题描述 当 Azure Web App 进行安全扫描后,发现依旧支持很多弱TLS加密套件(Weak TLS Ciphers Suite),那么是否有办法来关闭这些弱的加密套件呢? 在Windows IIS环境中,可以通过修改注册表修改 For Microsoft IIS, you should m