This template creates a Front Door Standard/Premium with a container group and Application Gateway.
{"type": "microsoft.cdn/profiles", "apiversion": "2021-06-01", "name": "[variables('frontdoorprofilename')]", "location": "global", "sku": {"name": "[parameters('frontdoorskuname')]"}}{"type": "microsoft.cdn/profiles/afdendpoints", "apiversion": "2021-06-01", "name": "[format('{0}/{1}", variables('frontdoorprofilename'), parameters('frontdoorendpointname'))]", "location": "global", "properties": {"enabledstate": "enabled"}, "dependson": ["[resourceid('microsoft.cdn/profiles", variables('frontdoorprofilename'))]"]}{"type": "microsoft.cdn/profiles/origingroups", "apiversion": "2021-06-01", "name": "[format('{0}/{1}", variables('frontdoorprofilename'), variables('frontdoororigingroupname'))]", "properties": {"loadbalancingsettings": {"samplesize": 4, "successfulsamplesrequired": 3}, "healthprobesettings": {"probepath": "/", "proberequesttype": "head", "probeprotocol": "http", "probeintervalinseconds": 100}}, "dependson": ["[resourceid('microsoft.cdn/profiles", variables('frontdoorprofilename'))]"]}{"type": "microsoft.cdn/profiles/origingroups/origins", "apiversion": "2021-06-01", "name": "[format('{0}/{1}/{2}", variables('frontdoorprofilename'), variables('frontdoororigingroupname'), variables('frontdoororiginname'))]", "properties": {"hostname": "[reference(resourceid('microsoft.resources/deployments", "application-gateway')).outputs.publicipaddresshostname.value]", "httpport": 80, "httpsport": 443, "originhostheader": "[reference(resourceid('microsoft.resources/deployments", "application-gateway')).outputs.publicipaddresshostname.value]", "priority": 1, "weight": 1000}, "dependson": ["[resourceid('microsoft.resources/deployments", "application-gateway')]", "[resourceid('microsoft.cdn/profiles/origingroups", variables('frontdoorprofilename'), variables('frontdoororigingroupname'))]", "[resourceid('microsoft.cdn/profiles", variables('frontdoorprofilename'))]"]}{"type": "microsoft.cdn/profiles/afdendpoints/routes", "apiversion": "2021-06-01", "name": "[format('{0}/{1}/{2}", variables('frontdoorprofilename'), parameters('frontdoorendpointname'), variables('frontdoorroutename'))]", "properties": {"origingroup": {"id": "[resourceid('microsoft.cdn/profiles/origingroups", variables('frontdoorprofilename'), variables('frontdoororigingroupname'))]"}, "supportedprotocols": ["http", "https"], "patternstomatch": ["/*"], "forwardingprotocol": "httponly", "linktodefaultdomain": "enabled", "httpsredirect": "enabled"}, "dependson": ["[resourceid('microsoft.cdn/profiles/afdendpoints", variables('frontdoorprofilename'), parameters('frontdoorendpointname'))]", "[resourceid('microsoft.cdn/profiles/origingroups/origins", variables('frontdoorprofilename'), variables('frontdoororigingroupname'), variables('frontdoororiginname'))]", "[resourceid('microsoft.cdn/profiles/origingroups", variables('frontdoorprofilename'), variables('frontdoororigingroupname'))]", "[resourceid('microsoft.cdn/profiles", variables('frontdoorprofilename'))]"]} 