Next available subnet from an existing Virtual Hub #11828
tblackshaw-kinly
started this conversation in
Authoring Help
Replies: 1 comment
-
I believe the If there's no way to map out the network statically (i.e., without looking at the current state of the network), I would caution against using the approach you describe, as it would make deployments non-idempotent. Deploying the same template a second time would give you a clone of the same set of resources instead of updating those resources in place. You could use a deployment script to query the network if you want to go with this approach, but there's no built-in function to query what subnets have already been assigned on. |
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,
At present, we have 4 virtual hubs each with their own 10.20* address.
When we create additional VNets, we manually input the third octet via pipeline variable. We would like to know if it was possible to automatically get the next available /23 range to ensure there is no overlaps when it comes to the vnet peering.
This is our code currently:
Beta Was this translation helpful? Give feedback.
All reactions