【问题标题】:Azure Web App for Containers: how to password protectAzure Web App for Containers:如何密码保护
【发布时间】:2022-06-13 20:58:41
【问题描述】:

我如何密码保护部署在 Azure Web App for Containers 上的演示 Web 应用程序?

我们现在不需要精细的用户管理。使用标准密码的单个用户就足够了。

谢谢

【问题讨论】:

标签: azure azure-web-app-service azure-appservice azure-container-service


【解决方案1】:

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

https://docs.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 App for Container',然后转到 '设置 --> 配置 --> 常规设置 --> 密码保护部分 --> 选择仅保护临时环境或同时保护生产和临时环境以保护所有环境 --> 在“访客密码”中输入密码和所需的密码参数 --> 确认访客密码 -->保存'

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-11-26
    • 1970-01-01
    • 1970-01-01
    • 2019-07-14
    • 1970-01-01
    • 1970-01-01
    • 2018-10-10
    相关资源
    最近更新 更多