From ec6d5356ab6572793da7480b422a32cd763ec38a Mon Sep 17 00:00:00 2001 From: Jennelle Crothers Date: Fri, 11 Apr 2025 16:58:24 -0700 Subject: [PATCH] adding templates for demo --- templates/2025_04/fabric_networking.jsonc | 100 ++++++++++++++++++ .../fabric_networking.parameters.jsonc | 40 +++++++ templates/2025_04/nc_networking.jsonc | 75 +++++++++++++ .../2025_04/nc_networking.parameters.jsonc | 27 +++++ 4 files changed, 242 insertions(+) create mode 100644 templates/2025_04/fabric_networking.jsonc create mode 100644 templates/2025_04/fabric_networking.parameters.jsonc create mode 100644 templates/2025_04/nc_networking.jsonc create mode 100644 templates/2025_04/nc_networking.parameters.jsonc diff --git a/templates/2025_04/fabric_networking.jsonc b/templates/2025_04/fabric_networking.jsonc new file mode 100644 index 0000000..1a2fab3 --- /dev/null +++ b/templates/2025_04/fabric_networking.jsonc @@ -0,0 +1,100 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "l3IsolationDomain_name": { + "type": "string" + }, + "networkFabrics_id": { + "type": "string" + }, + "external_Uplink_name": { + "type": "string" + }, + "optionBProperties": { + "type": "object" + }, + "l3InternalNetwork_name": { + "type": "string" + }, + "peerASN": { + "type": "int" + }, + "vlanId": { + "type": "int" + }, + "ipv4Prefix": { + "type": "string" + }, + "ipv6Prefix": { + "type": "string" + } + }, + "variables": {}, + "resources": [ + { + "type": "Microsoft.ManagedNetworkFabric/l3IsolationDomains", + "apiVersion": "2023-06-15", + "name": "[parameters('l3IsolationDomain_name')]", + "location": "uksouth", + "properties": { + "redistributeConnectedSubnets": "True", + "redistributeStaticRoutes": "True", + "networkFabricId": "[parameters('networkFabrics_id')]" + } + }, + { + "type": "Microsoft.ManagedNetworkFabric/l3IsolationDomains/externalNetworks", + "apiVersion": "2023-06-15", + "name": "[concat(parameters('l3IsolationDomain_name'),'/', parameters('external_Uplink_name'))]", + "dependsOn": [ + "[resourceId('Microsoft.ManagedNetworkFabric/l3IsolationDomains', parameters('l3IsolationDomain_name'))]" + ], + "properties": { + "peeringOption": "OptionB", + "optionBProperties": "[parameters('optionBProperties')]" + + + } + }, + { + "type": "Microsoft.ManagedNetworkFabric/l3IsolationDomains/internalNetworks", + "apiVersion": "2023-06-15", + "name": "[concat(parameters('l3IsolationDomain_name'),'/', parameters('l3InternalNetwork_name'))]", + "dependsOn": [ + "[resourceId('Microsoft.ManagedNetworkFabric/l3IsolationDomains', parameters('l3IsolationDomain_name'))]" + ], + "properties": { + "vlanId": "[parameters('vlanId')]", + "mtu": 9000, + "connectedIPv4Subnets": [ + { + "prefix": "[parameters('ipv4Prefix')]" + } + ], + "connectedIPv6Subnets": [ + { + "prefix": "[parameters('ipv6Prefix')]" + } + ], + "bgpConfiguration": { + "defaultRouteOriginate": "True", + "allowAS": 2, + "allowASOverride": "Unknown", + "peerASN": "[parameters('peerASN')]", + "ipv4ListenRangePrefixes": [ + "[parameters('ipv4Prefix')]" + ], + "ipv6ListenRangePrefixes": [ + "[parameters('ipv6Prefix')]" + ] + }, + "isMonitoringEnabled": "False", + "extension": "NoExtension" + } + } + + + + ] +} \ No newline at end of file diff --git a/templates/2025_04/fabric_networking.parameters.jsonc b/templates/2025_04/fabric_networking.parameters.jsonc new file mode 100644 index 0000000..6686278 --- /dev/null +++ b/templates/2025_04/fabric_networking.parameters.jsonc @@ -0,0 +1,40 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "l3IsolationDomain_name": { // Provide a name for the isolation domain + "value": "" + }, + "networkFabrics_id": { // Provide the appropriate network fabric resource ID for the instance + "value": "" + }, + "external_Uplink_name": { // Provide a name for the external network uplink + "value": "" + }, + "peerASN": { // This value may be adjusted as needed for peer advertisements, do not change unless instructed + "value": 65227 + }, + "optionBProperties": { // These values are specific to uplink configuration, do not change unless instructed + "value": { + "importRouteTargets": [ + "65129:58" + ], + "exportRouteTargets": [ + "65021:20053" + ] + } + }, + "l3InternalNetwork_name": { // Provide a name for the internal network + "value": "" + }, + "vlanId": { // Provide a VLAN ID that is unique on the instance + "value": 9999 + }, + "ipv4Prefix": { // Provide an ipv4 prefix that is unique on the instance + "value": "" + }, + "ipv6Prefix": { // Provide an ipv6 prefix that is unique on the instance + "value": "" + } + } + } \ No newline at end of file diff --git a/templates/2025_04/nc_networking.jsonc b/templates/2025_04/nc_networking.jsonc new file mode 100644 index 0000000..b255a42 --- /dev/null +++ b/templates/2025_04/nc_networking.jsonc @@ -0,0 +1,75 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "l3Networks_name": { + "type": "string" + }, + "cloudServicesNetworks_name": { + "type": "string" + }, + "l3IsolationDomains_name": { + "type": "string" + }, + "clusterCustomLocation": { + "type": "string" + }, + "vlanId": { + "type": "int" + }, + "ipv4Prefix": { + "type": "string" + }, + "ipv6Prefix": { + "type": "string" + } + }, + "variables": {}, + "resources": [ + { + "type": "Microsoft.NetworkCloud/cloudServicesNetworks", + "apiVersion": "2025-02-01", + "name": "[parameters('cloudServicesNetworks_name')]", + "location": "uksouth", + "extendedLocation": { + "type": "CustomLocation", + "name": "[parameters('clusterCustomLocation')]" + }, + "tags": {}, + "properties": { + "additionalEgressEndpoints": [ + { + "category": "customer-provided", + "endpoints": [ + { + "domainName": ".azurecr.io", + "port": 443 + } + ] + } + ], + "enableDefaultEgressEndpoints": "True" + } + }, + { + "type": "Microsoft.NetworkCloud/l3Networks", + "apiVersion": "2025-02-01", + "name": "[parameters('l3Networks_name')]", + "location": "uksouth", + "extendedLocation": { + "type": "CustomLocation", + "name": "[parameters('clusterCustomLocation')]" + }, + "tags": {}, + "properties": { + "interfaceName": "[concat('vlan-', parameters('vlanId'))]", + "l3IsolationDomainId": "[resourceId('Microsoft.ManagedNetworkFabric/l3IsolationDomains', parameters('l3IsolationDomains_name'))]", + "ipAllocationType": "DualStack", + "ipv4ConnectedPrefix": "[parameters('ipv4Prefix')]", + "ipv6ConnectedPrefix": "[parameters('ipv6Prefix')]", + "vlan": "[parameters('vlanId')]" + } + } + + ] +} \ No newline at end of file diff --git a/templates/2025_04/nc_networking.parameters.jsonc b/templates/2025_04/nc_networking.parameters.jsonc new file mode 100644 index 0000000..896111a --- /dev/null +++ b/templates/2025_04/nc_networking.parameters.jsonc @@ -0,0 +1,27 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "l3Networks_name": { // Provide a name for the internal network + "value": "" + }, + "cloudServicesNetworks_name": { // Provide a name for the cloud services network + "value": "" + }, + "l3IsolationDomains_name": { // Provide the name of the fabric isolation domain that contains the internal network that will correspond with this network + "value": "" + }, + "clusterCustomLocation": { // Provide the custom location for this instance + "value": "" + }, + "vlanId": { // Provide the vlan ID, ipV4 and ipV6 prefixes that correspond with the internal network on the isolation domain + "value": 9999 + }, + "ipv4Prefix": { + "value": "" + }, + "ipv6Prefix": { + "value": "" + } + } + } \ No newline at end of file