Criar e Provisionar uma Malha de Rede usando a CLI do Azure
Este artigo descreve como criar uma malha de rede usando a interface de linha de comando do Azure (AzCLI). Este documento também mostra como verificar o status, atualizar ou excluir uma malha de rede.
Pré-requisitos
- Uma conta do Azure com uma assinatura ativa.
- Instale a versão mais recente dos comandos CLI. Para saber mais sobre como instalar os comandos da CLI, confira Instalar a CLI do Azure
- Um controlador de malha de rede gerencia várias malhas de rede na mesma região do Azure.
- Instância do Operador Físico-Nexus com cabeamento conforme versão BoM.
- Conectividade de rota expressa entre as instâncias NFC e Nexus do Operador.
- Servidor de terminal pré-configurado com nome de usuário e senha instalados e configurados
- Dispositivos PE pré-configurados com VLANs, destinos de rota e endereços IP necessários.
- As informações de SKU suportadas são inventariadas aqui
Etapas para provisionar uma malha e racks
- Crie uma malha de rede fornecendo racks, contagem de servidores, SKU e configuração de rede.
- Criar uma rede para interconexão de rede fornecendo parâmetros Camada 2 e Camada 3
- Atualize o número de série no recurso networkDevice com o número de série real no dispositivo.
- Configure o servidor de terminal com os números de série de todos os dispositivos.
- Provisione a malha de rede.
Configuração da malha
A tabela a seguir especifica os parâmetros usados para criar uma malha de rede,
$prefix: /subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers
Parâmetro | Descrição | Exemplo | Obrigatório | Tipo |
---|---|---|---|---|
resource-group | Nome do grupo de recursos | "NFResourceGroup" | Verdadeiro | |
local | Região do Azure do Nexus do Operador | "eastus" | Verdadeiro | |
resource-name | Nome do FabricResource | NF-ResourceName | Verdadeiro | |
nf-sku | O ID do SKU do tecido é o SKU da versão da lista de materiais solicitada. Consulte SKUs do Network Fabric. | M4-A400-A100-C16-ab | True | String |
nfc-id | Controlador de malha de rede “ID do recurso ARM” | $prefix/NFCName | Verdadeiro | |
rackcount | Número de racks de computação por malha. Os valores possíveis são de 2 a 8 | 8 | Verdadeiro | |
serverCountPerRack | Número de servidores de computação por rack. Os valores possíveis são 4, 8, 12 ou 16 | 16 | Verdadeiro | |
ipv4Prefix | Prefixo IPv4 da rede de gerenciamento. Esse prefixo deve ser exclusivo em todos as malhas de rede em um controlador de malha de rede. O comprimento do prefixo deve ser de pelo menos 19 (/20 não é permitido, /18 e menor são permitidos) | 10.246.0.0/19 | Verdadeiro | |
ipv6Prefix | Prefixo IPv6 da rede de gerenciamento. Esse prefixo deve ser exclusivo em todos as malhas de rede em um controlador de malha de rede. | 10:5:0:0::/59 | Verdadeiro | |
management-network-config | Detalhes da rede de gerenciamento | Verdadeiro | ||
infrastructureVpnConfiguration | Detalhes da conexão VPN de gerenciamento entre a malha de rede e os serviços de infraestrutura no controlador de malha de rede | Verdadeiro | ||
optionBProperties | Os detalhes da opção 10B do MPLS são usados para a conectividade entre a malha de rede e o controlador de malha de rede | Verdadeiro | ||
importRouteTargets | Os destinos de rota agora são definidos para uma classe de sub-rede IP específica, como IPv4 e IPv6. Valores de destinos de rota de importação a serem configurados em CEs para troca de rotas entre CE e PE via MPLS opção 10B, | por exemplo, 65048:10039 | True(Se OptionB habilitado) | |
exportRouteTargets | Os destinos de rota agora são definidos para uma classe de sub-rede IP específica, como IPv4 e IPv6. Valores de destinos de rota de exportação a serem configurados em CEs para troca de rotas entre CE e PE via MPLS opção 10B | por exemplo, 65048:10039 | True(Se OptionB habilitado) | |
workloadVpnConfiguration | Detalhes da conexão VPN de carga de trabalho entre a malha de rede e os serviços de carga de trabalho no controlador de malha de rede | |||
optionBProperties | Os detalhes da opção 10B do MPLS são usados para a conectividade entre a malha de rede e o controlador de malha de rede | |||
importRouteTargets | Os destinos de rota agora são definidos para uma classe de sub-rede IP específica, como IPv4 e IPv6. Valores de destinos de rota de importação a serem configurados em CEs para troca de rotas entre CE e PE via MPLS opção 10B | por exemplo, 65048:10050 | True(Se OptionB habilitado) | |
exportRouteTargets | Os destinos de rota agora são definidos para uma classe de sub-rede IP específica, como IPv4 e IPv6. Valores de destinos de rota de exportação a serem configurados em CEs para troca de rotas entre CE e PE via MPLS opção 10B | por exemplo, 65048:10050 | True(Se OptionB habilitado) | |
ts-config | Detalhes da configuração do servidor de terminal | Verdadeiro | ||
primaryIpv4Prefix | A interface Net1 do servidor de terminal deve receber o primeiro IP utilizável do prefixo e a interface correspondente em PE deve receber o segundo endereço utilizável | 20.0.10.0/30, a interface TS Net1 deve ser atribuída a 20.0.10.1 e a interface PE a 20.0.10.2 | Verdadeiro | |
secondaryIpv4Prefix | Prefixo IPv4 para conectividade entre TS e PE2. A interface Net2 do servidor de terminal deve receber o primeiro IP utilizável do prefixo e a interface correspondente em PE deve receber o segundo endereço utilizável | 20.0.0.4/30, a interface TS Net2 deve ser atribuída a 20.0.10.5 e a interface PE a 20.0.10.6 | Verdadeiro | |
Nome de Usuário | Nome de usuário configurado no servidor de terminal que os serviços usam para configurar o TS | Nome de Usuário | Verdadeiro | |
password | Senha configurada no servidor de terminal que os serviços usam para configurar o TS | password | Verdadeiro | |
serialNumber | Número de série do servidor de terminal | SN do servidor de terminal |
Criar uma rede de malha
O grupo de recursos deve ser criado antes da criação da malha de rede. É recomendável criar um grupo de recursos separado para cada malha de rede. Crie um grupo de recursos usando o comando a seguir:
az group create -n NFResourceGroup -l "East US"
Execute o seguinte comando para criar a malha de rede:
az networkfabric fabric create \
--resource-group "NFResourceGroupName"
--location "<Location>" \
--resource-name "NFName" \
--nf-sku "NFSKU" \
--nfc-id "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroupName/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"]}}}}
Observação
- Se for uma configuração de quatro racks, a contagem de racks será 4
- Se for uma configuração de oito racks, a contagem de racks será 8
Saída esperada:
{
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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
}
}
Mostrar a Malha de Rede
az networkfarbic fabric show --resource-group "NFResourceGroupName" --resource-name "NFName"
Saída esperada:
{
"configurationState": "Provisioned",
"fabricASN": 65048,
"fabricVersion": "1.0.0",
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroupName/providers/microsoft.managednetworkfabric/networkfabriccontrollers/NFCName",
"networkFabricSku": "NFSKU",
"provisioningState": "Succeeded",
"rackCount": 4,
"racks": [
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourcegroups/NFResourceGroup/providers/microsoft.managednetworkfabric/networkracks/NFName-aggrack",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourcegroups/NFResourceGroup/providers/microsoft.managednetworkfabric/networkracks/NFName-comprack1",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourcegroups/NFResourceGroup/providers/microsoft.managednetworkfabric/networkracks/NFName-comprack2",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourcegroups/NFResourceGroup/providers/microsoft.managednetworkfabric/networkracks/NFName-comprack3",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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"
}
Listar todos as Malhas de Rede em um grupo de recursos
az networkfabric fabric list --resource-group "NFResourceGroup"
Saída esperada:
{
"configurationState": "Provisioned",
"fabricASN": 65048,
"fabricVersion": "1.0.0",
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroupName/providers/microsoft.managednetworkfabric/networkfabriccontrollers/NFCName",
"networkFabricSku": "NFSKU",
"provisioningState": "Succeeded",
"rackCount": 4,
"racks": [
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourcegroups/NFResourceGroup/providers/microsoft.managednetworkfabric/networkracks/NFName-aggrack",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourcegroups/NFResourceGroup/providers/microsoft.managednetworkfabric/networkracks/NFName-comprack1",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourcegroups/NFResourceGroup/providers/microsoft.managednetworkfabric/networkracks/NFName-comprack2",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourcegroups/NFResourceGroup/providers/microsoft.managednetworkfabric/networkracks/NFName-comprack3",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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"
}
Configurar um NNI
A tabela a seguir especifica os parâmetros usados para criar a interconexão de rede a rede.
Parâmetro | Descrição | Exemplo | Obrigatório | Tipo |
---|---|---|---|---|
isMangementType | Configuração para que o NNI seja usado para o gerenciamento da malha. O valor padrão é true. Os valores possíveis são True/False | Verdadeiro | Verdadeiro | |
useOptionB | Configuração para habilitar optionB. Os valores possíveis são True/False | Verdadeiro | Verdadeiro | |
layer2Configuration | Configuração da Camada 2 | |||
portCount | Número de portas que fazem parte do canal de porta. O valor máximo é baseado no SKU da malha | 3 | ||
mtu | Unidade de transmissão máxima entre CE e PE. | 1500 | ||
layer3Configuration | Configuração da Camada 3 entre CEs e PEs | Verdadeiro | ||
primaryIpv4Prefix | Prefixo IPv4 para conectividade entre CE1 e PE1. A interface de canal de porta CE1 recebe o primeiro IP utilizável do prefixo e a interface correspondente no PE1 deve receber o segundo endereço utilizável | 10.246.0.124/31, a interface de canal de porta CE1 é atribuída a 10.246.0.125 e a interface de canal de porta PE1 deve ser atribuída a 10.246.0.126 | String | |
secondaryIpv4Prefix | Prefixo IPv4 para conectividade entre CE2 e PE2. A interface de canal de porta CE2 recebe o primeiro IP utilizável do prefixo e a interface correspondente no PE2 deve receber o segundo endereço utilizável | 10.246.0.128/31, a interface de canal de porta CE2 deve ser atribuída a 10.246.0.129 e a interface de canal de porta PE2 a 10.246.0.130 | String | |
primaryIpv6Prefix | Prefixo IPv6 para conectividade entre CE1 e PE1. A interface de canal de porta CE1 recebe o primeiro IP utilizável do prefixo e a interface correspondente no PE1 deve receber o segundo endereço utilizável | 3FFE:FFFF:0:CD30::a1 é atribuído ao CE1 e 3FFE:FFFF:0:CD30::a2 é atribuído ao PE1. O valor padrão é 3FFE:FFFF:0:CD30::a0/127 | String | |
secondaryIpv6Prefix | Prefixo IPv6 para conectividade entre CE2 e PE2. A interface de canal de porta CE2 recebe o primeiro IP utilizável do prefixo e a interface correspondente no PE2 deve receber o segundo endereço utilizável | 3FFE:FFFF:0:CD30::a5 é atribuído ao CE2 e 3FFE:FFFF:0:CD30::a6 é atribuído ao PE2. O valor padrão é 3FFE:FFFF:0:CD30::a4/127. | String | |
fabricAsn | Número ASN atribuído no CE para emparelhamento BGP com PE | 65048 | ||
peerAsn | Número ASN atribuído no PE para emparelhamento BGP com CE. Para iBGP entre PE/CE, o valor deve ser o mesmo que fabricAsn, para eBGP o valor deve ser diferente de fabricAsn | 65048 | Verdadeiro | |
fabricAsn | Número ASN atribuído no CE para emparelhamento BGP com PE | 65048 | ||
vlan-Id | Vlan para NNI. O intervalo está entre 501 e 4095 | 501 | ||
importRoutePolicy | Detalhes para importar a política de rota. | |||
exportRoutePolicy | Detalhes para exportar a política de rota. | |||
nni-type | O valor padrão é CE. CE e NPB são as opções | CE, PE |
Criar um NNI (interconexão de rede a rede)
O grupo de recursos e a malha de rede devem ser criados antes da criação da interconexão de rede a rede.
Execute o seguinte comando para criar a interconexão de rede a rede (o tipo padrão de NNI é 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 '{"portCount": 3, "mtu": 1500}' \
--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"}'
Saída esperada:
{
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroupName/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": {
"mtu": 1500
},
"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"
}
}
Mostrar NNIs da malha de rede (adaptador de rede a rede)
az networkfabric nni show -g "NFResourceGroup" --resource-name "NFNNIName" --fabric "NFFabric"
Saída esperada:
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroupName/providers/microsoft.managednetworkfabric/networkfabrics/NFName/networkToNetworkInterconnects/NFNNIName",
"isManagementType": "True",
"layer2Configuration": {
"mtu": 1500
},
"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": "NFResourceGroupName",
"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"
}
Listar ou obter NNI da malha de rede (adaptador de rede a rede)
az networkfabric nni list -g NFResourceGroup --fabric NFFabric
Saída esperada:
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroupName/providers/microsoft.managednetworkfabric/networkfabrics/NFName/networkToNetworkInterconnects/NFNNIName",
"isManagementType": "True",
"layer2Configuration": {
"mtu": 1500
},
"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": "NFResourceGroupName",
"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"
}
Próximas etapas
- Atualize o número de série no recurso networkDevice com o número de série real no dispositivo. O dispositivo envia o número de série como parte da solicitação DHCP.
- Configure o servidor de terminal com os números de série de todos os dispositivos (que também hospeda o servidor DHCP)
- Provisione os dispositivos de rede via modo de provisionamento de toque zero, com base no número de série na solicitação DHCP, o servidor DHCP responde com o arquivo de configuração de inicialização para o dispositivo correspondente
Atualizar dispositivos da malha de rede
Execute o seguinte comando para atualizar os dispositivos da malha de rede:
az networkfabric device update \
--resource-group "NFResourceGroup" \
--resource-name "Network-Device-Name" \
--host-name "example-hostname" \
--serial-number "xxxx"
Saída esperada:
{
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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"
}
Observação
O código anterior serve apenas como exemplo. Você deve atualizar todos os dispositivos que fazem parte de AggrRack
e computeRacks
Por exemplo, AggrRack
consiste em:
CE01
CE02
TOR17
TOR18
MgmtSwitch01
MgmtSwitch02
(e assim por diante, para outras opções)
Listar ou obter os dispositivos da malha de rede
Execute o seguinte comando para listar os dispositivos da Malha de Rede em um grupo de recursos:
az networkfabric device list --resource-group "NFResourceGroup"
Saída esperada:
[
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "CE",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "TS",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "NPB",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "CE",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "TS",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "ToR",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "TS",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "ToR",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "ToR",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "TS",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "ToR",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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": ""
}
]
Execute o seguinte comando para obter ou mostrar detalhes de um dispositivo da malha de rede:
az networkfabric device show --resource-group "NFResourceGroup" --resource-name "Network-Device-Name"
Saída esperada:
{
"administrativeState": "Enabled",
"configurationState": "Succeeded",
"hostName": "example-hostname",
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkDevices/Network-Device-Name",
"location": "<Location>",
"name": "Network-Device-Name",
"networkDeviceRole": "ToR",
"networkDeviceSku": "DefaultSku",
"networkRackId": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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": ""
}
Provisionar uma Malha de Rede
Depois de atualizar o número de série do dispositivo, provisione e mostre a malha executando os seguintes comandos:
az networkfabric fabric provision --resource-group "NFResourceGroup" --resource-name "NFName"
az networkfabric fabric show --resource-group "NFResourceGroup" --resource-name "NFName"
Saída esperada:
{
"configurationState": "Provisioned",
"fabricASN": 65048,
"fabricVersion": "1.0.0",
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/microsoft.managednetworkfabric/networkfabriccontrollers/NFCName",
"networkFabricSku": "NFSKU",
"provisioningState": "Succeeded",
"rackCount": 4,
"racks": [
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-aggrack",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-comprack1",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-comprack2",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-comprack3",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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"
}
Desprovisionar uma malha
Para desprovisionar uma malha, verifique se a malha está em um estado operacional provisionado, interrompa o serviço dhcp no servidor de terminal e execute este comando:
az networkfabric fabric deprovision --resource-group "NFResourceGroup" --resource-name "NFName"
Saída esperada:
{
"configurationState": "Deprovisioned",
"fabricASN": 65048,
"fabricVersion": "1.0.0",
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/microsoft.managednetworkfabric/networkfabriccontrollers/NFCName",
"networkFabricSku": "NFSKU",
"provisioningState": "Succeeded",
"rackCount": 4,
"racks": [
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-aggrack",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-comprack1",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-comprack2",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-comprack3",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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"
}
Excluir malha
Para excluir uma malha, execute o comando a seguir. Antes disso, verifique se:
- A malha está em um estado operacional desprovisionado. Se estiver em um estado provisionado, execute o comando
deprovision
. - Nenhum rack está associado à malha.
az networkfabric fabric delete --resource-group "NFResourceGroup" --resource-name "NFName"
Saída de exemplo:
{
"configurationState": "Deleting",
"fabricASN": 65048,
"fabricVersion": "1.0.0",
"id": "/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/microsoft.managednetworkfabric/networkfabriccontrollers/NFCName",
"networkFabricSku": "NFSKU",
"provisioningState": "Deleting",
"rackCount": 4,
"racks": [
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-aggrack",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-comprack1",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-comprack2",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/NFCResourceGroup/providers/Microsoft.ManagedNetworkFabric/networkRacks/NFName-comprack3",
"/subscriptions/xxxxxx-xxxxxx-xxxx-xxxx-xxxxxx/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"
}
Depois de excluir com sucesso a malha de rede, ao executar uma exibição da mesma malha, você não encontrará nenhum recurso disponível.
az networkfabric fabric show --resource-group "NFResourceGroup" --resource-name "NFName"
Saída esperada:
(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
Próximas etapas
Depois de criar uma Malha de Rede cm sucesso, a próxima etapa é criar um cluster.