SharePointVault ~/gotchas/azure-functions ⌕ Search 404 pages, error messages, scripts…Ctrl K ★ Star
M↓ README.mdM↓ unique-default-hostname-no-such-host.md
sharepoint-vault›gotchas›azure-functions›unique-default-hostname-no-such-host.mdhistoryedit on GitHub
● GOTCHAazure-functions· 2 min read

"No such host" for <app>.azurewebsites.net — new function apps get a unique default hostname

applies to: Azure Functions, Azure App Service (apps created ~mid-2024 and later)reviewed: 2026-09-23#azure-functions#dns#deployment

Function apps created since roughly mid-2024 get a unique default hostname (<app>-<hash>.<region>-01.azurewebsites.net); the bare <app>.azurewebsites.net is never registered in DNS for them, so "No such host" is a naming problem, not an outage. Read the real hostname from the portal or the deploy log — never derive it from the app name.

Function Apps založené zhruba od poloviny roku 2024 dostávají jedinečný výchozí hostname (<app>-<hash>.<region>-01.azurewebsites.net); holé <app>.azurewebsites.net pro ně v DNS vůbec neexistuje, takže „No such host“ je problém s názvem, ne výpadek. Skutečný hostname čtěte z portálu nebo z logu nasazení – nikdy ho neodvozujte z názvu aplikace.

Symptom: your deploy pipeline reports success and the function app runs fine in the portal, but https://<app-name>.azurewebsites.net fails DNS resolution entirely (No such host is known / ERR_NAME_NOT_RESOLVED). Easy to misread as "the app does not exist" or "a transient DNS hiccup" — especially when older apps in the same subscription resolve just fine under their bare names.

Cause: Azure assigns unique default hostnames to newly created apps:

https://<app-name>-<random-hash>.<region>-01.azurewebsites.net

e.g. myfunc-c4hdbqf2gxe7a9mz.westeurope-01.azurewebsites.net. The bare <app-name>.azurewebsites.net is never registered in DNS for these apps. Apps created before the rollout keep their bare hostname — so one subscription routinely contains both kinds, which is exactly what makes the failure look random.

Fix / rules:

  • Never derive the hostname from the app name. Read it from the portal (app Overview → Default domain) or from your deploy log.
  • GitHub Actions tip: the Azure/functions-action log line Deploy logs can be viewed at https://<app>-<hash>.scm.<region>-01.azurewebsites.net/... reveals the hostname even when the app name itself is masked as a secret — drop the .scm segment to get the runtime host.
  • Put the full unique hostname into every config that calls the app (client allowlists, webhook URLs, monitoring, other services' env vars).
  • When a bare-name call fails DNS but you believe the app exists, that is a naming problem, not an outage — check the unique hostname before restarting or redeploying anything.
Was this helpful?ask or add your experience on GitHub →
Saved you an hour? A star on GitHub helps other SharePoint people find the vault.★ Star on GitHub
last reviewed: 2026-09-23last updated: 2026-09-24historyedit on GitHubview source