Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deny-Subnet-Without-Nsg will allow a network with a subnet to be created. #407

Closed
papatari opened this issue Jan 23, 2021 · 1 comment · Fixed by #885
Closed

Deny-Subnet-Without-Nsg will allow a network with a subnet to be created. #407

papatari opened this issue Jan 23, 2021 · 1 comment · Fixed by #885
Labels
bug Something isn't working

Comments

@papatari
Copy link

Deny-Subnet-Without-Nsg will allow a network with a subnet to be created.

The Deny-Subnet-Without-Nsg rule works for existing networks. Apparently when you try to add the subnet it will block you.
However if you create a new vNET with a subnet it will go through and then mark it as non-compliant.

@papatari papatari added bug Something isn't working triage labels Jan 23, 2021
@papatari papatari changed the title Bug Report Deny-Subnet-Without-Nsg will allow a network with a subnet to be created. Jan 23, 2021
@krnese
Copy link
Contributor

krnese commented Mar 1, 2021

Thanks. This is a known issue due to the different ways you can model a subnet today, 1) either as a top-level child resource, or 2) as declared in the property bag of the virtualNetworks resourceType (parent). We don't have a fix for this until the platform addresses it.

@krnese krnese closed this as completed Mar 1, 2021
@ljtill ljtill removed the triage label Apr 22, 2021
withstu added a commit to withstu/terraform-azurerm-caf-enterprise-scale that referenced this issue Jan 6, 2022
fixes the issue that vnets with a subnet without udr can be created by ARM deployment despite of the deny policy  Azure/Enterprise-Scale#407
withstu added a commit to withstu/terraform-azurerm-caf-enterprise-scale that referenced this issue Jan 6, 2022
fixes the issue that vnets with a subnet without nsg can be created by ARM deployment despite of the deny policy  Azure/Enterprise-Scale#407
withstu added a commit to withstu/Enterprise-Scale that referenced this issue Jan 6, 2022
fixes deny subnet without nsg & udr policies when used in ARM deployment: Azure#407
@jtracey93 jtracey93 linked a pull request Jan 10, 2022 that will close this issue
6 tasks
@ghost ghost locked as resolved and limited conversation to collaborators Jan 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants