mvn azure-functions:deploy 因此有线错误而失败。你能帮我破译错误吗?
[ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.10.0:deploy (default-cli) on project function-sample-azure:
Unknown error with status code 403: Unrecognized field "evaluationDetails" (class com.microsoft.azure.PolicyViolationErrorInfo),
ot marked as ignorable (13 known properties: "policyDefinitionId", "policyDefinitionReferenceId", "policyDefinitionDisplayName", "policyAssignmentParameters",
"policyAssignmentName", "policySetDefinitionName", "policyDefinitionName", "policyAssignmentScope", "policyDefinitionEffect", "policyAssignmentId", "policySetDefinitionId",
"policySetDefinitionDisplayName", "policyAssignmentDisplayName"])
[ERROR] at [Source: (String)"{"policyDefinitionDisplayName":"STORAGE - Deny Storage account Version 1",
"policySetDefinitionDisplayName":"Storage-initiative-npd","evaluationDetails":{"evaluatedExpressions":
[{"result":"True","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Storage/storageAccounts",
"targetValue":"Microsoft.Storage/storageAccounts","operator":"Equals"},{"result":"True","expressionKind":"Field","expression":"kind","path":"kind","expressionValue":"Storage",
"targetValue":"Sto"[truncated 911 chars]; line: 1, column: 154]
(through reference chain: com.microsoft.azure.CloudError["additionalInfo"]->java.util.ArrayList[0]->com.microsoft.azure.PolicyViolationErrorInfo["evaluationDetails"])
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.10.0:deploy
(default-cli) on project function-sample-azure: Unknown error with status code 403
以下是我正在使用的属性和插件配置。我还有一个企业要求,不要在此部署中创建新的存储帐户;而是使用现有的有办法配置它。
<properties>
<java.version>1.8</java.version>
<functionAppName>12345600SampleFunctionApp</functionAppName>
<functionAppRegion>eastus2</functionAppRegion>
<region>eastus2</region>
<functionResourceGroup>myFunctionResourceGroup</functionResourceGroup>
<stagingDirectory>${project.build.directory}/azure-functions/${functionAppName}</stagingDirectory>
<start-class>com.wi.prdc.azure.sample.function.Main</start-class>
<azure.functions.java.library.version>1.4.2</azure.functions.java.library.version>
<azure.functions.maven.plugin.version>1.10.0</azure.functions.maven.plugin.version>
<wrapper.version>1.0.23.RELEASE</wrapper.version>
<appServicePlanName>myfunctionAppServicPlan</appServicePlanName>
</properties>