Hi MT,
Thank you for reaching out to Microsoft Q&A forum!
The 404 - Resource Not Available error usually occurs when the API endpoint cannot be reached, or the requested resource does not exist. Below are possible reasons and to resolve this issue.
Incorrect Endpoint URL:
Ensure that you are using the correct API endpoint URL.
Double-check your endpoint URL in the Azure Portal under Cognitive Services > Your Resource > Keys and Endpoint.
API Version Mismatch:
Some Azure Cognitive Services require a valid API version in the request.
If your API version is deprecated or missing, the endpoint might return a 404 error.
Use a valid API version.
If your request lacks a valid API key, it may result in a 404 error.
Ensure you are passing the correct Subscription Key in the request header
If the resource was deleted or moved to another region, the API will return 404.
Go to Azure Portal → Check Cognitive Services Resource → Ensure it exists and is active.
Verify its region and match it with the one in your request.
If you're accessing from a corporate network, firewall rules may block the request.
Try accessing from a different network (e.g., personal hotspot).
Whitelist Azure endpoints in your firewall.
Hope this helps. Do let us know if you any further queries.
-------------
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.