-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VWAN Hub Connection Support for
enableInternetSecurity
& Add Ne…
…w Example for Multiple VNets (#30) * add vwan enableInternetSecurity support * update version for BRM and add new example, plus fix to 3 * Auto-update Bicep Module Docs for PR 30 [jtracey93/1afaa6e4] * update PR template Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1afaa6e
commit 9841c2a
Showing
10 changed files
with
114 additions
and
9 deletions.
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
62 changes: 62 additions & 0 deletions
62
docs/wiki/Example-4-Multiple-VNets-In-Same-Subscription.md
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,62 @@ | ||
<!-- markdownlint-disable MD041 --> | ||
## Example 4 - Landing Zone (Subscription) with Multiple VNets | ||
|
||
### Bicep Module Registry | ||
|
||
Here is a simple example Bicep file for deploying a landing zone (Subscription) with multiple spoke Virtual Networks peered to a Virtual WAN Hub using the [Bicep Module Registry](https://github.com/Azure/bicep-registry-modules): | ||
|
||
```bicep | ||
targetScope = 'managementGroup' | ||
@description('Specifies the location for resources.') | ||
param location string = 'uksouth' | ||
module createSubAndFirstVnet 'br/public:lz/sub-vending:1.2.1' = { | ||
name: 'sub-with-multiple-vnets' | ||
params: { | ||
subscriptionAliasEnabled: true | ||
subscriptionBillingScope: '/providers/Microsoft.Billing/billingAccounts/1234567/enrollmentAccounts/123456' | ||
subscriptionAliasName: 'sub-bicep-lz-vending-example-004' | ||
subscriptionDisplayName: 'sub-bicep-lz-vending-example-004' | ||
subscriptionTags: { | ||
test: 'true' | ||
} | ||
subscriptionWorkload: 'Production' | ||
subscriptionManagementGroupAssociationEnabled: true | ||
subscriptionManagementGroupId: 'alz-landingzones-corp' | ||
virtualNetworkEnabled: true | ||
virtualNetworkLocation: location | ||
virtualNetworkResourceGroupName: 'rsg-${location}-net-001' | ||
virtualNetworkName: 'vnet-${location}-001' | ||
virtualNetworkAddressSpace: [ | ||
'10.0.0.0/16' | ||
] | ||
virtualNetworkResourceGroupLockEnabled: false | ||
virtualNetworkPeeringEnabled: true | ||
hubNetworkResourceId: '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rsg-uks-net-vwan-001/providers/Microsoft.Network/virtualHubs/vhub-uks-001' | ||
} | ||
} | ||
module createSubAndFirstVnet 'br/public:lz/sub-vending:1.2.1' = { | ||
name: 'additional-vnet' | ||
params: { | ||
subscriptionAliasEnabled: false | ||
existingSubscriptionId: createSubAndFirstVnet.outputs.subscriptionId | ||
subscriptionManagementGroupAssociationEnabled: true | ||
subscriptionManagementGroupId: 'alz-landingzones-corp' | ||
virtualNetworkEnabled: true | ||
virtualNetworkLocation: location | ||
virtualNetworkResourceGroupName: 'rsg-${location}-net-001' | ||
virtualNetworkName: 'vnet-${location}-002' | ||
virtualNetworkAddressSpace: [ | ||
'10.1.0.0/16' | ||
] | ||
virtualNetworkResourceGroupLockEnabled: false | ||
virtualNetworkPeeringEnabled: true | ||
hubNetworkResourceId: '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rsg-uks-net-vwan-001/providers/Microsoft.Network/virtualHubs/vhub-uks-001' | ||
} | ||
} | ||
``` | ||
|
||
|
||
Back to [Examples](Examples) |
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
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