From c8fd5eb72107382592c2ff2b5e728fb02643c542 Mon Sep 17 00:00:00 2001 From: Jennelle Crothers Date: Mon, 5 May 2025 10:12:15 -0700 Subject: [PATCH] update to support multiple NICs --- templates/2025_04/fabric_networking.jsonc | 165 ++++--- .../fabric_networking.parameters.jsonc | 90 ++-- templates/2025_04/nc_networking.jsonc | 152 ++++--- .../2025_04/nc_networking.parameters.jsonc | 67 +-- templates/2025_04/vm.jsonc | 410 +++++++++--------- templates/2025_04/vm.parameters.jsonc | 44 +- 6 files changed, 516 insertions(+), 412 deletions(-) diff --git a/templates/2025_04/fabric_networking.jsonc b/templates/2025_04/fabric_networking.jsonc index 1a2fab3..01c5723 100644 --- a/templates/2025_04/fabric_networking.jsonc +++ b/templates/2025_04/fabric_networking.jsonc @@ -1,100 +1,143 @@ { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "l3IsolationDomain_name": { + "$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" - }, - "networkFabrics_id": { + }, + "optionBProperties": { + "type": "object" + }, + "l3InternalNetwork_name01": { "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", + }, + "vlanId01": { + "type": "int" + }, + "ipv4Prefix01": { + "type": "string" + }, + "ipv6Prefix01": { + "type": "string" + }, + "l3InternalNetwork_name02": { + "type": "string" + }, + "vlanId02": { + "type": "int" + }, + "ipv4Prefix02": { + "type": "string" + }, + "ipv6Prefix02": { + "type": "string" + }, + "location": { + "type": "string" + } + }, + "variables": {}, + "resources": [ + { + "type": "Microsoft.ManagedNetworkFabric/l3IsolationDomains", + "apiVersion": "2023-06-15", + "name": "[parameters('l3IsolationDomain_name')]", + "location": "[parameters('location')]", + "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('external_Uplink_name'))]", + "name": "[concat(parameters('l3IsolationDomain_name'),'/', parameters('l3InternalNetwork_name01'))]", "dependsOn": [ "[resourceId('Microsoft.ManagedNetworkFabric/l3IsolationDomains', parameters('l3IsolationDomain_name'))]" ], "properties": { - "peeringOption": "OptionB", - "optionBProperties": "[parameters('optionBProperties')]" - - + "vlanId": "[parameters('vlanId01')]", + "mtu": 9000, + "connectedIPv4Subnets": [ + { + "prefix": "[parameters('ipv4Prefix01')]" + } + ], + "connectedIPv6Subnets": [ + { + "prefix": "[parameters('ipv6Prefix01')]" + } + ], + "bgpConfiguration": { + "defaultRouteOriginate": "True", + "allowAS": 2, + "allowASOverride": "Unknown", + "peerASN": 65431, + "ipv4ListenRangePrefixes": [ + "[parameters('ipv4Prefix01')]" + ], + "ipv6ListenRangePrefixes": [ + "[parameters('ipv6Prefix01')]" + ] + }, + "isMonitoringEnabled": "False", + "extension": "NoExtension" } }, { "type": "Microsoft.ManagedNetworkFabric/l3IsolationDomains/internalNetworks", "apiVersion": "2023-06-15", - "name": "[concat(parameters('l3IsolationDomain_name'),'/', parameters('l3InternalNetwork_name'))]", + "name": "[concat(parameters('l3IsolationDomain_name'),'/', parameters('l3InternalNetwork_name02'))]", "dependsOn": [ "[resourceId('Microsoft.ManagedNetworkFabric/l3IsolationDomains', parameters('l3IsolationDomain_name'))]" ], "properties": { - "vlanId": "[parameters('vlanId')]", + "vlanId": "[parameters('vlanId02')]", "mtu": 9000, "connectedIPv4Subnets": [ { - "prefix": "[parameters('ipv4Prefix')]" + "prefix": "[parameters('ipv4Prefix02')]" } ], "connectedIPv6Subnets": [ { - "prefix": "[parameters('ipv6Prefix')]" + "prefix": "[parameters('ipv6Prefix02')]" } ], "bgpConfiguration": { "defaultRouteOriginate": "True", "allowAS": 2, "allowASOverride": "Unknown", - "peerASN": "[parameters('peerASN')]", + "peerASN": 65431, "ipv4ListenRangePrefixes": [ - "[parameters('ipv4Prefix')]" + "[parameters('ipv4Prefix02')]" ], "ipv6ListenRangePrefixes": [ - "[parameters('ipv6Prefix')]" + "[parameters('ipv6Prefix02')]" ] }, "isMonitoringEnabled": "False", "extension": "NoExtension" } } - - - - ] -} \ No newline at end of file + ] + } \ No newline at end of file diff --git a/templates/2025_04/fabric_networking.parameters.jsonc b/templates/2025_04/fabric_networking.parameters.jsonc index 6686278..2aa9a89 100644 --- a/templates/2025_04/fabric_networking.parameters.jsonc +++ b/templates/2025_04/fabric_networking.parameters.jsonc @@ -1,40 +1,52 @@ { - "$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 + "$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": "ALRS-ISDL3" + }, + "networkFabrics_id": { // Provide the appropriate network fabric resource ID for the instance + "value": "/subscriptions/fca2e8ee-1179-48b8-9532-428ed0873a2e/resourceGroups/dev10nfrg04112025/providers/Microsoft.ManagedNetworkFabric/networkFabrics/dev10nf0411" + }, + "external_Uplink_name": { // Provide a name for the external network uplink + "value": "ALRS-OptionB-BSD-test" + }, + "optionBProperties": { // These values are specific to uplink configuration, do not change unless instructed + "value": { + "importRouteTargets": [ + "65129:58" + ], + "exportRouteTargets": [ + "65021:20053" + ] + } + }, + "l3InternalNetwork_name01": { // Provide a name for the internal network + "value": "oam" + }, + "vlanId01": { // Provide a VLAN ID that is unique on the instance + "value": 2050 + }, + "ipv4Prefix01": { // Provide an ipv4 prefix that is unique on the instance + "value": "10.131.16.0/24" + }, + "ipv6Prefix01": { // Provide an ipv6 prefix that is unique on the instance + "value": "fda0:d59c:ea0a:10::/64" + }, + "l3InternalNetwork_name02": { // Provide a name for the internal network + "value": "appdata" + }, + "vlanId02": { // Provide a VLAN ID that is unique on the instance + "value": 2051 + }, + "ipv4Prefix02": { // Provide an ipv4 prefix that is unique on the instance + "value": "10.131.17.0/24" + }, + "ipv6Prefix02": { // Provide an ipv6 prefix that is unique on the instance + "value": "fda0:d59c:ea0a:11::/64" + }, + "location": { + "value": "eastus" // Provide the location for the instance + } + } +} \ No newline at end of file diff --git a/templates/2025_04/nc_networking.jsonc b/templates/2025_04/nc_networking.jsonc index b255a42..58b4c77 100644 --- a/templates/2025_04/nc_networking.jsonc +++ b/templates/2025_04/nc_networking.jsonc @@ -1,75 +1,109 @@ { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "l3Networks_name": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "cloudServicesNetworks_name": { + "type": "string" + }, + "l3IsolationDomains_name": { + "type": "string" + }, + "clusterCustomLocation": { "type": "string" - }, - "cloudServicesNetworks_name": { + }, + "l3Networks_name01": { "type": "string" - }, - "l3IsolationDomains_name": { + }, + "vlanId01": { + "type": "int" + }, + "ipv4Prefix01": { "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" - } - }, - { + }, + "ipv6Prefix01": { + "type": "string" + }, + "l3Networks_name02": { + "type": "string" + }, + "vlanId02": { + "type": "int" + }, + "ipv4Prefix02": { + "type": "string" + }, + "ipv6Prefix02": { + "type": "string" + }, + "location": { + "type": "string" + }, + }, + "variables": {}, + "resources": [ + { + "type": "Microsoft.NetworkCloud/cloudServicesNetworks", + "apiVersion": "2025-02-01", + "name": "[parameters('cloudServicesNetworks_name')]", + "location": "[parameters('location')]", + "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_name01')]", + "location": "[parameters('location')]", + "extendedLocation": { + "type": "CustomLocation", + "name": "[parameters('clusterCustomLocation')]" + }, + "tags": {}, + "properties": { + "interfaceName": "[concat('vlan-', parameters('vlanId01'))]", + "l3IsolationDomainId": "[resourceId('Microsoft.ManagedNetworkFabric/l3IsolationDomains', parameters('l3IsolationDomains_name'))]", + "ipAllocationType": "DualStack", + "ipv4ConnectedPrefix": "[parameters('ipv4Prefix01')]", + "ipv6ConnectedPrefix": "[parameters('ipv6Prefix01')]", + "vlan": "[parameters('vlanId01')]" + } + }, + { "type": "Microsoft.NetworkCloud/l3Networks", "apiVersion": "2025-02-01", - "name": "[parameters('l3Networks_name')]", - "location": "uksouth", + "name": "[parameters('l3Networks_name02')]", + "location": "[parameters('location')]", "extendedLocation": { "type": "CustomLocation", "name": "[parameters('clusterCustomLocation')]" }, "tags": {}, "properties": { - "interfaceName": "[concat('vlan-', parameters('vlanId'))]", + "interfaceName": "[concat('vlan-', parameters('vlanId02'))]", "l3IsolationDomainId": "[resourceId('Microsoft.ManagedNetworkFabric/l3IsolationDomains', parameters('l3IsolationDomains_name'))]", "ipAllocationType": "DualStack", - "ipv4ConnectedPrefix": "[parameters('ipv4Prefix')]", - "ipv6ConnectedPrefix": "[parameters('ipv6Prefix')]", - "vlan": "[parameters('vlanId')]" + "ipv4ConnectedPrefix": "[parameters('ipv4Prefix02')]", + "ipv6ConnectedPrefix": "[parameters('ipv6Prefix02')]", + "vlan": "[parameters('vlanId02')]" } } - - ] -} \ No newline at end of file + + ] + } \ No newline at end of file diff --git a/templates/2025_04/nc_networking.parameters.jsonc b/templates/2025_04/nc_networking.parameters.jsonc index 896111a..fb092b4 100644 --- a/templates/2025_04/nc_networking.parameters.jsonc +++ b/templates/2025_04/nc_networking.parameters.jsonc @@ -1,27 +1,42 @@ { - "$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 + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "cloudServicesNetworks_name": { // Provide a name for the cloud services network + "value": "bsd-csn-alrs" + }, + "l3IsolationDomains_name": { // Provide the name of the fabric isolation domain that contains the internal network that will correspond with this network + "value": "ALRS-ISDL3" + }, + "clusterCustomLocation": { // Provide the custom location for this instance + "value": "/subscriptions/fca2e8ee-1179-48b8-9532-428ed0873a2e/resourceGroups/dev10-0c66652bd1b6-HostedResources-65D4B144/providers/Microsoft.ExtendedLocation/customLocations/dev10-0c66652bd1b6-cstm-loc" + }, + "l3Networks_name01": { // Provide a name for the internal network + "value": "oam" + }, + "vlanId01": { // Provide a VLAN ID that is unique on the instance + "value": 2050 + }, + "ipv4Prefix01": { // Provide an ipv4 prefix that is unique on the instance + "value": "10.131.16.0/24" + }, + "ipv6Prefix01": { // Provide an ipv6 prefix that is unique on the instance + "value": "fda0:d59c:ea0a:10::/64" + }, + "l3Networks_name02": { // Provide a name for the internal network + "value": "appdata" + }, + "vlanId02": { // Provide the vlan ID, ipV4 and ipV6 prefixes that correspond with the internal network on the isolation domain + "value": 2051 + }, + "ipv4Prefix02": { + "value": "10.131.17.0/24" + }, + "ipv6Prefix02": { + "value": "fda0:d59c:ea0a:11::/64" + }, + "location": { // Provide the location for the instance + "value": "eastus" + } + } +} \ No newline at end of file diff --git a/templates/2025_04/vm.jsonc b/templates/2025_04/vm.jsonc index db5bf77..32ee94b 100644 --- a/templates/2025_04/vm.jsonc +++ b/templates/2025_04/vm.jsonc @@ -1,220 +1,220 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deployPrefix": { - "type": "string" - }, - "hciApiVersion": { - "type": "string" - }, - "customLocationId": { - "type": "string" - }, - "location": { - "type": "string" - }, - "acrImagePath": { - "type": "string" - }, - "acrUsername": { - "type": "string" - }, - "acrPassword": { - "type": "securestring" - }, - "adminPassword": { - "type": "securestring" - }, - "l3nId01": { - "type": "string" - }, - "l3nId02": { - "type": "string" - }, - "csnId": { - "type": "string" - }, - "vmMemoryMB": { - "type": "int" - }, - "vmProcessors": { - "type": "int" - }, - "ssh-keydata": { - "type": "string" - } - }, - "variables": { - "vmName": "[concat(parameters('deployPrefix'), '-vm')]", - "galleryImageName": "[concat(parameters('deployPrefix'), '-galleryimage')]", - "csnNicName": "[concat(parameters('deployPrefix'), '-csnNic')]", - "l3nNicName01": "[concat(parameters('deployPrefix'), '-l3n01')]", - "l3nNicName02": "[concat(parameters('deployPrefix'), '-l3n02')]" - }, - "resources": [ - { - "type": "Microsoft.AzureStackHCI/networkInterfaces", - "apiVersion": "[parameters('hciApiVersion')]", - "name": "[variables('l3nNicName01')]", - "location": "[parameters('location')]", - "tags": {}, - "extendedLocation": { - "name": "[parameters('customLocationId')]", - "type": "CustomLocation" - }, - "properties": { - "ipConfigurations": [ - { - "properties": { - "subnet": { - "id": "[parameters('l3nId01')]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "deployPrefix": { + "type": "string" + }, + "hciApiVersion": { + "type": "string" + }, + "customLocationId": { + "type": "string" + }, + "location": { + "type": "string" + }, + "acrImagePath": { + "type": "string" + }, + "acrUsername": { + "type": "string" + }, + "acrPassword": { + "type": "securestring" + }, + "adminPassword": { + "type": "securestring" + }, + "l3nId01": { + "type": "string" + }, + "l3nId02": { + "type": "string" + }, + "csnId": { + "type": "string" + }, + "vmMemoryMB": { + "type": "int" + }, + "vmProcessors": { + "type": "int" + }, + "ssh-keydata": { + "type": "string" + } + }, + "variables": { + "vmName": "[concat(parameters('deployPrefix'), '-vm')]", + "galleryImageName": "[concat(parameters('deployPrefix'), '-galleryimage')]", + "csnNicName": "[concat(parameters('deployPrefix'), '-csnNic')]", + "l3nNicName01": "[concat(parameters('deployPrefix'), '-l3n01')]", + "l3nNicName02": "[concat(parameters('deployPrefix'), '-l3n02')]" + }, + "resources": [ + { + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "apiVersion": "[parameters('hciApiVersion')]", + "name": "[variables('l3nNicName01')]", + "location": "[parameters('location')]", + "tags": {}, + "extendedLocation": { + "name": "[parameters('customLocationId')]", + "type": "CustomLocation" + }, + "properties": { + "ipConfigurations": [ + { + "properties": { + "subnet": { + "id": "[parameters('l3nId01')]" } } - ] - } - }, - { - "type": "Microsoft.AzureStackHCI/networkInterfaces", - "apiVersion": "[parameters('hciApiVersion')]", - "name": "[variables('l3nNicName02')]", - "location": "[parameters('location')]", - "tags": {}, - "extendedLocation": { - "name": "[parameters('customLocationId')]", - "type": "CustomLocation" - }, - "properties": { - "ipConfigurations": [ - { - "properties": { - "subnet": { - "id": "[parameters('l3nId02')]" - } + } + ] + } + }, + { + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "apiVersion": "[parameters('hciApiVersion')]", + "name": "[variables('l3nNicName02')]", + "location": "[parameters('location')]", + "tags": {}, + "extendedLocation": { + "name": "[parameters('customLocationId')]", + "type": "CustomLocation" + }, + "properties": { + "ipConfigurations": [ + { + "properties": { + "subnet": { + "id": "[parameters('l3nId02')]" } } - ] + } + ] + } + }, + { + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "apiVersion": "[parameters('hciApiVersion')]", + "name": "[variables('csnNicName')]", + "location": "[parameters('location')]", + "tags": {}, + "extendedLocation": { + "name": "[parameters('customLocationId')]", + "type": "CustomLocation" + }, + "properties": { + "ipConfigurations": [ + { + "properties": { + "subnet": { + "id": "[parameters('csnId')]" + } + } + } + ] + } + }, + { + "type": "Microsoft.AzureStackHCI/galleryImages", + "apiVersion": "[parameters('hciApiVersion')]", + "extendedLocation": { + "name": "[parameters('customLocationId')]", + "type": "CustomLocation" + }, + "location": "[parameters('location')]", + "tags": {}, + "name": "[variables('galleryImageName')]", + "properties": { + "osType": "Linux", + "hyperVGeneration": "", + "imagePath": "[parameters('acrImagePath')]", + "vmImageRepositoryCredentials": { + "username": "[parameters('acrUsername')]", + "password": "[parameters('acrPassword')]" } - }, - { - "type": "Microsoft.AzureStackHCI/networkInterfaces", - "apiVersion": "[parameters('hciApiVersion')]", - "name": "[variables('csnNicName')]", - "location": "[parameters('location')]", - "tags": {}, - "extendedLocation": { - "name": "[parameters('customLocationId')]", - "type": "CustomLocation" + } + }, + { + "type": "Microsoft.HybridCompute/machines", + "apiVersion": "2024-07-10", + "name": "[variables('vmName')]", + "location": "[parameters('location')]", + "tags": {}, + "kind": "HCI", + "identity": { + "type": "SystemAssigned" + } + }, + { + "type": "Microsoft.AzureStackHCI/virtualMachineInstances", + "apiVersion": "[parameters('hciApiVersion')]", + "name": "default", + "extendedLocation": { + "name": "[parameters('customLocationId')]", + "type": "CustomLocation" + }, + "dependsOn": [ + "[resourceId('Microsoft.HybridCompute/machines', variables('vmName'))]", + "[resourceId('Microsoft.AzureStackHci/galleryImages', variables('galleryImageName'))]", + "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('csnNicName'))]", + "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('l3nNicName01'))]", + "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('l3nNicName02'))]" + ], + "properties": { + "hardwareProfile": { + "memoryMB": "[parameters('vmMemoryMB')]", + "processors": "[parameters('vmProcessors')]", + "vmSize": "Custom" }, - "properties": { - "ipConfigurations": [ + "networkProfile": { + "networkInterfaces": [ { - "properties": { - "subnet": { - "id": "[parameters('csnId')]" - } - } + "id": "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('csnNicName'))]" + }, + { + "id": "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('l3nNicName01'))]" + }, + { + "id": "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('l3nNicName02'))]" } ] - } - }, - { - "type": "Microsoft.AzureStackHCI/galleryImages", - "apiVersion": "[parameters('hciApiVersion')]", - "extendedLocation": { - "name": "[parameters('customLocationId')]", - "type": "CustomLocation" }, - "location": "[parameters('location')]", - "tags": {}, - "name": "[variables('galleryImageName')]", - "properties": { - "osType": "Linux", - "hyperVGeneration": "", - "imagePath": "[parameters('acrImagePath')]", - "vmImageRepositoryCredentials": { - "username": "[parameters('acrUsername')]", - "password": "[parameters('acrPassword')]" + "osProfile": { + "adminPassword": "[parameters('adminPassword')]", + "adminUsername": "azureuser", + "computerName": "[variables('vmName')]", + "linuxConfiguration": { + "provisionVMAgent": true, + "provisionVMConfigAgent": true, + "disablePasswordAuthentication": true, + "ssh": { + "publicKeys": [ + { + "keyData": "[parameters('ssh-keydata')]" + } + ] + } } - } - }, - { - "type": "Microsoft.HybridCompute/machines", - "apiVersion": "2024-07-10", - "name": "[variables('vmName')]", - "location": "[parameters('location')]", - "tags": {}, - "kind": "HCI", - "identity": { - "type": "SystemAssigned" - } - }, - { - "type": "Microsoft.AzureStackHCI/virtualMachineInstances", - "apiVersion": "[parameters('hciApiVersion')]", - "name": "default", - "extendedLocation": { - "name": "[parameters('customLocationId')]", - "type": "CustomLocation" }, - "dependsOn": [ - "[resourceId('Microsoft.HybridCompute/machines', variables('vmName'))]", - "[resourceId('Microsoft.AzureStackHci/galleryImages', variables('galleryImageName'))]", - "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('csnNicName'))]", - "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('l3nNicName01'))]", - "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('l3nNicName02'))]" - ], - "properties": { - "hardwareProfile": { - "memoryMB": "[parameters('vmMemoryMB')]", - "processors": "[parameters('vmProcessors')]", - "vmSize": "Custom" - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('csnNicName'))]" - }, - { - "id": "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('l3nNicName01'))]" - }, - { - "id": "[resourceId('Microsoft.AzureStackHci/networkInterfaces', variables('l3nNicName02'))]" - } - ] - }, - "osProfile": { - "adminPassword": "[parameters('adminPassword')]", - "adminUsername": "azureuser", - "computerName": "[variables('vmName')]", - "linuxConfiguration": { - "provisionVMAgent": true, - "provisionVMConfigAgent": true, - "disablePasswordAuthentication": true, - "ssh": { - "publicKeys": [ - { - "keyData": "[parameters('ssh-keydata')]" - } - ] - } - } - }, - "securityProfile": { - "uefiSettings": { - "secureBootEnabled": true - }, - "enableTPM": true + "securityProfile": { + "uefiSettings": { + "secureBootEnabled": true }, - "storageProfile": { - "imageReference": { - "id": "[resourceId('Microsoft.AzureStackHci/galleryImages', variables('galleryImageName'))]" - } - } + "enableTPM": true }, - "scope": "[concat('Microsoft.HybridCompute/machines/', variables('vmName'))]" - } - ] - } - + "storageProfile": { + "imageReference": { + "id": "[resourceId('Microsoft.AzureStackHci/galleryImages', variables('galleryImageName'))]" + } + } + }, + "scope": "[concat('Microsoft.HybridCompute/machines/', variables('vmName'))]" + } + ] +} + diff --git a/templates/2025_04/vm.parameters.jsonc b/templates/2025_04/vm.parameters.jsonc index 5907746..07d4b7a 100644 --- a/templates/2025_04/vm.parameters.jsonc +++ b/templates/2025_04/vm.parameters.jsonc @@ -2,47 +2,47 @@ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", "contentVersion": "1.0.0.0", "parameters": { - "deployPrefix": { // Provide a unique value for this deployment - "value": "TestVM" + "deployPrefix": { + "value": "VM0501" }, - "hciApiVersion": { // Do not change. + "hciApiVersion": { "value": "2024-08-01-preview" }, - "customLocationId": { // Custom location for Azure Local cluster. - "value": "/subscriptions/abcd-1234-5678-efgh/resourceGroups/blabla-HostedResources-blabla/providers/Microsoft.ExtendedLocation/customLocations/dev10-blabla-cstm-loc" + "customLocationId": { + "value": "/subscriptions/fca2e8ee-1179-48b8-9532-428ed0873a2e/resourceGroups/dev10-0c66652bd1b6-HostedResources-65D4B144/providers/Microsoft.ExtendedLocation/customLocations/dev10-0c66652bd1b6-cstm-loc" }, - "location": { // Azure region for Azure Local cluster. + "location": { "value": "eastus" }, - "acrImagePath": { // Update registry and image - "value": "acrreg.azurecr.io/ubuntu:22.04.00" + "acrImagePath": { + "value": "hpereg.azurecr.io/ubuntu:22.04.00" }, - "acrUsername": { // Update registry username - "value": "acrreg" + "acrUsername": { + "value": "hpereg" }, - "acrPassword": { // Provide ACR password + "acrPassword": { "value": "" }, - "adminPassword": { // Leave blank; Use SSH Key + "adminPassword": { "value": "" }, - "l3nId01": { // Update networking ARM ID - "value": "/subscriptions/abcd-1234-5678-efgh/resourceGroups/ALRS-P1-test/providers/Microsoft.NetworkCloud/l3Networks/oam" + "l3nId01": { + "value": "/subscriptions/fca2e8ee-1179-48b8-9532-428ed0873a2e/resourceGroups/bsd-ALRS-P1-test/providers/Microsoft.NetworkCloud/l3Networks/oam" }, - "l3nId02": { // Update networking ARM ID - "value": "/subscriptions/abcd-1234-5678-efgh/resourceGroups/ALRS-P1-test/providers/Microsoft.NetworkCloud/l3Networks/appdata" + "l3nId02": { + "value": "/subscriptions/fca2e8ee-1179-48b8-9532-428ed0873a2e/resourceGroups/bsd-ALRS-P1-test/providers/Microsoft.NetworkCloud/l3Networks/appdata" }, - "csnId": { // Update CSN ARM ID - "value": "/subscriptions/abcd-1234-5678-efgh/resourceGroups/ALRS-P1-test/providers/Microsoft.NetworkCloud/cloudServicesNetworks/bsd-csn-alrs" + "csnId": { + "value": "/subscriptions/fca2e8ee-1179-48b8-9532-428ed0873a2e/resourceGroups/bsd-ALRS-P1-test/providers/Microsoft.NetworkCloud/cloudServicesNetworks/bsd-csn-alrs" }, - "vmMemoryMB": { // Edit to desired value + "vmMemoryMB": { "value": 8192 }, - "vmProcessors": { // Edit to desired value + "vmProcessors": { "value": 4 }, - "ssh-keydata": { // Provide SSH key - "value": "sshkeydata" + "ssh-keydata": { + "value": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC+l/W0zF1j+bYVjgJ4m3Vy8gkB6TumkoaYX4BjrexbYrUK/awlO8pXTNU3g5laj5JkgG4H/KvoJtesBt5VgRJzEMUkXP2WsNxzLazYoAlK0sqefv30hQ9SitMk3HpTXStxsiHLfGCC3kK0Nj9dW6WaKRmcPI95o4g+pN4JSZZ+RwQt0GQAVk0FvAah2tBQUuZdtxOYFoROgVv13QXOuTcEYbAuQqnBlkv8C60w17opPGR57GA9OtNVLq3dbOxqdb9GTDKZdC5nWGf91B2I+ON/8g9x2tHXJROGPGUalBPBeCu77q1XPlYGzroQqHIK1KuOuefqdv8hubJf0qtM6r+chRfOi3HJAadFnsJf3UjSOOLAJekLFKcvQTim2D2cneei5d/WapzxfXnB2uRAs4Fnw1DmPs9rwit4pU/M5K6f8uWi7BMF5ePN0X499otAvf6KPjci+ltjUutPMpgLP2MX59MAexH30HTkiOtjZlmPDerkMOhDFhcKx2YmIJ4k204hktSDnEYvdDqLrG9DMIE6V/r687ruNBSjMyqxgCKgnqrhRFdjCWBdZiqK3ZWDsCaIAYqZjp/CmHCcSCrknkbt3M2/wr+uTOC9ZKYCjJ4Q86blanraKru7kC8pX0m1p0AN2hTUXHKKFxrCypZyN+80KJ7rNxw+chrfi75++pGwIw== arcVM.pem" } } } \ No newline at end of file