Private Deployment Script unexpected SubnetId error #13029
Unanswered
johnlokerse
asked this question in
Q&A
Replies: 1 comment
-
I've encountered the same issue and like you got into dumping out values in outputs. I tried a few different ways of reconstructing the subnet but all of them resulted in the same error. Despite having a dependsOn referencing the network, I suspect it's related to the value not being known at compile time - not being an expert in ARM I can't say for sure, but that's the kinda punk stuff it pulls all the time. I moved the deployment script into an inner module and that seemed to shut the thing up and it deployed fine. |
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
-
Hi all,
A while back, I created a snippet to illustrate the concept of private deployment scripts. This snippet functioned well at the time. However, when I revisited it today, it generated an error that I couldn’t understand:
This is the snippet I am working with (click here for the full Bicep template):
The error is thrown at the
id
property in thesubnetIds
array undercontainerSettings
. At first glance, the error seems obvious, so I double-checked if the id was empty. To confirm this, I created an output, but it shows the correct id.If I place the output of
outContainerSubnetId
as a hardcoded string in thesubnetIds
array property it goes through validation and deploys correctly. However, the Bicep extension requests a symbolic resource reference:Other solutions
I have tried other ways to see if it works or not:
What am I missing here?
Beta Was this translation helpful? Give feedback.
All reactions