容器的Azure Web应用程序:如何密码保护

发布于 2025-02-06 09:41:06 字数 128 浏览 3 评论 0原文

如何密码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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

命硬 2025-02-13 09:41:07

•您可以密码保护'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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文