gpt4 book ai didi

适用于容器的 Azure Web 应用程序 : how to password protect

转载 作者:行者123 更新时间:2023-12-03 01:19:05 25 4
gpt4 key购买 nike

如何密码保护部署在 Azure 容器 Web 应用程序上的演示 Web 应用程序?

我们现在不需要复杂的用户管理。具有标准密码的单个用户就足够了。

谢谢

最佳答案

• 您可以为尝试访问该 Azure Web 应用的配置设置、应用程序设置和常规设置的访问者或任何成员设置密码保护“用于容器的 Azure Web 应用” 。为此,请参阅以下文档链接,了解通过 Azure DevOps 构建管道并通过 yaml 文件成功为容器创建 Azure Web 应用程序:-

https://learn.microsoft.com/en-us/azure/devops/pipelines/apps/cd/deploy-docker-webapp?view=azure-devops&tabs=java%2Cyaml

在上面的链接中,您必须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 .

• 完成上述操作后,请导航至通过 Azure 门户创建的“容器 Web 应用程序”,然后转至“设置 --> 配置 --> 常规”设置 --> 密码保护部分 --> 选择仅保护临时环境或同时保护生产和临时环境以保护所有环境 --> 在“访客密码”中输入密码以及所需的密码参数 --> 确认访客密码 -->保存'

有关更多信息,请参阅以下文档:-

https://learn.microsoft.com/en-us/azure/static-web-apps/password-protection

因此,通过执行上述文档步骤,您可以为单个用户/访问者部署在容器上的 Azure Web 应用配置密码保护。

关于适用于容器的 Azure Web 应用程序 : how to password protect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72571229/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com