No documentation available on How to add tags to the artifact being deployed.
Creation of the Java function app and deployment should work as expected.
Actual behavior
Unable to push due to policy restrictions.
[ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.4.1:deploy (default-cli) on project alexp-func: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "evaluationDetails" (class com.microsoft.azure.PolicyViolationErrorInfo), not marked as ignorable (13 known properties: "policyDefinitionId", "policyDefinitionReferenceId", "policyDefinitionDisplayName", "policyAssignmentParameters", "policyAssignmentName", "policySetDefinitionName", "policyDefinitionName", "policyAssignmentScope", "policyDefinitionEffect", "policyAssignmentId", "policySetDefinitionId", "policySetDefinitionDisplayName", "policyAssignmentDisplayName"])
[ERROR] at [Source: (String)"{"policyDefinitionDisplayName":"If-No-Secure-Transfer","policySetDefinitionDisplayName":"MGP_Security_NonProd","evaluationDetails":{"evaluatedExpressions":[{"result":"True","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Storage/storageAccounts","targetValue":"Microsoft.Storage/storageAccounts","operator":"Equals"},{"result":"False","expressionKind":"Field","expression":"Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly","path":"properties.support"[truncated 887 chars]; line: 1, column: 133] (through reference chain: com.microsoft.azure.CloudError["additionalInfo"]->java.util.ArrayList[0]->com.microsoft.azure.PolicyViolationErrorInfo["evaluationDetails"])
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full de
Steps to reproduce the problem
Add a policy restriction to the Azure subscription which only allows App Services/function app with certain predefined tags.
Plugin name and version
azure-webapp-maven-plugin 1.4.1
Plugin configuration in your
pom.xml
Expected behavior
No documentation available on How to add tags to the artifact being deployed. Creation of the Java function app and deployment should work as expected.
Actual behavior
Unable to push due to policy restrictions.
[ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.4.1:deploy (default-cli) on project alexp-func: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "evaluationDetails" (class com.microsoft.azure.PolicyViolationErrorInfo), not marked as ignorable (13 known properties: "policyDefinitionId", "policyDefinitionReferenceId", "policyDefinitionDisplayName", "policyAssignmentParameters", "policyAssignmentName", "policySetDefinitionName", "policyDefinitionName", "policyAssignmentScope", "policyDefinitionEffect", "policyAssignmentId", "policySetDefinitionId", "policySetDefinitionDisplayName", "policyAssignmentDisplayName"]) [ERROR] at [Source: (String)"{"policyDefinitionDisplayName":"If-No-Secure-Transfer","policySetDefinitionDisplayName":"MGP_Security_NonProd","evaluationDetails":{"evaluatedExpressions":[{"result":"True","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Storage/storageAccounts","targetValue":"Microsoft.Storage/storageAccounts","operator":"Equals"},{"result":"False","expressionKind":"Field","expression":"Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly","path":"properties.support"[truncated 887 chars]; line: 1, column: 133] (through reference chain: com.microsoft.azure.CloudError["additionalInfo"]->java.util.ArrayList[0]->com.microsoft.azure.PolicyViolationErrorInfo["evaluationDetails"]) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full de
Steps to reproduce the problem
Add a policy restriction to the Azure subscription which only allows App Services/function app with certain predefined tags.
Then try to deploy an app service as described in the article: https://docs.microsoft.com/en-gb/java/azure/spring-framework/deploy-spring-boot-java-app-with-maven-plugin?view=azure-java-stable