Share via


近隣グループの構成の概要

近隣グループを使用すると、エンドポイント (IPv4 または IPv6) を 1 つの論理リソースの下にグループ化できます。 近隣グループを使用して、負荷分散されたフィルター処理されたトラフィックを異なるプローブ エンドポイント間で送信できます。 異なるネットワーク TAP とネットワーク タップ ルールで同じネイバー グループを使用できます。

近隣グループのパラメーター

パラメーター 説明 必須
resource-group 近隣グループを含むリソース グループ。 ResourceGroupName 正しい
resource-name 近隣グループの名前。 example-Neighbor True
location 近隣グループを含む Azure リージョン。 eastus True
宛先 トラフィックを転送する Ipv4 または Ipv6 宛先の一覧。 10.10.10.10 True

近隣グループの作成

次のコマンドは、近隣グループを作成します。

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

予想される出力:

{
  "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"
  }
}

近隣グループを表示する

次のコマンドを実行すると、IP 拡張コミュニティ リソースが表示されます。

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

予想される出力:

{
  "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"
  }
}