我想为我的网络应用创建一个免费的托管证书
。
创建证书时,出现错误未找到资源组 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:
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:
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:
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
发布评论
评论(1)
我们已经使用您给定的 PowerShell 命令在我们的环境中进行了测试,并且也能够添加我们自己的资源组。
我们只有一个资源组,在其中创建了应用服务
为 < strong>
为我们的资源组中给定的 WebApp 创建应用服务托管证书
。运行后,它成功添加到我们的资源组中。
请确保您提供了创建应用服务的正确资源组。您已成功删除旧资源组。
命令成功运行后,刷新 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
Run the below command for
create an App Service Managed Certificate
for the given WebApp in our resource group.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:-
Certificate added to our own resource group
For more information please refer the below links: