容器的Azure Web应用程序:如何密码保护
如何密码protect 在Azure Web应用程序上为容器部署的演示Web应用程序?
我们现在不需要精心设计的用户管理。具有标准密码的单个用户就足够了。
谢谢
How can I password protect a demo web application deployed on Azure Web App for Containers?
We don't require elaborate user management right now. A single user with a standard password would suffice.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
•您可以密码保护'azure Web应用程序的容器' ,或任何试图访问配置设置,应用程序设置和该Azure Web应用程序的一般设置的成员。为此,请参考以下文档链接,用于通过Azure Devops构建管道并通过YAML文件成功为容器创建Azure Web应用程序: -
https:// https:// https:// https://learlearn.microsoft.com/en-en-us/ azure/devops/pipelines/apps/cd/exploy-docker-webapp?view = azure-devops& tabs& tabs = java%2cyaml
在上面的链接中,您必须
将示例Web应用程序部署到容器中通过“ YAML”代码,但在此之前,您必须通过通过Github
通过Azure Devops上传该图像来构建和发布Docker映像并从容器注册表中检索图像。•一旦完成了上述内容,然后善待通过Azure门户创建的'Web应用程序',然后转到'设置 - >配置 - >一般设置 - >密码保护部分 - >选择仅保护分期环境或保护生产和分期环境以保护所有环境 - >使用所需密码参数输入“访问者密码”中的密码 - >确认访问者密码 - >保存'
以获取更多信息,请参阅下面的文档: -
https://learn.microsoft.com/en-us/azure/static-web-apps/password-protection
因此,通过遵循上述文档步骤,您可以配置密码保护您的Azure Web应用程序部署在容器上,用于单个用户/访问者。
• You can password protect the ‘Azure Web App for Containers’ for a visitor or any member who tries to access the configuration settings, application settings and general settings of that Azure web app. To do so, kindly refer to the below documentation link for building a pipeline through Azure DevOps and creating an Azure web app for containers successfully through yaml file: -
https://learn.microsoft.com/en-us/azure/devops/pipelines/apps/cd/deploy-docker-webapp?view=azure-devops&tabs=java%2Cyaml
In the above link, you will have to
deploy the sample web app to container through the ‘YAML’ code but before that, you will have to build and publish a Docker image to Azure Container Registry and retrieve the image from the container registry by uploading that image through Azure DevOps via Github
.• Once the above is done, then kindly navigate to the ‘Web App for Container’ created through the Azure portal, then go to ‘Settings --> Configuration --> General settings --> Password protection section --> select Protect staging environments only or Protect both production and staging environments to protect all environments --> Enter a password in ‘Visitor Password’ with required password parameters --> Confirm visitor password --> Save’
For more information, kindly refer to the documentation below: -
https://learn.microsoft.com/en-us/azure/static-web-apps/password-protection
Thus, by following the above document steps, you can configure password protection for your azure web app deployed on container for a single user/visitor.