0

I have created a azure function in java created Using Command line by following below given Microsoft guide https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-java

I have followed all the steps and locally I have deployed the functions and it is working fine but while trying to deploy into Azure using the following commands:

error

I am getting the following error on Command line: error

Anyone please help me in resolving the above error to deploy the function into azure.

Thanks & Regards, Preethi H R

3
  • looking at the error message we understood that its an authorization error. Could you please let us know do you have the contributor access to the function app? If you have recently got the contributor access, try to re-login and do the deployment again. Commented Sep 15, 2022 at 11:13
  • Did you check this @Preethi H R? Commented Sep 27, 2022 at 5:14
  • @Preethi H R, please mask the subscription Id, object Id and official email id from the above image in the question. Commented Oct 6, 2022 at 7:59

1 Answer 1

0

I have created the user in my Azure Subscription and provided the reader role access and then deployed the function app from local to Azure using the maven cmdlet mvn azure-functions:deploy:

enter image description here

So, instead of reader role on the subscription, provided contributor role this time and checked the deployment which is successful:

enter image description here

In Azure Portal:

enter image description here

Not only the Contributor access, two more roles available

enter image description here

in accessing the Function App with specific privileges mentioned in one of the MSFT Q&A Answer by @MughundhanRaveendran.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.