Where is the generated certificate? #46
Unanswered
omarmallat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, I created a web app, with a basic plan... I also added a custom domain without any SSL binding.
Then, I deployed the AzureWebAppSSLManager that created:
I uploaded 2 files to the storage account, inside the
certificates
container:appproperties.json
and it contains the custom domain added in the web app, as well as web app name and its resource group name, and finally the dns zone and its resource group name.certinfo.json
and it contains info about the certificate organization, location, country...After 5 minutes, the function run successfully as per its log and I found a new file
accountkey.pem
in thecertificates
container. but I also received emails about an error in the line:var webApp = _azure.WebApps.ListByResourceGroup(_resourceResGroup).Where(w => w.Name.Equals(_resourceName, StringComparison.CurrentCultureIgnoreCase)).SingleOrDefault();
The error is:
The WebAppSSLManager Azure Function has encountered an error.Unable to complete the processing for testing.mubadalawtc.com Exception Message: Operation returned an invalid status code "Forbidden" Exception StackTrace: at Microsoft.Azure.Management.AppService.Fluent.WebAppsOperations.ListByResourceGroupWithHttpMessagesAsync(String resourceGroupName, Nullable"1 includeSlots, Dictionary"2 customHeaders, CancellationToken cancellationToken) at Microsoft.Azure.Management.AppService.Fluent.WebAppsOperationsExtensions.ListByResourceGroupAsync(IWebAppsOperations operations, String resourceGroupName, Nullable"1 includeSlots, CancellationToken cancellationToken) at Microsoft.Azure.Management.AppService.Fluent.WebAppsImpl.<>c__DisplayClass1_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Management.ResourceManager.Fluent.Core.PagedCollection"2.LoadPageWithWrapModelAsync(Func"2 listInnerAsync, Func"3 listInnerNext, Func"3 wrapModelAsync, Boolean loadAllPages, CancellationToken cancellationToken) at Microsoft.Azure.Management.AppService.Fluent.WebAppsImpl.ListByResourceGroupAsync(String resourceGroupName, Boolean loadAllPages, CancellationToken cancellationToken) at Microsoft.Azure.Management.ResourceManager.Fluent.Core.Extensions.Synchronize[TResult](Func"1 function) at Microsoft.Azure.Management.AppService.Fluent.WebAppsImpl.ListByResourceGroup(String resourceGroupName) at WebAppSSLManager.AzureHelper.GetResourceConfigurationAsync() in C:\home\site\repository\src\WebAppSSLManager\AzureHelper.cs:line 372 at WebAppSSLManager.AzureHelper.NeedsNewCertificateAsync() in C:\home\site\repository\src\WebAppSSLManager\AzureHelper.cs:line 137 at WebAppSSLManager.WebAppSSLManager.Run(TimerInfo myTimer, IAsyncCollector"1 messageCollector, ILogger logger) in C:\home\site\repository\src\WebAppSSLManager\WebAppSSLManager.cs:line 54
Beta Was this translation helpful? Give feedback.
All reactions