Hello @Kal , Thanks for using Microsoft Q&A Platform.
As per the error 401
looks like this issue can be either the subscription key is missing or is not valid. Try to verify your subscription key and if possible, regenerate the key in the Azure portal and try with the latest key.
Also try to check this related to the InvalidAuthorization
error code and troubleshoot these things:
- Bing returns InvalidAuthorization when Bing cannot authenticate the caller. For example, if the Ocp-Apim-Subscription-Key header is missing or the subscription key is not valid.
- Redundancy occurs if you specify more than one authentication method.
- If the error is InvalidAuthorization, the HTTP status code is 401:
I hope this helps.
Regards,
Vasavi
-Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.