last sync: 2025-Jun-24 17:22:20 UTC

Virtual Machine NIC must have NSG

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 03d46a5e-3a84-43ee-83b5-d7f7ee7c8a57 (1.0.0) to Azure
Display name Virtual Machine NIC must have NSG
Id 03d46a5e-3a84-43ee-83b5-d7f7ee7c8a57
Version 1.0.0
Details on versioning
Category Network
Microsoft Learn
Description This policy prevents NIC attached to a vm to not have an NSG.
Mode Indexed
Type Custom Community
Effect Default
Audit
Allowed
Deny, Audit, Disabled
RBAC role(s) none
Rule aliases IF (2)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Network/networkInterfaces/networkSecurityGroup.id Microsoft.Network networkInterfaces properties.networkSecurityGroup.id True True
Microsoft.Network/networkInterfaces/virtualMachine.id Microsoft.Network networkInterfaces properties.virtualMachine.id True False
Rule resource types IF (1)
Microsoft.Network/networkInterfaces
JSON
EPAC
Deploy policy 03d46a5e-3a84-43ee-83b5-d7f7ee7c8a57 (1.0.0) to Azure