Azure Batch Job Create Error

SoonJoo@Genting 241 Reputation points
2023-06-07T14:58:55.5533333+00:00

Hi,

I am having the following error when I trying to create a job using the CLI:

az batch job create --template template.json

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly. RequestId:3acb99e5-7554-45d9-bd5f-5b4fa3497f8b Time:2023-06-07T14:57:08.5946414Z AuthenticationErrorDetail: Requests from this application are required to be authenticated.

I have created job using the same command, but I have never come across this matter. Do assists.

Thanks!

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
303 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 22,211 Reputation points
    2023-06-08T10:23:34.7733333+00:00

    Hello @SoonJoo@Genting

    It seems like the error is related to authentication. The error message suggests that the request is not authenticated.

    To authenticate the request, you need to make sure that the value of the Authorization header is formed correctly. You can try to authenticate the request using the Azure CLI by running the following command

    az login
    

    This command will prompt you to log in to your Azure account. Once you are logged in, you can try to create the job again using the CLI command you mentioned earlier.

    If you are still facing the same issue, you can try to check if you have the correct permissions to create a job. You can also check if there are any issues with the template.json file you are using.

    If you are still unable to resolve the issue, please provide more information about your environment and the steps you have taken so far, so that I can assist you better.

    If you are satisfied with the answer, please "Accept as Answer" and give a thumbs up, so that you can help others in the community looking for remediation for similar issues.

    0 comments No comments