Azure Maven插件-部署失败,出现有线错误



mvn-azure函数:部署失败,出现此有线错误。你能帮我破译这个错误吗。

[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>
感谢您提出此问题。在即将发布的maven插件中,我们将把默认版本提升到v2。

相关内容

  • 没有找到相关文章

最新更新