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

NotFound","message":"Resource /subscription........Microsoft.Network/loadBalancers/VMSSNAME6LB not found. #13639

Open
eliassal opened this issue Nov 10, 2023 · 1 comment

Comments

@eliassal
Copy link

eliassal commented Nov 10, 2023

[Template Name goes here](VM Scale Set with autoscale running an IIS WebApp)

Issue Details

When I try to deploy main.bicep after creating resopurce group I get the error message

{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/f151ee3f-4725-460d-8e3b-82512dfda843/resourceGroups/bicepquickstart/providers/Microsoft.Resources/deployments/main","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InvalidResourceReference","message":"Resource /subscriptions/f151ee3f-4725-460d-8e3b-82512dfda843/resourceGroups/BICEPQUICKSTART/providers/Microsoft.Network/loadBalancers/VMSSNAME6LB referenced by resource /subscriptions/f151ee3f-4725-460d-8e3b-82512dfda843/resourceGroups/BICEPQUICKSTART/providers/Microsoft.Compute/virtualMachineScaleSets/vmssname6 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.","details":[{"code":"NotFound","message":"Resource /subscriptions/f151ee3f-4725-460d-8e3b-82512dfda843/resourceGroups/BICEPQUICKSTART/providers/Microsoft.Network/loadBalancers/VMSSNAME6LB not found."}]}]}}

In spite of the fact that VMSSNAME6LB is created as you can notice in the azure screen

image

Repro steps (if necessary, delete otherwise)

  1. Create resource group
  2. az deployment group create --resource-group bicepquickstart --parameters vmssName=vmssfrombicep --template-file main.bicep
@mrajess
Copy link
Contributor

mrajess commented Mar 4, 2024

I'm not sure which template you're having an issue with. I couldn't find anything with a name like the one referenced in the title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants