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

add secondary NSG detection by subnet #27

Merged
merged 2 commits into from
Jan 25, 2023
Merged

Conversation

jagilber
Copy link
Member

some NSG's are only attached by subnet and not NIC.
add secondary check for NSG by subnet in fucntion NSGCreation()

example output:
2023-01-25T15:13:17-05 [Information] - [NSGCreation] Initiating NSG Creation
2023-01-25T15:13:17-05 [Information] - [NSGCreation] Looping all VMSS in the backend pool of the Load Balancer
2023-01-25T15:13:18-05 [Information] - [NSGCreation] Checking if VMSS Named: nt0 has a NSG
2023-01-25T15:13:20-05 [Warning] - [NSGCreation] NSG detected in Subnet for VMSS Named: nt0 Subnet.NetworkSecurityGroup Id: /subscriptions/.../resourceGroups/.../providers/Microsoft.Network/networkSecurityGroups/VNet-Subnet-0-nsg-eastus
2023-01-25T15:13:20-05 [Warning] - [NSGCreation] NSG will not be created for VMSS Named: nt0
2023-01-25T15:13:20-05 [Information] - [NSGCreation] NSG Creation Completed

@mbrat2005 mbrat2005 merged commit 1a3fbd4 into Azure:main Jan 25, 2023
@jagilber jagilber deleted the subnetNSG branch February 19, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants