Skip to content

Template Validation

Template Validation #1

Re-run triggered March 12, 2025 20:31
Status Success
Total duration 41m 30s
Artifacts

template-validation.yml

on: workflow_dispatch
template validation
41m 20s
template validation
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
template validation
Failed to expand bicep source '/home/runner/work/get-started-with-ai-agents/get-started-with-ai-agents/infra/main.test.bicep'. Exception calling "GetBicepResources" with "2" argument(s): "Unable to expand resources because the source file '/home/runner/work/get-started-with-ai-agents/get-started-with-ai-agents/infra/main.test.bicep' was not valid. An error occurred evaluating expression '[if(empty(if(empty(parameters('aiExistingProjectConnectionString')), split(reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, if(not(empty(parameters('resourceGroupName'))), parameters('resourceGroupName'), format('{0}{1}', variables('abbrs').resourcesResourceGroups, parameters('environmentName')))), 'Microsoft.Resources/deployments', 'ai'), '2022-09-01').outputs.discoveryUrl.value, '/')[2], '')), createObject('value', parameters('aiExistingProjectConnectionString')), createObject('value', format('{0};{1};{2};{3}', if(empty(parameters('aiExistingProjectConnectionString')), split(reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, if(not(empty(parameters('resourceGroupName'))), parameters('resourceGroupName'), format('{0}{1}', variables('abbrs').resourcesResourceGroups, parameters('environmentName')))), 'Microsoft.Resources/deployments', 'ai'), '2022-09-01').outputs.discoveryUrl.value, '/')[2], ''), subscription().subscriptionId, if(not(empty(parameters('resourceGroupName'))), parameters('resourceGroupName'), format('{0}{1}', variables('abbrs').resourcesResourceGroups, parameters('environmentName'))), variables('projectName'))))]' line 5083. The function 'if' failed. The function 'if' failed. Index was outside the bounds of the array."
template validation
One or more assertions failed. One or more errors occured.
template validation
Process completed with exit code 1.
template validation
Dev container up failed: Command failed: /bin/sh -c python3 -m pip install -r requirements-dev.txt && python3 -m pip install -e src (exit code: undefined) postCreateCommand from devcontainer.json failed.
template validation
Command failed: /bin/sh -c python3 -m pip install -r requirements-dev.txt && python3 -m pip install -e src
template validation
Dev container exec failed: (exit code: 127)
template validation
Dev container exec failed: (exit code: 127)
template validation
Using invariant culture may cause rule infomation to be displayed incorrectly. Consider using -Culture or set the Output.Culture option.