Trying to use terraform if/else statement on a block in terraform
I am new to terraform and stuck on something I think can be done but don’t know. I am trying to see if there is a way to make the delegation block in azure subnet optional from an if/else. I tried to do it off of a variable but keep getting an error.