Error code 3608 Failure type User configuration issue Details Call to provided Azure function '

Gandla, Poojith 0 Reputation points
2024-09-13T13:45:57.5033333+00:00

Seeing this error

Error code

3608

Failure type

User configuration issue

Details

Call to provided Azure function 'SendEmail' failed with status-'Unauthorized' while invoking 'POST' on 'https://aaa.azurewebsites.net' and message - 'Invoking Azure function failed with HttpStatusCode - Unauthorized.'.

When invoking using the below method
{

"functionName": "SendEmail",

"body": "{\n\"email_body\":\"aaa"a}",

"headers": {

    "key_vault_url": "https://aa.azure.net/",

    "SendGrid_API_secret_name": "SendGrid-aa-APIKey",

    "mi_client_id": "aaaaa-aa-aa-aa-aa"

},

"method": "POST"

}

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,991 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,696 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 4,215 Reputation points Microsoft Employee
    2024-09-16T18:30:18.1433333+00:00

    Helllo @Gandla, Poojith

    The error message suggests that the function is not authorized to perform the requested operation. To resolve this issue, you may need to check the following:

    1. Make sure that the Azure function is properly configured to use the SendGrid API key. You can check the function's configuration settings to ensure that the SendGrid API key is correctly specified.
    2. Check if the key vault URL is correct and accessible. If the URL is incorrect or inaccessible, the function may not be able to retrieve the SendGrid API key.
    3. Verify that the client ID is correct and has the necessary permissions to access the key vault and SendGrid API key.
    4. Check if the function's authentication and authorization settings are properly configured. If the function requires authentication, make sure that the caller is authorized to invoke the function.
    5. If you have checked all of the above and the issue persists, please provide more information about your Azure function and the environment in which it is running.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.