How to make virtual network deployment idempotent? #14478
avivansh
started this conversation in
Authoring Help
Replies: 1 comment
-
@alex-frankel fyi, based on this discussion Azure/azure-quickstart-templates#2786 (comment) |
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 tried using both API-Version @2023-11-01 & @2023-09-01. But I am still getting the below error when I try to re-deploy my bicep templates.
Error: -
Context: -
I have my virtual network defined and I am creating 2 subnets
snet-cosno
&snet-kv
. Azure cosmos DB is already provisioned and is in thesnet-cosno
subnet of the vnet. Now when I re-run the deployment, it results in the above error. I am not sure why it's updatingsnet-cosno
subnet when there has been no changes made to my bicep templates. I was assumed the operation would be idempotent and it won't result into any errors.Code:-
Region I am trying to do deployment is
eastus
.Any help, why re-deployment isn't idempotent here? why
snet-cosno
is getting updated even when there isn't any change?Beta Was this translation helpful? Give feedback.
All reactions