Nested Loops in Application Gateway? #2468
Answered
by
ManuInNZ
lewiscraig
asked this question in
Q&A
Replies: 2 comments
-
Try to use the vnet name param to get the resourceid
resourceId('microsoft.network/virtualnetworks/subnets',
virtualNetworks_GRU_VN_02_name, applicationGateways_GRU_Sub_02_name)
Cheers
Manu
…On Fri, 30 Apr 2021, 02:34 lewiscraig, ***@***.***> wrote:
I am having a hard time understanding what I need to do to deploy my
application gateway in azure. It sounds like my errors may be due to the
fact that some sort of nesting of resources is happening ? How do I know
which ones are nested? I know in #1280
<#1280> it was said, " external
JSON file that describes the applications that need to be added to the AGW
and we supply that file as a parameter to the AGW ARM template to generate
all the required settings." But I am too much of a newbie to even make
sense out of this. Can someone explain a little more how this is done?
attached will be the bicep file, and if I run the outputs at the bottom of
the file in a bicep file by themselves, they resolve just fine. So I have
proven to myself I know how to "reference" the existing application gateway
components and now I am trying to build a "second" version of the same
thing in a new subnet. Here is output of execution
new-azresourcegroupdeployment -name agsetup3 -templatefile
.\agsetup3.bicep -resourcegroup GRUProd
New-AzResourceGroupDeployment : Cannot retrieve the dynamic parameters for
the cmdlet.
C:\Users\lewisca1\Downloads\VS\agsetup3.bicep(110,17) : Error BCP082: The
name "ResourceId" does not exist in the
current context. Did you mean "resourceId"?
C:\Users\lewisca1\Downloads\VS\agsetup3.bicep(113,17) : Error BCP082: The
name "ResourceId" does not exist in the
current context. Did you mean "resourceId"?
At line:1 char:1
- new-azresourcegroupdeployment -name agsetup3 -templatefile
.\agsetup3 ...
-
+ CategoryInfo : InvalidArgument: (:) [New-AzResourceGroupDeployment], ParameterBindingException
+ FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implement
ation.NewAzureResourceGroupDeploymentCmdlet
agsetup3.txt <https://github.com/Azure/bicep/files/6399379/agsetup3.txt>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2468>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4R3ADI5CYYKSIYZAIFYJDTLFU6RANCNFSM432A4DYA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
brwilkinson
-
with the new Linting rules in Bicep, I was able to spot the error in the file easily. looks like your case just needs to be updated on the Old thread, however hopefully you have been able to resolve your issue by now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having a hard time understanding what I need to do to deploy my application gateway in azure. It sounds like my errors may be due to the fact that some sort of nesting of resources is happening ? How do I know which ones are nested? I know in #1280 it was said, " external JSON file that describes the applications that need to be added to the AGW and we supply that file as a parameter to the AGW ARM template to generate all the required settings." But I am too much of a newbie to even make sense out of this. Can someone explain a little more how this is done? attached will be the bicep file, and if I run the outputs at the bottom of the file in a bicep file by themselves, they resolve just fine. So I have proven to myself I know how to "reference" the existing application gateway components and now I am trying to build a "second" version of the same thing in a new subnet. Here is output of execution
new-azresourcegroupdeployment -name agsetup3 -templatefile .\agsetup3.bicep -resourcegroup GRUProd
New-AzResourceGroupDeployment : Cannot retrieve the dynamic parameters for the cmdlet.
C:\Users\lewisca1\Downloads\VS\agsetup3.bicep(110,17) : Error BCP082: The name "ResourceId" does not exist in the
current context. Did you mean "resourceId"?
C:\Users\lewisca1\Downloads\VS\agsetup3.bicep(113,17) : Error BCP082: The name "ResourceId" does not exist in the
current context. Did you mean "resourceId"?
At line:1 char:1
agsetup3.txt
Beta Was this translation helpful? Give feedback.
All reactions