-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nicholas Greenfield
authored and
Nicholas Greenfield
committed
Aug 8, 2024
1 parent
c1f34c4
commit 862f4ef
Showing
5 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
param location string | ||
param vnetName string | ||
param vnetPrefix string | ||
param subnets array | ||
|
||
resource vnet 'Microsoft.Network/virtualNetworks@2021-05-01' = { | ||
name: vnetName | ||
location: location | ||
properties: { | ||
addressSpace: { | ||
addressPrefixes: [ | ||
vnetPrefix | ||
] | ||
} | ||
subnets: subnets | ||
} | ||
} | ||
|
||
@batchSize(1) | ||
resource vnetSubnets 'Microsoft.Network/virtualNetworks/subnets@2020-08-01' = [ for subnet in subnets: { | ||
parent: vnet | ||
name: '${subnet.name}' | ||
properties: { | ||
addressPrefix: subnet.properties.addressPrefix | ||
privateEndpointNetworkPolicies: 'Disabled' | ||
privateLinkServiceNetworkPolicies: 'Enabled' | ||
} | ||
}] | ||
|
||
output vnetName string = vnet.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters