Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: DeploymentOutputEvaluationFailed #286

Open
1 task done
ansmah opened this issue Mar 4, 2022 · 7 comments
Open
1 task done

Bug: DeploymentOutputEvaluationFailed #286

ansmah opened this issue Mar 4, 2022 · 7 comments
Assignees
Labels
backlog Backlog item bug Something isn't working

Comments

@ansmah
Copy link

ansmah commented Mar 4, 2022

Deployment Mode

Deploy To Azure

Steps to reproduce

Screenshot 2022-03-03 162304

Error when choosing deploy in Azure Landing Zone (former Enterprise-Scale Landing Zone) environment when specifying Third Party Appliance firewall and the DNS Forwarder IP addresses of existing environment.

Error Message

{
    "status": "Failed",
    "error": {
        "code": "DeploymentOutputEvaluationFailed",
        "message": "Unable to evaluate template outputs: 'serviceSubnet'. Please see error details and deployment operations. Please see https://aka.ms/arm-debug for usage details.",
        "details": [
            {
                "code": "DeploymentOutputEvaluationFailed",
                "target": "serviceSubnet",
                "message": "The template output 'serviceSubnet' is not valid: The language expression property array index '1' is out of bounds.."
            }
        ]
    }
}

Screenshots

No response

Code of Conduct

@ansmah ansmah added backlog Backlog item bug Something isn't working labels Mar 4, 2022
@marvinbuss
Copy link
Collaborator

Thanks for sharing this issue @ansmah. Let me try to reproduce this on my side.

@marvinbuss
Copy link
Collaborator

Hi @ansmah I just tried reproducing the issue in the portal, but I was not able to get the same error. Would you be able to share the selected IP addresses with me?
You can also reach out to me on LinkedIn and share the information in a private message: https://www.linkedin.com/in/marvinbuss/

image
image

@ansmah
Copy link
Author

ansmah commented Mar 4, 2022

hi @marvinbuss I have shared details with the IP addresses I have used in the portal with you over LinkedIn

@ansmah
Copy link
Author

ansmah commented Mar 8, 2022

@marvinbuss I think the issue is in network.bicep where its specified in output to look for
output serviceSubnet string = vnet.properties.subnets[1].id

In the case where
"enableDnsAndFirewallDeployment": {

        "value": false

    },

There is only one element returned in var subnets.
Trying this locally to see if we can make it work here.

output serviceSubnet string = enableDnsAndFirewallDeployment ? vnet.properties.subnets[1].id : vnet.properties.subnets[0].id

@abdale
Copy link
Contributor

abdale commented Mar 15, 2022

I'm seeing the same issue only when I try to deploy into Azure Landing Zone.

"statusMessage": "{\"status\":\"Failed\",\"error\":{\"code\":\"ResourceDeploymentFailure\",\"message\":\"The resource operation completed with terminal provisioning state 'Failed'.\",\"details\":[{\"code\":\"DeploymentOutputEvaluationFailed\",\"message\":\"Unable to evaluate template outputs: 'serviceSubnet'. Please see error details and deployment operations. Please see https://aka.ms/arm-debug for usage details.\",\"details\":[{\"code\":\"DeploymentOutputEvaluationFailed\",\"target\":\"serviceSubnet\",\"message\":\"The template output 'serviceSubnet' is not valid: The language expression property array index '1' is out of bounds..\"}]}]}}",

@ansmah
Copy link
Author

ansmah commented Mar 18, 2022

the modified output line allows me to deploy into Landing Zone.

@imcloud-unni
Copy link

@ansmah Could you please let me know, whether you changed that particular line only in network.bicep file OR did any other additional step. I also changed the line, but the same error happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Backlog item bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants