Set custom domain for app service
See original GitHub issueLibrary name and version
Azure.ResourceManager.AppService
Query/Question
How do I add a custom domain to an app service?
The corresponding URL in the Azure portal is: https://portal.azure.com/<my>.onmicrosoft.com/resource/subscriptions/<id>/resourceGroups/<resource group>/providers/Microsoft.Web/sites/<app name>/domainsandssl
Environment
No response
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Configure custom domain suffix for App Service Environment
From the Azure portal, navigate to the Custom domain suffix page for your App Service Environment. · Enter your custom domain name. ·...
Read more >Adding a custom domain to Azure App Service
How to add a custom domain in Azure. First, let's open our App Service and click the Custom domains option on the left....
Read more >Setup Custom Domain for Azure App Service - Parveen Singh
Navigate to Azure Portal and locate your App Service resource. Click on the "Custom Domains" option on the left blade and click "+...
Read more >app-service-web-tutorial-custom-domain.md
In the Azure portal, navigate to your app's management page. · In the left menu for your app, select Custom domains. · Select...
Read more >Zero to Hero with App Service, Part 5: Add and Secure a ...
Go to your App Service and navigate to the “Custom domain” section under “Settings”. · Click on the “Add custom domain” button ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@joostmeijles Thank you for your feedback. I’m sorry to reply to you after such a long time. For the two questions you mentioned, 1.You can add a DNS record as follows: in AppServiceDomainData, there is ManagedHostNames for HostName, 2.For how to create a SSL binding for a certain subdomain on your app service, you could refer to this ArmClient client = new ArmClient(new DefaultAzureCredential()); var subscription = (await client.GetSubscriptions().GetAsync(“subid”)).Value; var resourceGroup = (await subscription.GetResourceGroups().GetAsync(“appservicetest”)).Value; var website = (await resourceGroup.GetWebSiteAsync(“28168”)).Value;
var bindingCollection = website.GetSiteHostNameBindings(); var data = new HostNameBindingData() { SiteName = “SiteName”, DomainId = “Domain Id”, AzureResourceName = “ResourceName”, AzureResourceType = Azure.ResourceManager.AppService.Models.AzureResourceType.Website, CustomHostNameDnsRecordType = Azure.ResourceManager.AppService.Models.CustomHostNameDnsRecordType.CName, HostNameType = Azure.ResourceManager.AppService.Models.HostNameType.Verified, SslState = Azure.ResourceManager.AppService.Models.SslState.IPBasedEnabled, Thumbprint = “Thumbprint”, }; var binding = (await bindingCollection.CreateOrUpdateAsync(Azure.WaitUntil.Completed, “hostname”, data).ConfigureAwait(false)).Value; I hope my reply can help you
Thank you for your feedback. Tagging and routing to the team member best able to assist.