@Jorge Lopez Thanks for reaching out. The error message you are seeing indicates that the Azure DevOps service principal does not have the necessary permissions to deploy the Azure Function App. Here are a few things you can check to resolve this issue:
- Verify that the Azure DevOps service principal has the necessary permissions. The service principal needs to have the
Contributor
role or higher on the Azure subscription that the Function App is deployed to. Make sure that the service principal has been granted this role. - Check the scope of the permission. The scope of the permission needs to match the scope of the resource. In this case, the scope is the Azure subscription that the Function App is deployed to. Make sure that the service principal has been granted the
Contributor
role on this scope. - Check the Azure Function App configuration. Make sure that the Function App is configured correctly and that it is accessible from the Azure DevOps pipeline. For example, make sure that the Function App is deployed to the correct region and that it is not behind a firewall or virtual network.
- Check the Azure DevOps pipeline configuration. Make sure that the pipeline is configured correctly and that it is using the correct service principle. For example, make sure that the service principal has been added to the pipeline's service connections and that the correct service connection is being used in the pipeline.
Alternatively you can ask any of your administrators to perform the operation and give the necessary permission.