简体   繁体   English

在Azure中设置Windows身份验证

[英]Set up windows authentication in Azure

Our azure web site have an administrative folder. 我们的azure网站上有一个管理文件夹。 To login an administrative part we use windows authentication. 要登录管理部分,我们使用Windows身份验证。 To set up windows authentication in virtual machines we should set overrideModeDefault="Allow" () in applicationHost.config file and create windows user. 要在虚拟机中设置Windows身份验证,我们应该在applicationHost.config文件中设置overrideModeDefault =“ Allow”()并创建Windows用户。 My question is how can I specify these actions in deployment package (ServiceDefinition file)? 我的问题是如何在部署包(ServiceDefinition文件)中指定这些操作?

Thanks! 谢谢!

First of all, do you really require windows authentication? 首先,您真的需要Windows身份验证吗? I would recommend to use any other authentication mechanism. 我建议使用任何其他身份验证机制。

If at all require, then you will have to setup startup task in your azure web role and in that start up task, you can write script to update applicationhost file and create windows user. 如果完全需要,那么您将必须在azure Web角色中设置启动任务,并且在该启动任务中,您可以编写脚本来更新applicationhost文件并创建Windows用户。

This link will help you in creating start up task. 链接将帮助您创建启动任务。 For updating applicationhost file and creating windows user, probably you can use powershell. 为了更新applicationhost文件并创建Windows用户,可能可以使用powershell。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM