Deploy AVD to NIH Environment #113
Deploy-Env.yml
on: workflow_dispatch
build-and-deploy
1m 14s
Annotations
1 error and 3 warnings
build-and-deploy
Error: Template validation failed.
|
build-and-deploy
The following actions use a deprecated Node.js version and will be forced to run on node20: azure/login@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build-and-deploy
WARNING: /home/runner/work/avdaccelerator-nih/avdaccelerator-nih/avm/1.0.0/res/resources/resource-group/main.bicep(25,23) : Warning no-deployments-resources: Resource 'avmTelemetry' of type 'Microsoft.Resources/deployments@2023-07-01' should instead be declared as a Bicep module. [https://aka.ms/bicep/linter/no-deployments-resources]
/home/runner/work/avdaccelerator-nih/avdaccelerator-nih/workload/bicep/deploy-test.bicep(18,7) : Warning no-unused-params: Parameter "avdNetworkObjectsRgCustomName" is declared but never used. [https://aka.ms/bicep/linter/no-unused-params]
/home/runner/work/avdaccelerator-nih/avdaccelerator-nih/workload/bicep/deploy-test.bicep(26,7) : Warning no-unused-params: Parameter "avdStorageObjectsRgCustomName" is declared but never used. [https://aka.ms/bicep/linter/no-unused-params]
/home/runner/work/avdaccelerator-nih/avdaccelerator-nih/avm/1.0.0/ptn/authorization/role-assignment/modules/resource-group.bicep(53,28) : Warning use-safe-access: Use the safe access (.?) operator instead of checking object contents with the 'contains' function. [https://aka.ms/bicep/linter/use-safe-access]
|
build-and-deploy
ERROR: ***"code": "InvalidTemplateDeployment", "message": "The template deployment failed with multiple errors. Please see details for more information."***
Inner Errors:
***"code": "RequestDisallowedByPolicy", "target": "64f66f7f-6438-503c-809e-cc88480dd2bd", "message": "Resource '64f66f7f-6438-503c-809e-cc88480dd2bd' was disallowed by policy. Reasons: 'This action is out of compliance with the CIT STRIDES managed polices. Please contact [email protected] for more information.'. See error details for policy resource IDs.", "additionalInfo": [***"type": "PolicyViolation", "info": ***"evaluationDetails": ***"evaluatedExpressions": [***"result": "False", "expressionKind": "Field", "expression": "location", "path": "location", "targetValue": ["westus3", "westus2", "westus2stage", "westusstage", "westus", "westcentralus", "unitedstates", "southcentralusstage", "southcentralus", "northcentralus", "northcentralusstage", "global", "eastus2stage", "eastus2", "eastusstage", "eastus", "centralusstage", "centralus"], "operator": "In"***], "reason": "This action is out of compliance with the CIT STRIDES managed polices. Please contact [email protected] for more information."***, "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/nih-cit-cs-mg-core-az/providers/Microsoft.Authorization/policyDefinitions/482c003d-dcca-4f56-84b8-c5d4d2c9deb5", "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/nih-cit-cs-mg-core-az/providers/Microsoft.Authorization/policySetDefinitions/7b2e8843bc924a5684db6317", "policyDefinitionReferenceId": "Audit-Resource-Location_1", "policySetDefinitionName": "7b2e8843bc924a5684db6317", "policySetDefinitionDisplayName": "NIH-CIT-CS-Policy-Initiative", "policyDefinitionName": "482c003d-dcca-4f56-84b8-c5d4d2c9deb5", "policyDefinitionDisplayName": "Audit-Resource-Location", "policyDefinitionEffect": "deny", "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/nih-cit-cs-mg-core-az/providers/Microsoft.Authorization/policyAssignments/406e568102884fb88bc3f38b", "policyAssignmentName": "406e568102884fb88bc3f38b", "policyAssignmentDisplayName": "NIH-CIT-CS-Policy-Initiative", "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/nih-cit-cs-mg-core-az", "policyAssignmentParameters": ***, "policyExemptionIds": []***]***
Inner Errors:
***"code": "RequestDisallowedByPolicy", "target": "be2d3ebb-9b85-5722-9495-56331ae88df7", "message": "Resource 'be2d3ebb-9b85-5722-9495-56331ae88df7' was disallowed by policy. Reasons: 'This action is out of compliance with the CIT STRIDES managed polices. Please contact [email protected] for more information.'. See error details for policy resource IDs.", "additionalInfo": [***"type": "PolicyViolation", "info": ***"evaluationDetails": ***"evaluatedExpressions": [***"result": "False", "expressionKind": "Field", "expression": "location", "path": "location", "targetValue": ["westus3", "westus2", "westus2stage", "westusstage", "westus", "westcentralus", "unitedstates", "southcentralusstage", "southcentralus", "northcentralus", "northcentralusstage", "global", "eastus2stage", "eastus2", "eastusstage", "eastus", "centralusstage", "centralus"], "operator": "In"***], "reason": "This action is out of compliance with the CIT STRIDES managed polices. Please contact [email protected] for more information."***, "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/nih-cit-cs-mg-core-az/providers/Microsoft.Authorization/policyDefinitions/482c003d-dcca-4f56-84b8-c5d4d2c9deb5", "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/nih-cit-cs-mg-core-az/providers/Microsoft.Authorization/policySetDefinitions/7b2e8843bc924a5684db6317", "policyDefinitionReferenceId": "Audit-Resource-Location_1", "policySetDefinitionName": "7b2e8843bc924a5684db6317", "policySetDefinitionDisplayName": "NIH-CIT-CS-Policy-Initiative", "policyDefinitionName": "482c003d-dcca-4f56-84b8-c5d4d2c9deb5", "policyDefinition
|