Share via


Übersicht über die Konfiguration der Benachbarten Gruppe

Eine Nachbargruppe ermöglicht es Ihnen, Endpunkte (entweder IPv4 oder IPv6) unter einer einzigen logischen Ressource zu gruppieren. Eine Nachbargruppe kann verwendet werden, um gefilterten Datenverkehr mit Lastenausgleich über verschiedene Probeendpunkte hinweg zu senden. Sie können dieselbe Nachbargruppe für verschiedene Netzwerk-TAPs und Netzwerk-Tippregeln verwenden.

Parameter für eine Benachbarte Gruppe

Parameter BESCHREIBUNG Beispiel Erforderlich
resource-group Die Ressourcengruppe, die die Benachbarte Gruppe enthält. ResourceGroupName True
Ressourcenname Der Name der Nachbargruppe. example-Neighbor True
location Die Azure-Region, die die Nachbargruppe enthält. eastus True
destination Liste der Ipv4- oder Ipv6-Ziele zum Weiterleiten von Datenverkehr. 10.10.10.10 True

Erstellen einer Nachbargruppe

Mit dem folgenden Befehl wird eine Benachbarte Gruppe erstellt:

az networkfabric neighborgroup create \
    --resource-group "example-rg" \
    --location "westus3" \
    --resource-name "example-neighborgroup" \
    --destination "{ipv4Addresses:['10.10.10.10']}"

Erwartete Ausgabe:

{
  "properties": {
    "networkTapIds": [
    ],
    "networkTapRuleIds": [
    ],
    "destination": {
      "ipv4Addresses": [
        "10.10.10.10",
      ]
    },
    "provisioningState": "Succeeded",
    "annotation": "annotation"
  },
  "tags": {
    "keyID": "KeyValue"
  },
  "location": "eastus",
  "id": "/subscriptions/subscriptionId/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/neighborGroups/example-neighborGroup",
  "name": "example-neighborGroup",
  "type": "microsoft.managednetworkfabric/neighborGroups",
  "systemData": {
    "createdBy": "user@mail.com",
    "createdByType": "User",
    "createdAt": "2023-05-23T05:49:59.193Z",
    "lastModifiedBy": "email@address.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2023-05-23T05:49:59.194Z"
  }
}

Anzeigen einer Benachbarten Gruppe

Mit diesem Befehl wird eine erweiterte IP-Communityressource angezeigt:

az networkfabric neighborgroup show \
    --resource-group "example-rg" \
    --resource-name "example-neighborgroup"

Erwartete Ausgabe:

{
  "properties": {
    "networkTapIds": [
    ],
    "networkTapRuleIds": [
    ],
    "destination": {
      "ipv4Addresses": [
        "10.10.10.10",
      ]
    },
    "provisioningState": "Succeeded",
    "annotation": "annotation"
  },
  "tags": {
    "keyID": "KeyValue"
  },
  "location": "eastus",
  "id": "/subscriptions/subscriptionId/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/neighborGroups/example-neighborGroup",
  "name": "example-neighborGroup",
  "type": "microsoft.managednetworkfabric/neighborGroups",
  "systemData": {
    "createdBy": "user@mail.com",
    "createdByType": "User",
    "createdAt": "2023-05-23T05:49:59.193Z",
    "lastModifiedBy": "email@address.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2023-05-23T05:49:59.194Z"
  }
}