Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Delete all custom Domain certificates AppService

$
0
0

I created a form where I can add but also delete a custom domain and certificate.I delete the domain in the following way:

var hostBinding = hostnameBindings.Get(_customDomain);if (hostBinding != null){    SiteHostNameBindingResource siteHostNameBinding = hostBinding.Value;    await siteHostNameBinding.DeleteAsync(WaitUntil.Completed);}

But I don't know how to delete the certificate:

AppCertificateCollection certcollection = _resourceGroupResource.GetAppCertificates();

If I know the name of the certificate, I can do it like this:

var certificate = certcollection.Exists("name");certificate.Delete();

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>