Bug: Built-in and Custom Policy Assignments Deployment - Error: Code=; Message=Received unexpected type Newtonsoft.Json.Linq.JObject #258
Labels
Area: Bicep Accelerator ⚡
Issues / PR's related to Bicep Accelerator
Type: Bug 🪲
Something isn't working
Is there an existing issue for this?
Infrastructure as Code Type? (Required)
bicep
PowerShell Module Version (Optional)
No response
Bootstrap Module Version (Optional)
No response
Starter Module? (Required)
bicep - complete
Starter Module Version (Optional)
No response
Input arguments of the ALZ-PowerShell-Module (Optional)
When deploying Built-in and Custom Policy Assignments I'm getting the below error
Deployment passes What-If stage and I have tried redeploying a few times and still the same
VERBOSE:
02:13:16 - Error: Code=; Message=Received unexpected type Newtonsoft.Json.Linq.JObject
Deployment failed with exception, this is likely an intermittent failure so entering retry loop...
Retrying deployment with attempt number 03 after 40 seconds...
Retrying deployment...
VERBOSE: Using Bicep v0.31.92
VERBOSE: Calling Bicep with arguments: build "/home/vsts/work/1/s/infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep" --stdout
WARNING: /home/vsts/work/1/s/infra-as-code/bicep/CRML/customerUsageAttribution/cuaIdManagementGroup.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentManagementGroup.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/policy/assignments/policyAssignmentManagementGroup.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/modules/policy/assignments/alzDefaults/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentResourceGroup.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/policy/exemptions/policyExemptions.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentResourceGroupMany.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentManagementGroupMany.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentSubscriptionMany.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentSubscription.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/CRML/customerUsageAttribution/cuaIdSubscription.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
Debug Output/Panic Output (Optional)
Expected Behaviour (Required)
Deployed successfully
Actual Behaviour (Required)
Pipeline fails
VERBOSE:
02:13:16 - Error: Code=; Message=Received unexpected type Newtonsoft.Json.Linq.JObject
Deployment failed with exception, this is likely an intermittent failure so entering retry loop...
Retrying deployment with attempt number 03 after 40 seconds...
Retrying deployment...
VERBOSE: Using Bicep v0.31.92
VERBOSE: Calling Bicep with arguments: build "/home/vsts/work/1/s/infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep" --stdout
WARNING: /home/vsts/work/1/s/infra-as-code/bicep/CRML/customerUsageAttribution/cuaIdManagementGroup.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentManagementGroup.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/policy/assignments/policyAssignmentManagementGroup.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/modules/policy/assignments/alzDefaults/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentResourceGroup.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/policy/exemptions/policyExemptions.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentResourceGroupMany.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentManagementGroupMany.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentSubscriptionMany.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/modules/roleAssignments/roleAssignmentSubscription.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
/home/vsts/work/1/s/infra-as-code/bicep/CRML/customerUsageAttribution/cuaIdSubscription.bicep(1,1) : Info Bicep Linter Configuration: Custom bicepconfig.json file found (/home/vsts/work/1/s/infra-as-code/bicep/bicepconfig.json).
Steps to Reproduce (Optional)
No response
Important Factoids (Optional)
No response
References (Optional)
No response
The text was updated successfully, but these errors were encountered: