Skip to content

Instantly share code, notes, and snippets.

@valtoni
Created October 12, 2025 14:43
Show Gist options
  • Save valtoni/d7884de5f717075dc97aacc50eda0699 to your computer and use it in GitHub Desktop.
Save valtoni/d7884de5f717075dc97aacc50eda0699 to your computer and use it in GitHub Desktop.
NSG Rule - Microsoft Store Winget
resource "azurerm_network_security_rule" "allow_winget" {
name = "Allow-Winget-Microsoft"
priority = 150
direction = "Outbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_ranges = ["443"]
source_address_prefix = "*"
destination_address_prefixes = [
"AzureFrontDoor.Frontend",
"AzureActiveDirectory"
]
description = "Permite uso do Microsoft Winget e Microsoft Store"
resource_group_name = azurerm_network_security_group.example.resource_group_name
network_security_group_name = azurerm_network_security_group.example.name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment