Webservice Authentication Error for a deployed ML model through uri in a TimerTrigger function

Mariya Miteva 0 Reputation points
2023-03-28T12:41:04.49+00:00

Hello,

I am trying to implement a TimerTrigger function for an Azure Webservice that uses a deployed ML model. The purpose of this function is to automate the process of making predictions each day. However, I am running into authentication errors when attempting to use a post request and URI to update the model in Azure Functions. I have tried several authentication options, but none of them have been successful.

Result: Failure Exception: UserErrorException: UserErrorException: Message: You are currently logged-in to f9d09253-d18f-4d44-8145-65d46e46a55d tenant. You don't have access to 6a789ce7-c95d-49ec-a458-1b35144e2d12 subscription, please check if it is in this tenant. All the subscriptions that you have access to in this tenant are = []. Please refer to aka.ms/aml-notebook-auth for different authentication mechanisms in azureml-sdk. InnerException None ErrorResponse { "error": { "code": "UserError", "message": "You are currently logged-in to f9d09253-d18f-4d44-8145-65d46e46a55d tenant. You don't have access to 6a789ce7-c95d-49ec-a458-1b35144e2d12 subscription, please check if it is in this tenant.

I have access to 6a789ce7-c95d-49ec-a458-1b35144e2d12 subscription. My credentials are correct.

Could you please provide guidance on how to authenticate in the TimerTrigger function properly, but for an Azure Webservice through URI?

Thank you in advance!

Best regards,

Mariya Miteva

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,249 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,486 questions
{count} votes