%3CLINGO-SUB%20id%3D%22lingo-sub-1548950%22%20slang%3D%22en-US%22%3EZero%20to%20Hero%20with%20App%20Service%2C%20Part%205%3A%20Add%20and%20Secure%20a%20Custom%20Domain%20on%20Your%20Azure%20App%20Service%20Web%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1548950%22%20slang%3D%22en-US%22%3E%3CP%3E%3CEM%3EThis%20article%20is%26nbsp%3Bthe%205th%26nbsp%3Bpart%20of%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fazure.github.io%2FAppService%2Ftags%2F%23zero-to-hero%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EZero%20to%20Hero%26nbsp%3Bwith%20App%20Service%26nbsp%3Bseries%3C%2FA%3E.%20This%26nbsp%3Barticle%26nbsp%3Bassumes%26nbsp%3Byou%20have%20completed%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fapps-on-azure%2Fzero-to-hero-with-app-service-part-1-setting-up%2Fba-p%2F1496757%22%20target%3D%22_self%22%3Efirst%20article%3C%2FA%3E.%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIf%20you%20would%20like%20to%20customize%20your%20web%20app%20and%20have%20a%20domain%20name%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eother%20than%20%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eazurewebsites%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.net%E2%80%9D%2C%20you%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ecan%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eadd%20a%20custom%20domain%20to%20your%20web%20app.%20Moreover%2C%20you%20can%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Esecure%20your%20custom%20domain%20with%20a%20free%20certificate%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ewith%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EApp%20Service%20Managed%20Certificate%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Es%2C%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bwhich%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ewill%20give%20your%20customers%20peace%20of%20mind%20when%20browsing%20your%20website%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20class%3D%22%22%20id%3D%22toc-hId--1297298473%22%20id%3D%22toc-hId--1297298473%22%20id%3D%22toc-hId--1297298473%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22prerequisite%22%20class%3D%22%22%20id%3D%22toc-hId-1190214360%22%20id%3D%22toc-hId-1190214360%22%20id%3D%22toc-hId-1190214360%22%3EPrerequisite%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EBefore%20you%20can%20add%20a%20custom%20domain%20to%20your%20web%20app%2C%20you%20need%20to%20have%20purchased%20a%20custom%20domain%20already.%20If%20you%20don%E2%80%99t%20have%20a%20custom%20domain%2C%20you%20can%20buy%20one%20through%20App%20Service%20Domains%2C%20which%20you%20can%20get%20started%20with%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EApp%20Service%20Domains%3C%2FSTRONG%3E%20section%20of%20the%20article%26nbsp%3B.%20If%20you%20already%20have%20your%20own%20custom%20domain%2C%20proceed%20to%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eadding%20a%20custom%20domain%20to%20your%20web%20app%3C%2FSTRONG%3E%20section%20of%20the%20article.%3C%2FP%3E%0A%3CH2%20class%3D%22%22%20id%3D%22toc-hId--617240103%22%20id%3D%22toc-hId--617240103%22%20id%3D%22toc-hId--617240103%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22app-service-domains%22%20class%3D%22%22%20id%3D%22toc-hId-1870272730%22%20id%3D%22toc-hId-1870272730%22%20id%3D%22toc-hId-1870272730%22%3EApp%20Service%20Domains%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EApp%20Service%20Domains%20lets%20you%20create%20and%20manage%20domains%20hosted%20on%20Azure%20DNS%20through%20the%20Azure%20portal.%20The%20domain%20can%20be%20used%20for%20services%20such%20as%20Web%20Apps%2C%20Traffic%20Manager%2C%20and%20etc..%20Purchasing%20an%20App%20Service%20Domain%20also%20provides%20the%20added%20benefit%20of%20privacy%20protection%3A%20your%20personal%20data%20will%20be%20protected%20from%20the%20WHOIS%20public%20database%20for%20free.%20This%20is%20often%20costs%20extra%20with%20other%20domain%20registrars.%20This%20product%20can%20auto-renew%20your%20domains%20and%20it%20integrates%20easily%20with%20your%20web%20apps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20create%20your%20App%20Service%20Domain%2C%20you%20can%20click%20on%20this%20link%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-here%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eor%20you%20can%20head%20to%20the%20Azure%20portal%20and%20search%20for%20%E2%80%9CApp%20Service%20Domain%E2%80%9D.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Create-ASD.PNG%22%20style%3D%22width%3A%20872px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208314iD52383190A6D7945%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Create-ASD.PNG%22%20alt%3D%22Create-ASD.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20domain%20search%20bar%2C%20type%20the%20domain%20name%20you%20would%20like%20to%20purchase.%20If%20you%20don%E2%80%99t%20see%20the%20name%20in%20the%20list%20of%20available%20domains%2C%20then%20the%20domain%20isn%E2%80%99t%20available%20for%20purchase.%20However%2C%20you%20can%20choose%20from%20the%20suggested%20list%20of%20available%20domains%20or%20enter%20a%20new%20domain%20you%20would%20like%20to%20purchase.%20In%20the%20%E2%80%9CContact%20information%E2%80%9D%20tab%2C%20enter%20your%20personal%20information.%20Then%20in%20the%20%E2%80%9CAdvanced%E2%80%9D%20tab%2C%20choose%20whether%20you%20want%20to%20set%20up%20auto-renew%20for%20the%20domain.%20Domain%20auto-renew%20prevents%20accidental%20loss%20of%20domain%20ownership%20after%20expiration.%20Lastly%2C%20decide%20whether%20you%20would%20like%20to%20add%20privacy%20protection%20at%20no%20extra%20charge.%20Go%20to%20%E2%80%9CReview%20%2B%20create%E2%80%9D%20to%20review%20the%20legal%20terms%2C%20verify%20the%20domain%20information%2C%20and%20click%20%E2%80%9CCreate%E2%80%9D.%20Once%20your%20domain%20has%20successfully%20been%20created%2C%20proceed%20to%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eadding%20a%20custom%20domain%20to%20your%20web%20app%3C%2FSTRONG%3E%20section%20of%20the%20article.%3C%2FP%3E%0A%3CH2%20class%3D%22%22%20id%3D%22toc-hId-62818267%22%20id%3D%22toc-hId-62818267%22%20id%3D%22toc-hId-62818267%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22adding-a-custom-domain-to-your-web-app-%22%20class%3D%22%22%20id%3D%22toc-hId--1744636196%22%20id%3D%22toc-hId--1744636196%22%20id%3D%22toc-hId--1744636196%22%3EAdding%20a%20custom%20domain%20to%20your%20web%20app%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3ETo%20add%20a%20custom%20domain%20to%20your%20web%20app%2C%20you%20will%20need%20to%20update%20your%20domain%E2%80%99s%20DNS%20records.%20If%20you%20purchased%20an%20App%20Service%20Domain%2C%20the%20DNS%20records%20will%20be%20updated%20for%20you%20automatically%20and%20you%20can%20proceed%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Everifying%20and%20adding%20a%20custom%20domain%3C%2FSTRONG%3E%26nbsp%3Bsection.%20Otherwise%2C%20you%20will%20need%20to%3CSPAN%3E%26nbsp%3Bwork%20on%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eupdating%20DNS%20records%3C%2FSTRONG%3E%26nbsp%3B.%3C%2FP%3E%0A%3CH3%20class%3D%22%22%20id%3D%22toc-hId--1054074722%22%20id%3D%22toc-hId--1054074722%22%20id%3D%22toc-hId--1054074722%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22updating-dns-records-%22%20class%3D%22%22%20id%3D%22toc-hId-1433438111%22%20id%3D%22toc-hId-1433438111%22%20id%3D%22toc-hId-1433438111%22%3EUpdating%20DNS%20records%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20will%20need%20to%20get%20the%20custom%20domain%20verification%20ID%20of%20your%20web%20app.%20This%20token%20will%20be%20used%20to%20verify%20the%20domain%20ownership.%20You%20can%20get%20this%20value%20in%20the%20%E2%80%9CCustom%20domains%E2%80%9D%20tab%20of%20your%20web%20app.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Get-CDVID%20-%20Copy.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208315iC07BD5BA266473A7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Get-CDVID%20-%20Copy.png%22%20alt%3D%22Get-CDVID%20-%20Copy.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20you%20have%20the%20ID%2C%20go%20to%20the%20domain%20provider%20of%20your%20domain.%20In%20the%20DNS%20records%2C%20create%20a%20CNAME%20and%20a%20TXT%20Record.%20As%20an%20example%2C%20if%20you%20want%20to%20map%20your%20%E2%80%98www%E2%80%99%20subdomain%2C%20refer%20to%20the%20chart%20below%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%3E%0A%3CTHEAD%3E%0A%3CTR%3E%0A%3CTH%20width%3D%2276px%22%3ERecord%20Type%3C%2FTH%3E%0A%3CTH%20width%3D%2286.6667px%22%3EHost%3C%2FTH%3E%0A%3CTH%20width%3D%22230px%22%3EValue%3C%2FTH%3E%0A%3C%2FTR%3E%0A%3C%2FTHEAD%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2276px%22%3ECNAME%3C%2FTD%3E%0A%3CTD%20width%3D%2286.6667px%22%3Ewww%3C%2FTD%3E%0A%3CTD%20width%3D%22230px%22%3E.azurewebsites.net%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2276px%22%3ETXT%3C%2FTD%3E%0A%3CTD%20width%3D%2286.6667px%22%3Easuid.www%3C%2FTD%3E%0A%3CTD%20width%3D%22230px%22%3ECustom%20Domain%20Verification%20ID%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYour%20DNS%20records%20page%20should%20look%20something%20like%20the%20following%20example%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22dns-records.png%22%20style%3D%22width%3A%20622px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208319i277E69EA89BAFAC7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22dns-records.png%22%20alt%3D%22dns-records.png%22%20%2F%3E%3C%2FSPAN%3E%E2%80%83%3C%2FP%3E%0A%3CH3%20id%3D%22verifying-and-adding-custom-domain-%22%20class%3D%22%22%20id%3D%22toc-hId--374016352%22%20id%3D%22toc-hId--374016352%22%20id%3D%22toc-hId--374016352%22%3EVerifying%20and%20adding%20custom%20domain%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20updating%20your%20DNS%20records%20(if%20not%20using%20App%20Service%20Domain)%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EGo%20to%20your%20App%20Service%20and%20navigate%20to%20the%20%E2%80%9CCustom%20domain%E2%80%9D%20section%20under%20%E2%80%9CSettings%E2%80%9D.%3C%2FLI%3E%0A%3CLI%3EClick%20on%20the%20%E2%80%9CAdd%20custom%20domain%E2%80%9D%20button%3C%2FLI%3E%0A%3CLI%3EEnter%20the%20domain%20that%20you%20would%20like%20to%20use%3C%2FLI%3E%0A%3CLI%3EClick%20%E2%80%9CValidate%E2%80%9D%3C%2FLI%3E%0A%3CLI%3EIf%20you%20correctly%20updated%20your%20DNS%20records%20and%20the%20DNS%20changes%20have%20propagated%2C%20you%20will%20see%20the%20option%20to%20%E2%80%9Cadd%20custom%20domain%E2%80%9D.%20Otherwise%2C%20return%20to%20the%20previous%20%3CSTRONG%3Eupdating%20DNS%20records%20%3C%2FSTRONG%3Esection%20to%20make%20sure%20you%20have%20correctly%20updated%20your%20DNS%20records.%20Click%20%E2%80%9Cadd%20custom%20domain%E2%80%9D.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Add-Custom-Domain.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208320i5A09D10617B0E6FC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Add-Custom-Domain.png%22%20alt%3D%22Add-Custom-Domain.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20custom%20domain%20has%20successfully%20been%20added%20to%20your%20web%20app%2C%20you%20will%20see%20it%20under%20the%20list%20of%20%E2%80%9CAssigned%20Custom%20Domains%E2%80%9D.%20You%20can%20navigate%20to%20your%20web%20app%20using%20these%20domain%20names.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EIf%20you%20are%20interested%20in%20securing%20your%20custom%20domain%2C%20proceed%20to%20the%20following%20section%20on%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECreating%20an%20App%20Service%20Managed%20Certificate%26nbsp%3B%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22creating-an-app-service-managed-certificate-%22%20class%3D%22%22%20tabindex%3D%22-1%22%20id%3D%22toc-hId--384519456%22%20id%3D%22toc-hId--384519456%22%20id%3D%22toc-hId--384519456%22%3ECreating%20an%20App%20Service%20Managed%20Certificate%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20would%20like%20to%20secure%20your%20custom%20domain%20at%20no%20cost%2C%20you%20can%20create%20an%20App%20Service%20Managed%20Certificate%20and%20bind%20it%20to%20your%20domain.%20With%20Managed%20Certificates%2C%20you%20don%E2%80%99t%20have%20to%20worry%20about%20renewals%2C%20as%20the%20certificate%20is%20automatically%20renewed%20for%20you!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGo%20to%20your%20web%20app%20resource%20and%20navigate%20to%20the%20%E2%80%9CTLS%2FSSL%20settings%E2%80%9D%20section%20under%20%E2%80%9CSettings%E2%80%9D.%20Click%20on%20the%20%E2%80%9CPrivate%20Key%20Certificates%E2%80%9D%20blade%20and%20look%20for%20the%20%E2%80%9CCreate%20App%20Service%20Managed%20Certificate%E2%80%9D%20button.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Cert-Blade.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208321iED6E266A30BBBFE7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Cert-Blade.png%22%20alt%3D%22Cert-Blade.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%0A%3CP%3ESelect%20the%20domain%20from%20the%20dropdown%20menu%20that%20you%20would%20like%20to%20create%20a%20certificate%20for%20and%20click%20%E2%80%9CCreate%E2%80%9D.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Create-Free-Cert.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208322i2CFF32D2A0EE37E0%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Create-Free-Cert.png%22%20alt%3D%22Create-Free-Cert.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EOnce%20the%20certificate%20has%20been%20created%2C%20you%20will%20see%20that%20it%20in%20the%20list%20of%20your%20private%20certificates%20on%20the%20%E2%80%9CTLS%2FSSL%20Settings%E2%80%9D%20blade.%20In%20order%20to%20use%20this%20certificate%20to%20secure%20your%20domain%2C%20you%20will%20need%20to%20bind%20this%20certificate%20to%20your%20domain%2C%20which%20will%20be%20explained%20in%20the%20next%20section%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Ebinding%20your%20certificate%20to%20your%20web%20app%26nbsp%3B%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Free-Cert-Created.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208323i9C559E3E12EA93A0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Free-Cert-Created.png%22%20alt%3D%22Free-Cert-Created.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20class%3D%22active%22%20id%3D%22toc-hId--518204180%22%20id%3D%22toc-hId--518204180%22%20id%3D%22toc-hId--518204180%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22binding-your-certificate-to-your-web-app-%22%20class%3D%22active%22%20id%3D%22toc-hId-1969308653%22%20id%3D%22toc-hId-1969308653%22%20id%3D%22toc-hId-1969308653%22%3EBinding%20Your%20Certificate%20to%20Your%20Web%20App%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20final%20step%20to%20securing%20your%20domain%20is%20to%20bind%20your%20certificate%20to%20the%20domain.%20In%20the%20Portal%2C%20go%20to%20your%20web%20app%20and%20navigate%20to%20the%20%E2%80%9CCustom%20domain%E2%80%9D%20section%20under%20%E2%80%9CSettings%E2%80%9D.%20Look%20for%20the%20domain%20you%20want%20to%20secure%20from%20the%20list%20of%20%E2%80%9CAssigned%20Custom%20Domains%E2%80%9D%20and%20click%20%E2%80%9CAdd%20binding%E2%80%9D.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorYutangL_7%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Binding-Option.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208324i8C84B03512FEE8AD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Binding-Option.png%22%20alt%3D%22Binding-Option.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20following%20blade%E2%80%A6%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ESelect%20the%20correct%20custom%20domain%3C%2FLI%3E%0A%3CLI%3ESelect%20the%20App%20Service%20Managed%20Certificate%20you%E2%80%99ve%20just%20created%20from%20the%20dropdown%20menu%3C%2FLI%3E%0A%3CLI%3ESelect%20%E2%80%9CSNI%20SLL%E2%80%9D%20for%20the%20TLS%2FSSL%20Type%3C%2FLI%3E%0A%3CLI%3EClick%20%E2%80%9CAdd%20Binding%E2%80%9D%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Add-Binding.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208325i6BCA3D1DFA9FB651%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Add-Binding.png%22%20alt%3D%22Add-Binding.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%0A%3CP%3EOnce%20the%20binding%20has%20successfully%20been%20created%2C%20you%20will%20see%20a%20green%20checkmark%20and%20the%20word%20%E2%80%9CSecure%E2%80%9D%20beside%20your%20custom%20domain%20under%20the%20%E2%80%9CAssigned%20Custom%20Domains%E2%80%9D%20list.%3C%2FP%3E%0A%3CH2%20class%3D%22%22%20id%3D%22toc-hId-161854190%22%20id%3D%22toc-hId-161854190%22%20id%3D%22toc-hId-161854190%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22summary%22%20class%3D%22%22%20id%3D%22toc-hId--1645600273%22%20id%3D%22toc-hId--1645600273%22%20id%3D%22toc-hId--1645600273%22%3ESummary%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECongratulations!%20In%20this%20article%2C%20you%20have%20successfully%20added%20and%20secured%20a%20custom%20domain%20for%20your%20App%20Service!%20Your%20users%20can%20now%20reach%20your%20web%20site%20at%20the%20new%20domain%2C%20and%20their%20browser%20will%20let%20them%20know%20that%20the%20site%20is%20secured.%3C%2FP%3E%0A%3CH2%20class%3D%22%22%20id%3D%22toc-hId-841912560%22%20id%3D%22toc-hId-841912560%22%20id%3D%22toc-hId-841912560%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22helpful-resources%22%20class%3D%22%22%20id%3D%22toc-hId--965541903%22%20id%3D%22toc-hId--965541903%22%20id%3D%22toc-hId--965541903%22%3EHelpful%20Resources%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E-ERR%3AREF-NOT-FOUND-Tutorial%3A%20Map%20an%20existing%20custom%20DNS%20name%20to%20Azure%20App%20Service%3C%2FLI%3E%0A%3CLI%3E-ERR%3AREF-NOT-FOUND-Add%20a%20TLS%2FSSL%20certificate%20in%20Azure%20App%20Service%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1548950%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIf%20you%20would%20like%20to%20customize%20your%20web%20app%20and%20have%20a%20domain%20name%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eother%20than%20%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eazurewebsites%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.net%E2%80%9D%2C%20you%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ecan%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eadd%20a%20custom%20domain%20to%20your%20web%20app.%20Moreover%2C%20you%20can%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Esecure%20your%20custom%20domain%20with%20a%20free%20certificate%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ewith%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EApp%20Service%20Managed%20Certificate%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Es%2C%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bwhich%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ewill%20give%20your%20customers%20peace%20of%20mind%20when%20browsing%20your%20website%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1548950%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E.NET%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20App%20Service%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EJava%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENode.js%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWeb%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1552239%22%20slang%3D%22en-US%22%3ERe%3A%20Zero%20to%20Hero%20with%20App%20Service%2C%20Part%205%3A%20Add%20and%20Secure%20a%20Custom%20Domain%20on%20Your%20Azure%20App%20Service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1552239%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20for%20Sharing%20with%20the%20Community%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

This article is the 5th part of the Zero to Hero with App Service series. This article assumes you have completed the first article

 

If you would like to customize your web app and have a domain name other than “azurewebsites.net”, you can add a custom domain to your web app. Moreover, you can secure your custom domain with a free certificate with App Service Managed Certificates, which will give your customers peace of mind when browsing your website. 

 

Prerequisite

 

Before you can add a custom domain to your web app, you need to have purchased a custom domain already. If you don’t have a custom domain, you can buy one through App Service Domains, which you can get started with the App Service Domains section of the article . If you already have your own custom domain, proceed to the adding a custom domain to your web app section of the article.

 

App Service Domains

 

App Service Domains lets you create and manage domains hosted on Azure DNS through the Azure portal. The domain can be used for services such as Web Apps, Traffic Manager, and etc.. Purchasing an App Service Domain also provides the added benefit of privacy protection: your personal data will be protected from the WHOIS public database for free. This is often costs extra with other domain registrars. This product can auto-renew your domains and it integrates easily with your web apps.

 

To create your App Service Domain, you can click on this link here or you can head to the Azure portal and search for “App Service Domain”.

 

Create-ASD.PNG

 

In the domain search bar, type the domain name you would like to purchase. If you don’t see the name in the list of available domains, then the domain isn’t available for purchase. However, you can choose from the suggested list of available domains or enter a new domain you would like to purchase. In the “Contact information” tab, enter your personal information. Then in the “Advanced” tab, choose whether you want to set up auto-renew for the domain. Domain auto-renew prevents accidental loss of domain ownership after expiration. Lastly, decide whether you would like to add privacy protection at no extra charge. Go to “Review + create” to review the legal terms, verify the domain information, and click “Create”. Once your domain has successfully been created, proceed to the adding a custom domain to your web app section of the article.

 

Adding a custom domain to your web app

 

To add a custom domain to your web app, you will need to update your domain’s DNS records. If you purchased an App Service Domain, the DNS records will be updated for you automatically and you can proceed to verifying and adding a custom domain section. Otherwise, you will need to work on updating DNS records .

 

Updating DNS records

 

You will need to get the custom domain verification ID of your web app. This token will be used to verify the domain ownership. You can get this value in the “Custom domains” tab of your web app.

 

Get-CDVID - Copy.png

 

Once you have the ID, go to the domain provider of your domain. In the DNS records, create a CNAME and a TXT Record. As an example, if you want to map your ‘www’ subdomain, refer to the chart below:

 

Record Type Host Value
CNAME www .azurewebsites.net
TXT asuid.www Custom Domain Verification ID

 

Your DNS records page should look something like the following example:

 

dns-records.png

Verifying and adding custom domain

 

After updating your DNS records (if not using App Service Domain):

  1. Go to your App Service and navigate to the “Custom domain” section under “Settings”.
  2. Click on the “Add custom domain” button
  3. Enter the domain that you would like to use
  4. Click “Validate”
  5. If you correctly updated your DNS records and the DNS changes have propagated, you will see the option to “add custom domain”. Otherwise, return to the previous updating DNS records section to make sure you have correctly updated your DNS records. Click “add custom domain”.

 

Add-Custom-Domain.png

 

Once the custom domain has successfully been added to your web app, you will see it under the list of “Assigned Custom Domains”. You can navigate to your web app using these domain names.

 

If you are interested in securing your custom domain, proceed to the following section on Creating an App Service Managed Certificate .

 

Creating an App Service Managed Certificate

 

If you would like to secure your custom domain at no cost, you can create an App Service Managed Certificate and bind it to your domain. With Managed Certificates, you don’t have to worry about renewals, as the certificate is automatically renewed for you!

 

Go to your web app resource and navigate to the “TLS/SSL settings” section under “Settings”. Click on the “Private Key Certificates” blade and look for the “Create App Service Managed Certificate” button.

 

Cert-Blade.png

Select the domain from the dropdown menu that you would like to create a certificate for and click “Create”.

 

Create-Free-Cert.png

 

Once the certificate has been created, you will see that it in the list of your private certificates on the “TLS/SSL Settings” blade. In order to use this certificate to secure your domain, you will need to bind this certificate to your domain, which will be explained in the next section of binding your certificate to your web app .

 

Free-Cert-Created.png

 

 

Binding Your Certificate to Your Web App

 

The final step to securing your domain is to bind your certificate to the domain. In the Portal, go to your web app and navigate to the “Custom domain” section under “Settings”. Look for the domain you want to secure from the list of “Assigned Custom Domains” and click “Add binding”.

 

Binding-Option.png

 

In the following blade…

  1. Select the correct custom domain
  2. Select the App Service Managed Certificate you’ve just created from the dropdown menu
  3. Select “SNI SLL” for the TLS/SSL Type
  4. Click “Add Binding”

 

Add-Binding.png

Once the binding has successfully been created, you will see a green checkmark and the word “Secure” beside your custom domain under the “Assigned Custom Domains” list.

 

Summary

 

Congratulations! In this article, you have successfully added and secured a custom domain for your App Service! Your users can now reach your web site at the new domain, and their browser will let them know that the site is secured.

 

Helpful Resources

 

1 Comment

Thank you for Sharing with the Community :smile: