Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created February 20, 2022 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlokerse/be8728386612cb8cca92fc943aed9d56 to your computer and use it in GitHub Desktop.
Save johnlokerse/be8728386612cb8cca92fc943aed9d56 to your computer and use it in GitHub Desktop.
// Implicit dependency
resource nsg 'Microsoft.Network/networkSecurityGroups@2019-11-01' = {
name: 'euw-nsg-vm'
location: resourceGroup().location
}
resource nsgRule 'Microsoft.Network/networkSecurityGroups/securityRules@2019-11-01' = {
name: '${nsg}/AllowAllRule'
properties: {
description: 'Allow all'
protocol: '*'
sourcePortRange: '*'
destinationPortRange: '*'
sourceAddressPrefix: '*'
destinationAddressPrefix: '*'
access: 'Allow'
priority: 100
direction: 'Inbound'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment