我在 Azure 中创建托管证书时出现错误的资源组

发布于 2025-01-10 20:09:00 字数 1350 浏览 0 评论 0 原文

我想为我的网络应用创建一个免费的托管证书。 创建证书时,出现错误未找到资源组 xxx 下的资源...尽管出现错误,但仍创建了证书,但也创建了不存在的资源组。该资源组是我以前删除过的旧组。

一切似乎都工作正常,但我希望有一个一致的情况。

我让你详细看看:

在此处输入图像描述

您在上图中看到的是我的 Web 应用程序,位于资源组 dev-p...l-rg-westeu

我进入 TLS/SSL 设置 页面(或进入 TLS/SSL 设置(预览) 页面。没有任何变化,我收到相同的错误)并创建一个托管证书.. 这是我得到的:

在此处输入图像描述

我收到错误消息,在资源组 dev-m...o-rg-westeu 下找不到 Web 应用程序 xxx。这是正确的!!因为 Web 应用程序位于资源组 dev-p...l-rg-westeu 下,而不是在 dev-m...o-rg-westeu 下。

但是,证书已创建,但位于错误的资源组下:

在此处输入图像描述

然后我删除了证书。我还删除了错误的资源组,因为我不需要它,然后再试一次。总是同样的错误。我还尝试通过 powershall 创建证书:

 New-AzWebAppCertificate -ResourceGroupName "dev-p...l-rg-westeu" -WebAppName "xxx" -Name "xxxx" -HostName "xxxx" -SslState 'SniEnabled'

如您所见,我明确设置了资源组名称。但证书始终是在错误的资源组中创建的。我调试了命令。看来有缓存存在。我可以清除它吗?这会是问题所在吗?

我还删除并创建了一个新的网络应用程序。没什么……

你能帮我吗?

谢谢

I would like to create a free Managed Certificate for my web app.
When I create the certificate I get the error Resource under Resource group xxx not found... Despite the error, the certificate is created, but also the inexistent resource group is created. The resource group is an old group I deleted times ago.

Everythings seems to be worked correctly but I would like to have a consistent situation.

I let you see in details:

enter image description here

What you see in the image above is my web app that is in the resource group dev-p...l-rg-westeu.

The I go in the TLS/SSL settings page (or in the TLS/SSL settings (preview) page.. nothing change, I get same error) and I create a managed certificate.. Here it is what I get:

enter image description here

I get the error that the web app xxx is not found under resource group dev-m...o-rg-westeu.. That's correct!! Because the web app is under the resource group dev-p...l-rg-westeu, not under dev-m...o-rg-westeu.

However the certificate is created, but under the wrong resource group:

enter image description here

Then I deleted the certificate. I deleted also the wrong resource group, because I do not need it and try and try again. Always same error. I also tryed to create the certificate via powershall:

 New-AzWebAppCertificate -ResourceGroupName "dev-p...l-rg-westeu" -WebAppName "xxx" -Name "xxxx" -HostName "xxxx" -SslState 'SniEnabled'

As you can see I set explicitely the resource group name. But the certificate is always created in the wrong resource group. I debugged the command. It seems a cache exists. Can I clear it? Could it be the problem?

I also deleted and created a new web app. Nothing...

Can you help me please?

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

疏忽 2025-01-17 20:09:00

我们已经使用您给定的 PowerShell 命令在我们的环境中进行了测试,并且也能够添加我们自己的资源组。

我们只有一个资源组,在其中创建了应用服务

在此处输入图像描述

< strong>为我们的资源组中给定的 WebApp 创建应用服务托管证书

 New-AzWebAppCertificate -ResourceGroupName "RGNAME" -WebAppName "appname" -Name "nameofCert" -HostName "www.name.com"

运行后,它成功添加到我们的资源组中。
请确保您提供了创建应用服务的正确资源组。您已成功删除旧资源组

命令成功运行后,刷新 Azure 门户,然后转到 TLS/SSL 设置(预览版) 绑定并检查证书。

输出详细信息供参考:-

在此处输入图像描述

证书已添加到我们自己的资源组

在此处输入图像描述

有关详细信息,请参阅以下链接:

We have tested in our environment with your given PowerShell command and can able to add in our own resource group as well.

We have only one resource group in which we created an app service

enter image description here

Run the below command for create an App Service Managed Certificate for the given WebApp in our resource group.

 New-AzWebAppCertificate -ResourceGroupName "RGNAME" -WebAppName "appname" -Name "nameofCert" -HostName "www.name.com"

After running its added succesfully to our resource group.
Please make sure that you have provided the correct resource group where your app service is created. And you have deleted the old resource group successfully .

Once the the command successfully run make a refresh of the Azure portal then goto TLS/SSL settings (preview) binding and check the certificate.

OUTPUT DETAILS FOR REFERENCE:-

enter image description here

Certificate added to our own resource group

enter image description here

For more information please refer the below links:

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