Erstellen und Bereitstellen eines Netzwerk-Fabrics mithilfe der Azure CLI
In diesem Artikel wird das Erstellen eines Netzwerk-Fabric über die Azure-Befehlszeilenschnittstelle (AzCLI) beschrieben. Außerdem wird in diesem Dokument gezeigt, wie Sie den Status überprüfen, Updates durchführen oder ein Netzwerk-Fabric löschen.
Voraussetzungen
- Ein Azure-Konto mit einem aktiven Abonnement.
- Installieren Sie die aktuelle Version der CLI-Befehle. Informationen zur Installation der CLI-Befehle finden Sie unter Vorbereiten der Installation von Azure CLI-Erweiterungen.
- Ein Netzwerk-Fabric Controller verwaltet mehrere Netzwerk-Fabrics in der gleichen Azure-Region.
- Physische Operator-Nexus-Instanz mit Verkabelung gemäß Stückliste.
- ExpressRoute-Konnektivität zwischen NFC- und Operator-Nexus-Instanzen.
- Vorkonfigurierter Terminalserver mit installiertem und konfiguriertem Benutzernamen und Kennwort.
- Mit erforderlichen VLANs, Routenzielen und IP-Adressen vorkonfigurierte PE-Geräte.
- Informationen zu unterstützten SKUs werden hier inventarisiert.
Schritte zum Bereitstellen eines Fabric sowie zum Bereitstellen von Racks
- Erstellen Sie ein Netzwerk-Fabric, indem Sie Racks, die Serveranzahl, die SKU und die Netzwerkkonfiguration angeben.
- Erstellen Sie eine Netzwerk-zu-Netzwerk-Verbindung durch Angeben von Parametern für die Ebenen 2 und 3.
- Aktualisieren Sie die Seriennummer in der networkDevice-Ressource mit der tatsächlichen Seriennummer auf dem Gerät.
- Konfigurieren Sie den Terminalserver mit den Seriennummern aller Geräte.
- Stellen Sie das Netzwerk-Fabric bereit.
Fabric-Konfiguration
In der folgenden Tabelle sind Parameter zum Erstellen von Netzwerk-Fabrics angegeben:
$prefix: /subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers
Parameter | BESCHREIBUNG | Beispiel | Erforderlich | type |
---|---|---|---|---|
resource-group | Name der Ressourcengruppe | <NFResourceGroup> | Richtig | |
location | Azure-Region des Operator-Nexus | "eastus" | True | |
resource-name | Name der Fabric-Ressource | <NFName> | Richtig | |
nf-sku | Die Fabric-SKU-ID ist die SKU der bestellten Stücklistenversion. Weitere Informationen finden Sie unter Network Fabric-SKUs. | M4-A400-A100-C16-ab | True | String |
nfc-id | ARM-Ressourcen-ID des Netzwerk-Fabric Controllers | $prefix/NFCName | True | |
rackcount | Anzahl von Compute-Racks pro Fabric. Mögliche Werte: 2 bis 8 | 8 | True | |
serverCountPerRack | Anzahl von Computeservern pro Rack. Mögliche Werte: 4, 8, 12 oder 16 | 16 | True | |
ipv4Prefix | IPv4-Präfix des Verwaltungsnetzwerks. Dieses Präfix muss für alle Netzwerk-Fabrics in einem Netzwerk-Fabric Controller eindeutig sein. Die Präfixlänge muss mindestens 19 sein (/20 ist nicht zulässig, /18 und niedriger sind zulässig). | 10.246.0.0/19 | True | |
ipv6Prefix | IPv6-Präfix des Verwaltungsnetzwerks. Dieses Präfix muss für alle Netzwerk-Fabrics in einem Netzwerk-Fabric Controller eindeutig sein. | 10:5:0:0::/59 | True | |
management-network-config | Details zum Verwaltungsnetzwerk. | True | ||
infrastructureVpnConfiguration | Details zur Verwaltungs-VPN-Verbindung zwischen Netzwerk-Fabric und Infrastrukturdiensten im Netzwerk-Fabric Controller | True | ||
optionBProperties | Details zur MPLS-Option 10B werden für die Konnektivität zwischen Netzwerk-Fabric und Netzwerk-Fabric Controller verwendet. | True | ||
importRouteTargets | Routenziele werden jetzt für eine bestimmte IP-Subnetzklasse definiert (z. B. IPv4 und IPv6). Werte von Importroutenzielen, die für CEs zum Austauschen von Routen zwischen CE und PE über die MPLS-Option 10B konfiguriert werden sollen | (z. B. 65048:10039) | True (wenn „OptionB“ aktiviert ist) | |
exportRouteTargets | Routenziele werden jetzt für eine bestimmte IP-Subnetzklasse definiert (z. B. IPv4 und IPv6). Werte von Exportroutenzielen, die für CEs zum Austauschen von Routen zwischen CE und PE über die MPLS-Option 10B konfiguriert werden sollen | (z. B. 65048:10039) | True (wenn „OptionB“ aktiviert ist) | |
workloadVpnConfiguration | Details zur Workload-VPN-Verbindung zwischen Netzwerk-Fabric und Workloaddiensten im Netzwerk-Fabric Controller | |||
optionBProperties | Details zur MPLS-Option 10B werden für die Konnektivität zwischen Netzwerk-Fabric und Netzwerk-Fabric Controller verwendet. | |||
importRouteTargets | Routenziele werden jetzt für eine bestimmte IP-Subnetzklasse definiert (z. B. IPv4 und IPv6). Werte von Importroutenzielen, die für CEs zum Austauschen von Routen zwischen CE und PE über die MPLS-Option 10B konfiguriert werden sollen | (z. B. 65048:10050) | True (wenn „OptionB“ aktiviert ist) | |
exportRouteTargets | Routenziele werden jetzt für eine bestimmte IP-Subnetzklasse definiert (z. B. IPv4 und IPv6). Werte von Exportroutenzielen, die für CEs zum Austauschen von Routen zwischen CE und PE über die MPLS-Option 10B konfiguriert werden sollen | (z. B. 65048:10050) | True (wenn „OptionB“ aktiviert ist) | |
ts-config | Details zur Terminalserverkonfiguration | True | ||
primaryIpv4Prefix | Der Terminalserverschnittstelle „Net1“ muss die erste verwendbare IP-Adresse aus dem Präfix zugewiesen werden, und der entsprechenden PE-Schnittstelle muss die zweite verwendbare Adresse zugewiesen werden. | 20.0.10.0/30: Der TS-Schnittstelle „Net1“ muss 20.0.10.1 zugewiesen werden, und der PE-Schnittstelle muss 20.0.10.2 zugewiesen werden. | True | |
secondaryIpv4Prefix | IPv4-Präfix für die Konnektivität zwischen TS und PE2. Der Terminalserverschnittstelle „Net2“ muss die erste verwendbare IP-Adresse aus dem Präfix zugewiesen werden, und der entsprechenden PE-Schnittstelle muss die zweite verwendbare Adresse zugewiesen werden. | 20.0.0.4/30: Der TS-Schnittstelle „Net2“ muss 20.0.10.5 zugewiesen werden, und der PE-Schnittstelle muss 20.0.10.6 zugewiesen werden. | True | |
username | Benutzername, der auf dem Terminalserver konfiguriert ist, den die Dienste für die TS-Konfiguration verwenden | username | True | |
Kennwort | Kennwort, das auf dem Terminalserver konfiguriert ist, den die Dienste für die TS-Konfiguration verwenden | Kennwort | True | |
serialNumber | Seriennummer des Terminalservers | SN des Terminalservers | ||
subscription_id | Kundenabonnement-ID | xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
Erstellen eines Netzwerk-Fabric
Vor der Erstellung eines Netzwerk-Fabric muss eine Ressourcengruppe erstellt werden. Es empfiehlt sich, für jedes Netzwerk-Fabric eine separate Ressourcengruppe zu erstellen. Ressourcengruppen können mithilfe des folgenden Befehls erstellt werden:
az group create -n <NFResourceGroup> -l "East US"
Führen Sie den folgenden Befehl aus, um das Netzwerk-Fabric zu erstellen:
az networkfabric fabric create \
--resource-group "<NFResourceGroup>"
--location "<Location>" \
--resource-name "<NFName>" \
--nf-sku "<NFSKU>" \
--nfc-id "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/<NFCName>"
--fabric-asn 65048
--ipv4-prefix 10.2.0.0/19
--ipv6-prefix fda0:d59c:da02::/59
--rack-count 4
--server-count-per-rack 8
--ts-config '{"primaryIpv4Prefix":"20.0.1.0/30", "secondaryIpv4Prefix":"20.0.0.0/30", "username":"****", "password": "****", "serialNumber":"TerminalServerSerialNumber"}'
--managed-network-config '{"infrastructureVpnConfiguration":{"peeringOption":"OptionB","optionBProperties":{"routeTargets": {"importIpv4RouteTargets":["65048:10039"], "importIpv6RouteTargets":["65048:10039"], "exportIpv4RouteTargets":["65048:10039"], "exportIpv6RouteTargets":["65048:10039"]}}},"workloadVpnConfiguration":{"peeringOption":"OptionB","optionBProperties":{"routeTargets": {"importIpv4RouteTargets":["65048:10050"], "importIpv6RouteTargets":["65048:10039"], "exportIpv4RouteTargets":["65048:10039"], "exportIpv6RouteTargets":["65048:10039"]}}}}
Hinweis
- Bei einem Setup mit vier Racks muss als Rackanzahl (rack-count) der Wert „4“ angegeben werden.
- Bei einem Setup mit acht Racks muss als Rackanzahl (rack-count) der Wert „8“ angegeben werden.
Erwartete Ausgabe:
{
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkfabrics/<NFName>",
"name": "<NFName>",
"type": "microsoft.managednetworkfabric/networkfabrics",
"location": "<Location>",
"systemData": {
"createdBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"createdByType": "Application",
"createdAt": "2023-XX-XXT18:29:58.3785568Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:29:58.3785568Z"
},
"properties": {
"fabricVersion": "1.0.0",
"networkFabricSku": "<NFSKU>",
"networkFabricControllerId": "/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/microsoft.managednetworkfabric/networkfabriccontrollers/<NFCName>",
"terminalServerConfiguration": {
"username": "XXXX",
"serialNumber": "TerminalServerSerialNumber",
"primaryIpv4Prefix": "20.0.1.0/30",
"secondaryIpv4Prefix": "20.0.0.0/30"
},
"managementNetworkConfiguration": {
"infrastructureVpnConfiguration": {
"administrativeState": "Enabled",
"peeringOption": "OptionB",
"optionBProperties": {
"routeTargets": {
"importIpv4RouteTargets": [
"65048:10039"
],
"importIpv6RouteTargets": [
"65048:10039"
],
"exportIpv4RouteTargets": [
"65048:10039"
],
"exportIpv6RouteTargets": [
"65048:10039"
]
}
}
},
"workloadVpnConfiguration": {
"administrativeState": "Enabled",
"peeringOption": "OptionB",
"optionBProperties": {
"routeTargets": {
"importIpv4RouteTargets": [
"65048:10039"
],
"importIpv6RouteTargets": [
"65048:10039"
],
"exportIpv4RouteTargets": [
"65048:10039"
],
"exportIpv6RouteTargets": [
"65048:10039"
]
}
}
}
},
"provisioningState": "Updating",
"rackCount": 4,
"serverCountPerRack": 8,
"ipv4Prefix": "10.30.0.0/19",
"ipv6Prefix": "fda0:d59c:df02::/59",
"fabricASN": 65048
}
}
Anzeigen des Netzwerk-Fabric
az networkfarbic fabric show --resource-group "<NFResourceGroup>" --resource-name "<NFName>"
Erwartete Ausgabe:
{
"configurationState": "Provisioned",
"fabricASN": 65048,
"fabricVersion": "1.0.0",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkfabrics/<NFName>",
"ipv4Prefix": "10.2.0.0/19",
"ipv6Prefix": "fda0:d59c:df02::/59",
"l2IsolationDomains": [],
"l3IsolationDomains": [],
"location": "<Location>",
"managementNetworkConfiguration": {
"infrastructureVpnConfiguration": {
"administrativeState": "Enabled",
"optionBProperties": {
"routeTargets": {
"exportIpv4RouteTargets": [
"65048:10039"
],
"exportIpv6RouteTargets": [
"65048:10039"
],
"importIpv4RouteTargets": [
"65048:10039"
],
"importIpv6RouteTargets": [
"65048:10039"
]
}
},
"peeringOption": "OptionB"
},
"workloadVpnConfiguration": {
"administrativeState": "Enabled",
"optionBProperties": {
"routeTargets": {
"exportIpv4RouteTargets": [
"65048:10039"
],
"exportIpv6RouteTargets": [
"65048:10039"
],
"importIpv4RouteTargets": [
"65048:10039"
],
"importIpv6RouteTargets": [
"65048:10039"
]
}
},
"peeringOption": "OptionB"
}
},
"name": "<NFName>",
"networkFabricControllerId": "/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/microsoft.managednetworkfabric/networkfabriccontrollers/<NFCName>",
"networkFabricSku": "<NFSKU>",
"provisioningState": "Succeeded",
"rackCount": 4,
"racks": [
"/subscriptions/<subscription_id>/resourcegroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkracks/<NFName-aggrack>",
"/subscriptions/<subscription_id>/resourcegroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkracks/<NFName-comprack1>",
"/subscriptions/<subscription_id>/resourcegroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkracks/<NFName-comprack2>",
"/subscriptions/<subscription_id>/resourcegroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkracks/<NFName-comprack3>",
"/subscriptions/<subscription_id>/resourcegroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkracks/<NFName-comprack4>"
],
"resourceGroup": "<NFResourceGroup>",
"serverCountPerRack": 8,
"systemData": {
"createdAt": "2023-XX-XXT18:29:58.3785568Z",
"createdBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT04:32:02.7129198Z",
"lastModifiedBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"lastModifiedByType": "Application"
},
"terminalServerConfiguration": {
"primaryIpv4Prefix": "20.0.1.0/30",
"secondaryIpv4Prefix": "20.0.0.0/30",
"serialNumber": "TerminalServerSerialNumber",
"username": "XXXX"
},
"type": "microsoft.managednetworkfabric/networkfabrics"
}
Auflisten aller Netzwerk-Fabrics in einer Ressourcengruppe
az networkfabric fabric list --resource-group "<NFResourceGroup>"
Erwartete Ausgabe:
{
"configurationState": "Provisioned",
"fabricASN": 65048,
"fabricVersion": "1.0.0",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkfabrics/<NFName>",
"ipv4Prefix": "10.2.0.0/19",
"ipv6Prefix": "fda0:d59c:df02::/59",
"l2IsolationDomains": [],
"l3IsolationDomains": [],
"location": "<Location>",
"managementNetworkConfiguration": {
"infrastructureVpnConfiguration": {
"administrativeState": "Enabled",
"optionBProperties": {
"routeTargets": {
"exportIpv4RouteTargets": [
"65048:10039"
],
"exportIpv6RouteTargets": [
"65048:10039"
],
"importIpv4RouteTargets": [
"65048:10039"
],
"importIpv6RouteTargets": [
"65048:10039"
]
}
},
"peeringOption": "OptionB"
},
"workloadVpnConfiguration": {
"administrativeState": "Enabled",
"optionBProperties": {
"routeTargets": {
"exportIpv4RouteTargets": [
"65048:10039"
],
"exportIpv6RouteTargets": [
"65048:10039"
],
"importIpv4RouteTargets": [
"65048:10039"
],
"importIpv6RouteTargets": [
"65048:10039"
]
}
},
"peeringOption": "OptionB"
}
},
"name": "<NFName>",
"networkFabricControllerId": "/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/microsoft.managednetworkfabric/networkfabriccontrollers/<NFCName>",
"networkFabricSku": "<NFSKU>",
"provisioningState": "Succeeded",
"rackCount": 4,
"racks": [
"/subscriptions/<subscription_id>/resourcegroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkracks/<NFName-aggrack>",
"/subscriptions/<subscription_id>/resourcegroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkracks/<NFName-comprack1>",
"/subscriptions/<subscription_id>/resourcegroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkracks/<NFName-comprack2>",
"/subscriptions/<subscription_id>/resourcegroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkracks/<NFName-comprack3>",
"/subscriptions/<subscription_id>/resourcegroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkracks/<NFName-comprack4>"
],
"resourceGroup": "<NFResourceGroup>",
"serverCountPerRack": 8,
"systemData": {
"createdAt": "2023-XX-XXT18:29:58.3785568Z",
"createdBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT04:32:02.7129198Z",
"lastModifiedBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"lastModifiedByType": "Application"
},
"terminalServerConfiguration": {
"primaryIpv4Prefix": "20.0.1.0/30",
"secondaryIpv4Prefix": "20.0.0.0/30",
"serialNumber": "TerminalServerSerialNumber",
"username": "XXXX"
},
"type": "microsoft.managednetworkfabric/networkfabrics"
}
Konfigurieren einer Netzwerk-zu-Netzwerk-Verbindung (Network-to-Network Interconnect, NNI)
In der folgenden Tabelle sind Parameter zum Erstellen einer Netzwerk-zu-Netzwerk-Verbindung angegeben:
Parameter | BESCHREIBUNG | Beispiel | Erforderlich | type |
---|---|---|---|---|
isManagementType | Konfiguration, die festlegt, dass die Netzwerk-zu-Netzwerk-Verbindung für die Verwaltung des Fabric verwendet werden soll. Der Standardwert ist true. Mögliche Werte: „True“ und „False“ | True | True | |
useOptionB | Konfiguration zum Aktivieren der Option B. Mögliche Werte: „True“ und „False“ | True | True | |
layer2Configuration | Konfiguration der Ebene 2 | |||
Clusterverwaltung | Definieren Sie mehrere CE-PE-Schnittstellen. Der Höchstwert hängt von der Fabric-SKU ab. | /subscriptions/subscription_id/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/NFName-aggrack-CEXX/networkInterfaces/EthernetX-X" | ||
mtu | Maximale Übertragungseinheit zwischen CE und PE | 1500 | ||
layer3Configuration | Konfiguration der Ebene 3 zwischen CEs und PEs | True | ||
primaryIpv4Prefix | IPv4-Präfix für die Konnektivität zwischen CE1 und PE1. Der CE1-Portkanalschnittstelle wird die erste verwendbare IP-Adresse aus dem Präfix zugewiesen, und der entsprechenden PE1-Schnittstelle muss die zweite verwendbare Adresse zugewiesen werden. | 10.246.0.124/31: Der CE1-Portkanalschnittstelle wird 10.246.0.125 zugewiesen, und der PE1-Portkanalschnittstelle muss 10.246.0.126 zugewiesen werden. | String | |
secondaryIpv4Prefix | IPv4-Präfix für die Konnektivität zwischen CE2 und PE2. Der CE2-Portkanalschnittstelle wird die erste verwendbare IP-Adresse aus dem Präfix zugewiesen, und der entsprechenden PE2-Schnittstelle muss die zweite verwendbare Adresse zugewiesen werden. | 10.246.0.128/31: Der CE2-Portkanalschnittstelle muss 10.246.0.129 zugewiesen werden, und der PE2-Portkanalschnittstelle muss 10.246.0.130 zugewiesen werden. | String | |
primaryIpv6Prefix | IPv6-Präfix für die Konnektivität zwischen CE1 und PE1. Der CE1-Portkanalschnittstelle wird die erste verwendbare IP-Adresse aus dem Präfix zugewiesen, und der entsprechenden PE1-Schnittstelle muss die zweite verwendbare Adresse zugewiesen werden. | „3FFE:FFFF:0:CD30::a1“ wird CE1 zugewiesen, und „3FFE:FFFF:0:CD30::a2“ wird PE1 zugewiesen. Standardwert: 3FFE:FFFF:0:CD30::a0/127 | String | |
secondaryIpv6Prefix | IPv6-Präfix für die Konnektivität zwischen CE2 und PE2. Der CE2-Portkanalschnittstelle wird die erste verwendbare IP-Adresse aus dem Präfix zugewiesen, und der entsprechenden PE2-Schnittstelle muss die zweite verwendbare Adresse zugewiesen werden. | „3FFE:FFFF:0:CD30::a5“ wird CE2 zugewiesen, und „3FFE:FFFF:0:CD30::a6“ wird PE2 zugewiesen. Standardwert: 3FFE:FFFF:0:CD30::a4/127 | String | |
fabricAsn | ASN-Nummer, die auf CE für BGP-Peering mit PE zugewiesen ist | 65048 | ||
peerAsn | ASN-Nummer, die auf PE für BGP-Peering mit CE zugewiesen ist. Für iBGP zwischen PE/CE muss der Wert mit „fabricAsn“ identisch sein. Für eBGP muss sich der Wert von „fabricAsn“ unterscheiden. | 65048 | True | |
fabricAsn | ASN-Nummer, die auf CE für BGP-Peering mit PE zugewiesen ist | 65048 | ||
vlan-Id | VLAN für „NNI.Range“ liegt zwischen 501 und 4.095. | 501 | ||
importRoutePolicy | Details zur Importroutingrichtlinie. | |||
exportRoutePolicy | Details zur Exportroutingrichtlinie. | |||
nni-type | Der Standardwert ist „CE“. „CE“ und „NPB“ sind die Optionen. | CE, PE |
Erstellen einer Netzwerk-zu-Netzwerk-Verbindung (Network to Network Interconnect, NNI)
Vor der Erstellung einer Netzwerk-zu-Netzwerk-Verbindung müssen eine Ressourcengruppe und ein Netzwerk-Fabric erstellt worden sein.
Führen Sie den folgenden Befehl aus, um die Netzwerk-zu-Netzwerk-Verbindung zu erstellen (Standardtyp ist CE):
az networkfabric nni create \
--resource-group "<NFResourceGroup>" \
--location "<Location>" \
--resource-name "<NFNNIName>" \
--fabric "<NFFabric>" \
--is-management-type "True" \
--use-option-b "False" \
--layer2-configuration '{"interfaces": ["/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet1-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet1-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet2-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet2-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet3-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet3-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet4-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet4-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet5-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet5-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet6-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet6-1"], "mtu": <mtu>}' \
--layer3-configuration '{"peerASN": 65048, "vlanId": 501, "primaryIpv4Prefix": "10.2.0.124/30", "secondaryIpv4Prefix": "10.2.0.128/30", "primaryIpv6Prefix": "10:2:0:124::400/127", "secondaryIpv6Prefix": "10:2:0:124::402/127"}'
Erwartete Ausgabe:
{
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkfabrics/<NFName>/networkToNetworkInterconnects/<<NFNNIName>>",
"name": "<NFNNIName>",
"type": "microsoft.managednetworkfabric/networkfabrics/networktonetworkinterconnects",
"systemData": {
"createdBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"createdByType": "Application",
"createdAt": "2023-XX-XXT18:30:14.613498Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:14.613498Z"
},
"properties": {
"administrativeState": "Enabled",
"nniType": "CE",
"isManagementType": "True",
"useOptionB": "False",
"layer2Configuration": {
"interfaces": [
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet1-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet1-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet2-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet2-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet3-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet3-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet4-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet4-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet5-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet5-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet6-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet6-1"
],
"mtu": <mtu>
},
"optionBLayer3Configuration": {
"peerASN": 65050,
"vlanId": 501,
"fabricASN": 0,
"primaryIpv4Prefix": "10.2.0.124/30",
"primaryIpv6Prefix": "10:2:0:124::400/127"
"secondaryIpv4Prefix": "10.2.0.128/30"
"secondaryIpv6Prefix": "10:2:0:124::402/127"
},
"provisioningState": "Accepted",
"configurationState": "Succeeded"
}
}
Anzeigen von NNIs von Netzwerk-Fabrics
az networkfabric nni show -g "<NFResourceGroup>" --resource-name "<NFNNIName>" --fabric "<NFFabric>"
Erwartete Ausgabe:
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkfabrics/NFName/networkToNetworkInterconnects/<NFNNIName>",
"isManagementType": "True",
"layer2Configuration": {
"interfaces": [
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet1-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet1-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet2-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet2-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet3-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet3-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet4-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet4-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet5-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet5-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet6-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet6-1"
],
"mtu": <mtu>
},
"name": "nffab2lab180723-nni",
"nniType": "CE",
"optionBLayer3Configuration": {
"fabricASN": 0,
"peerASN": 65050,
"primaryIpv4Prefix": "10.2.0.124/30",
"primaryIpv6Prefix": "10:2:0:124::400/127"
"secondaryIpv4Prefix": "10.2.0.128/30"
"secondaryIpv6Prefix": "10:2:0:124::402/127"
"vlanId": 501
},
"provisioningState": "Succeeded",
"resourceGroup": "NFResourceGroup",
"systemData": {
"createdAt": "2023-XX-XXT18:30:14.613498Z",
"createdBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:14.613498Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkfabrics/networktonetworkinterconnects",
"useOptionB": "False"
}
Auflisten oder Abrufen der NNI des Netzwerk-Fabric
az networkfabric nni list -g <NFResourceGroup> --fabric <NFFabric>
Erwartete Ausgabe:
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkfabrics/<NFName>/networkToNetworkInterconnects/<NFNNIName>",
"isManagementType": "True",
"layer2Configuration": {
"interfaces": [
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet1-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet1-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet2-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet2-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet3-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet3-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet4-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet4-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet5-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet5-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE1>/networkInterfaces/Ethernet6-1",
"/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/<NFName-aggrack-CE2>/networkInterfaces/Ethernet6-1"
],
"mtu": <mtu>
},
"name": "nffab2lab180723-nni",
"nniType": "CE",
"optionBLayer3Configuration": {
"fabricASN": 0,
"peerASN": 65050,
"primaryIpv4Prefix": "10.2.0.124/30",
"primaryIpv6Prefix": "10:2:0:124::400/127"
"secondaryIpv4Prefix": "10.2.0.128/30"
"secondaryIpv6Prefix": "10:2:0:124::402/127"
"vlanId": 501
},
"provisioningState": "Succeeded",
"resourceGroup": "<NFResourceGroup>",
"systemData": {
"createdAt": "2023-XX-XXT18:30:14.613498Z",
"createdBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:14.613498Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkfabrics/networktonetworkinterconnects",
"useOptionB": "False"
}
Nächste Schritte
- Aktualisieren Sie die Seriennummer in der networkDevice-Ressource mit der tatsächlichen Seriennummer auf dem Gerät. Das Gerät sendet die Seriennummer im Rahmen der DHCP-Anforderung.
- Konfigurieren Sie den Terminalserver mit den Seriennummern aller Geräte (hostet auch den DHCP-Server).
- Stellen Sie die Netzwerkgeräte per Zero-Touch-Bereitstellungsmodus bereit. Basierend auf der Seriennummer in der DHCP-Anforderung antwortet der DHCP-Server mit der Startkonfigurationsdatei für das entsprechende Gerät.
Aktualisieren von Netzwerk-Fabric-Geräten
Führen Sie den folgenden Befehl aus, um Netzwerk-Fabric-Geräte zu aktualisieren:
az networkfabric device update \
--resource-group "<NFResourceGroup>" \
--resource-name "<Network-Device-Name>" \
--host-name "<example-hostname>" \
--serial-number "<xxxx>"
Erwartete Ausgabe:
{
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"name": "Network-Device-Name",
"type": "microsoft.managednetworkfabric/networkdevices",
"location": "<Location>",
"systemData": {
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"createdAt": "2023-XX-XXT18:30:03.11544Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:29.1296291Z"
},
"properties": {
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/Network-Device-Name",
"networkDeviceSku": "DefaultSku",
"networkDeviceRole": "XX",
"hostName": "example-hostname",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"version": "",
"configurationState": "Succeeded",
"administrativeState": "Enabled",
"provisioningState": "Succeeded"
}
Hinweis
Der obige Code dient nur als Beispiel. Aktualisieren Sie alle Geräte, die Teil von AggrRack
und computeRacks
sind.
AggrRack
umfasst beispielsweise Folgendes:
CE01
CE02
TOR17
TOR18
MgmtSwitch01
MgmtSwitch02
(usw. für weitere Switches)
Auflisten oder Abrufen von Netzwerk-Fabric-Geräten
Führen Sie den folgenden Befehl aus, um Netzwerk-Fabric-Geräte in einer Ressourcengruppe aufzulisten:
az networkfabric device list --resource-group "<NFResourceGroup>"
Erwartete Ausgabe:
[
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "CE",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/Network-Device-Name-aggrack",
"provisioningState": "Succeeded",
"resourceGroup": "<NFResourceGroup>",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:00.5266816Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:23.2231751Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
},
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "AR-MGMT2",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "TS",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/Network-Device-Name-aggrack",
"provisioningState": "Succeeded",
"resourceGroup": "<NFResourceGroup>",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:00.727495Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:33.7864881Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
},
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "NPB",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/Network-Device-Name-aggrack",
"provisioningState": "Succeeded",
"resourceGroup": "<NFResourceGroup>",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:00.7582997Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:34.9110792Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
},
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "CE",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/Network-Device-Name-aggrack",
"provisioningState": "Succeeded",
"resourceGroup": "<NFResourceGroup>",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:00.7210136Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:24.426339Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
},
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "TS",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/Network-Device-Name-aggrack",
"provisioningState": "Succeeded",
"resourceGroup": "NFResourceGroup",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:00.7722959Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:25.7076346Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
},
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "ToR",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/nffab2lab180723-comprack1",
"provisioningState": "Succeeded",
"resourceGroup": "NFResourceGroup",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:03.0049164Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:28.0046231Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
},
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "TS",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/nffab2lab180723-comprack1",
"provisioningState": "Succeeded",
"resourceGroup": "NFResourceGroup",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:03.11544Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:29.1296291Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
},
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "ToR",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/nffab2lab180723-comprack1",
"provisioningState": "Succeeded",
"resourceGroup": "NFResourceGroup",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:03.1893834Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:26.7545474Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
},
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "ToR",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/nffab2lab180723-comprack2",
"provisioningState": "Succeeded",
"resourceGroup": "NFResourceGroup",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:05.4237868Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:31.5047457Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
},
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "TS",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/nffab2lab180723-comprack2",
"provisioningState": "Succeeded",
"resourceGroup": "NFResourceGroup",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:05.4580643Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:32.6766268Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
},
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "ToR",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/nffab2lab180723-comprack2",
"provisioningState": "Succeeded",
"resourceGroup": "<NFResourceGroup>",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:05.4906233Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:30.4265486Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
}
]
Führen Sie den folgenden Befehl aus, um Details eines Netzwerk-Fabric-Geräts abzurufen oder anzuzeigen:
az networkfabric device show --resource-group "<NFResourceGroup>" --resource-name "<Network-Device-Name>"
Erwartete Ausgabe:
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "ToR",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/nffab2lab180723-comprack2",
"provisioningState": "Succeeded",
"resourceGroup": "<NFResourceGroup>",
"serialNumber": "AXXXX;DCS-XXXXX-24;XX.XX;JXXXXXXX",
"systemData": {
"createdAt": "2023-XX-XXT18:30:05.4906233Z",
"createdBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT18:30:30.4265486Z",
"lastModifiedBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"lastModifiedByType": "Application"
},
"type": "microsoft.managednetworkfabric/networkdevices",
"version": ""
}
Bereitstellen eines Netzwerk-Fabric
Nachdem Sie die Seriennummer des Geräts aktualisiert haben, können Sie das Fabric durch Ausführen folgender Befehle bereitstellen und anzeigen:
az networkfabric fabric provision --resource-group "<NFResourceGroup>" --resource-name "<NFName>"
az networkfabric fabric show --resource-group "<NFResourceGroup>" --resource-name "<NFName>"
Erwartete Ausgabe:
{
"configurationState": "Provisioned",
"fabricASN": 65048,
"fabricVersion": "1.0.0",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkfabrics/<NFName>",
"ipv4Prefix": "10.2.0.0/19",
"ipv6Prefix": "fda0:d59c:df02::/59",
"l2IsolationDomains": [],
"l3IsolationDomains": [],
"location": "<Location>",
"managementNetworkConfiguration": {
"infrastructureVpnConfiguration": {
"administrativeState": "Enabled",
"routeTargets": {
"exportIpv4RouteTargets": [
"65048:10039"
],
"exportIpv6RouteTargets": [
"65048:10039"
],
"importIpv4RouteTargets": [
"65048:10039"
],
"importIpv6RouteTargets": [
"65048:10039"
]
}
},
"peeringOption": "OptionB"
},
"workloadVpnConfiguration": {
"administrativeState": "Enabled",
"optionBProperties": {
"routeTargets": {
"exportIpv4RouteTargets": [
"65048:10050"
],
"exportIpv6RouteTargets": [
"65048:10050"
],
"importIpv4RouteTargets": [
"65048:10050"
],
"importIpv6RouteTargets": [
"65048:10050"
]
}
},
"peeringOption": "OptionB"
}
},
"name": "NFName",
"networkFabricControllerId": "/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/microsoft.managednetworkfabric/networkfabriccontrollers/<NFCName>",
"networkFabricSku": "<NFSKU>",
"provisioningState": "Succeeded",
"rackCount": 4,
"racks": [
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-aggrack>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack1>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack2>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack3>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack4>"
],
"resourceGroup": "<NFResourceGroup>",
"serverCountPerRack": 8,
"systemData": {
"createdAt": "2023-XX-XXT18:29:58.3785568Z",
"createdBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT04:32:02.7129198Z",
"lastModifiedBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"lastModifiedByType": "Application"
},
"terminalServerConfiguration": {
"primaryIpv4Prefix": "20.0.1.0/30",
"secondaryIpv4Prefix": "20.0.0.0/30",
"serialNumber": "XXXXXXXXXXXXXX",
"username": "XXXX"
},
"type": "microsoft.managednetworkfabric/networkfabrics"
}
Aufheben der Bereitstellung eines Fabric
Um eine Fabric zu aufheben, stellen Sie sicher, dass sich das Fabric in einem bereitgestellten Betriebszustand befindet, beenden Sie den DHCP-Dienst auf dem Terminalserver, und führen Sie dann den folgenden Befehl aus:
az networkfabric fabric deprovision --resource-group "<NFResourceGroup>" --resource-name "<NFName>"
Erwartete Ausgabe:
{
"configurationState": "Deprovisioned",
"fabricASN": 65048,
"fabricVersion": "1.0.0",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkfabrics/<NFName>",
"ipv4Prefix": "10.2.0.0/19",
"ipv6Prefix": "fda0:d59c:df02::/59",
"l2IsolationDomains": [],
"l3IsolationDomains": [],
"location": "<Location>",
"managementNetworkConfiguration": {
"infrastructureVpnConfiguration": {
"administrativeState": "Enabled",
"optionBProperties": {
"routeTargets": {
"exportIpv4RouteTargets": [
"65048:10039"
],
"exportIpv6RouteTargets": [
"65048:10039"
],
"importIpv4RouteTargets": [
"65048:10039"
],
"importIpv6RouteTargets": [
"65048:10039"
]
}
},
"peeringOption": "OptionB"
},
"workloadVpnConfiguration": {
"administrativeState": "Enabled",
"optionBProperties": {
"routeTargets": {
"exportIpv4RouteTargets": [
"65048:10050"
],
"exportIpv6RouteTargets": [
"65048:10050"
],
"importIpv4RouteTargets": [
"65048:10050"
],
"importIpv6RouteTargets": [
"65048:10050"
]
}
},
"peeringOption": "OptionB"
}
},
"name": "NFName",
"networkFabricControllerId": "/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/microsoft.managednetworkfabric/networkfabriccontrollers/<NFCName>",
"networkFabricSku": "<NFSKU>",
"provisioningState": "Succeeded",
"rackCount": 4,
"racks": [
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-aggrack>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack1>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack2>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack3>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack4>"
],
"resourceGroup": "<NFResourceGroup>",
"serverCountPerRack": 8,
"systemData": {
"createdAt": "2023-XX-XXT18:29:58.3785568Z",
"createdBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT04:32:02.7129198Z",
"lastModifiedBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"lastModifiedByType": "Application"
},
"terminalServerConfiguration": {
"primaryIpv4Prefix": "20.0.1.0/30",
"secondaryIpv4Prefix": "20.0.0.0/30",
"serialNumber": "XXXXXXXXXXXXXX",
"username": "XXXX"
},
"type": "microsoft.managednetworkfabric/networkfabrics"
}
Löschen eines Fabric
Führen Sie zum Löschen eines Fabric den folgenden Befehl aus. Vergewissern Sie sich vorher, dass Folgendes erfüllt ist:
- Die Bereitstellung des Fabric wurde aufgehoben. Sollte es noch bereitgestellt sein, führen Sie den Befehl
deprovision
aus. - Dem Fabric sind keine Racks zugeordnet.
az networkfabric fabric delete --resource-group "<NFResourceGroup>" --resource-name "<NFName>"
Beispielausgabe:
{
"configurationState": "Deleting",
"fabricASN": 65048,
"fabricVersion": "1.0.0",
"id": "/subscriptions/<subscription_id>/resourceGroups/<NFResourceGroup>/providers/microsoft.managednetworkfabric/networkfabrics/<NFName>",
"ipv4Prefix": "10.2.0.0/19",
"ipv6Prefix": "fda0:d59c:df02::/59",
"l2IsolationDomains": [],
"l3IsolationDomains": [],
"location": "<Location>",
"managementNetworkConfiguration": {
"infrastructureVpnConfiguration": {
"administrativeState": "Enabled",
"optionBProperties": {
"routeTargets": {
"exportIpv4RouteTargets": [
"65048:10039"
],
"exportIpv6RouteTargets": [
"65048:10039"
],
"importIpv4RouteTargets": [
"65048:10039"
],
"importIpv6RouteTargets": [
"65048:10039"
]
}
},
"peeringOption": "OptionB"
},
"workloadVpnConfiguration": {
"administrativeState": "Enabled",
"optionBProperties": {
"routeTargets": {
"exportIpv4RouteTargets": [
"65048:10050"
],
"exportIpv6RouteTargets": [
"65048:10050"
],
"importIpv4RouteTargets": [
"65048:10050"
],
"importIpv6RouteTargets": [
"65048:10050"
]
}
},
"peeringOption": "OptionB"
}
},
"name": "<NFName>",
"networkFabricControllerId": "/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/microsoft.managednetworkfabric/networkfabriccontrollers/<NFCName>",
"networkFabricSku": "<NFSKU>",
"provisioningState": "Deleting",
"rackCount": 4,
"racks": [
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-aggrack>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack1>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack2>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack3>",
"/subscriptions/<subscription_id>/resourceGroups/<NFCResourceGroup>/providers/Microsoft.ManagedNetworkFabric/networkRacks/<NFName-comprack4>"
],
"resourceGroup": "<NFResourceGroup>",
"serverCountPerRack": 7,
"systemData": {
"createdAt": "2023-XX-XXT18:29:58.3785568Z",
"createdBy": "97fdd529-68de-4ba5-aa3c-adf86bd564bf",
"createdByType": "Application",
"lastModifiedAt": "2023-XX-XXT04:32:02.7129198Z",
"lastModifiedBy": "d1bd24c7-b27f-477e-86dd-939e107873d7",
"lastModifiedByType": "Application"
},
"terminalServerConfiguration": {
"primaryIpv4Prefix": "20.0.1.0/30",
"secondaryIpv4Prefix": "20.0.0.0/30",
"serialNumber": "XXXXXXXXXXXXXX",
"username": "XXXX"
},
"type": "microsoft.managednetworkfabric/networkfabrics"
}
Wenn Sie nach erfolgreicher Löschung des Netzwerk-Fabric einen Anzeigebefehl für dieses Fabric ausführen, sind keine Ressourcen verfügbar.
az networkfabric fabric show --resource-group "<NFResourceGroup>" --resource-name "<NFName>"
Erwartete Ausgabe:
(ResourceNotFound) The Resource 'Microsoft.ManagedNetworkFabric/NetworkFabrics/<NFName>' under resource group '<NFResourceGroup>' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Code: ResourceNotFound
Nächste Schritte
Nachdem Sie eine Network Fabric erfolgreich erstellt haben, besteht der nächste Schritt darin, einen Cluster zu erstellen.