ArgumentUsageError: argument --route-table-name: expected one argument
Try this: 'az network route-table route create -g spring-o76hh6c1q6ugt-apps-rg --route-table-name <MyRouteTable> -n default --next-hop-type VirtualAppliance --address-prefix 0.0.0.0/0 --next-hop-ip-address 10.9.0.4'
Still stuck? Run 'az network route-table route create --help' to view all commands or go to 'https://aka.ms/cli_ref' to learn more
This command is implicitly deprecated because command group 'network route-table' is deprecated and will be removed in a future release. Use 'network vhub route-table' instead.
ArgumentUsageError: argument --route-table-name: expected one argument
Try this: 'az network route-table route create -g spring-o76hh6c1q6ugt-runtime-rg --route-table-name <MyRouteTable> -n default --next-hop-type VirtualAppliance --address-prefix 0.0.0.0/0 --next-hop-ip-address 10.9.0.4'
Still stuck? Run 'az network route-table route create --help' to view all commands or go to 'https://aka.ms/cli_ref' to learn more
{- Finished ..
"etag": "20cbe94d-cf15-4f6a-870f-e9b00f5770a8",
"id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/privateDnsZones/private.azuremicroservices.io",
"location": "global",
"maxNumberOfRecordSets": 25000,
"maxNumberOfVirtualNetworkLinks": 1000,
"maxNumberOfVirtualNetworkLinksWithRegistration": 100,
"name": "private.azuremicroservices.io",
"numberOfRecordSets": 1,
"numberOfVirtualNetworkLinks": 0,
"numberOfVirtualNetworkLinksWithRegistration": 0,
"provisioningState": "Succeeded",
"resourceGroup": "sc-corp-rg",
"tags": null,
"type": "Microsoft.Network/privateDnsZones"
}
{- Finished ..
"etag": "\"5f003339-0000-0100-0000-600620df0000\"",
"id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/privateDnsZones/private.azuremicroservices.io/virtualNetworkLinks/link-to-vnet-spoke",
"location": "global",
"name": "link-to-vnet-spoke",
"provisioningState": "Succeeded",
"registrationEnabled": false,
"resourceGroup": "sc-corp-rg",
"tags": null,
"type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks",
"virtualNetwork": {
"id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/virtualNetworks/vnet-spoke",
"resourceGroup": "sc-corp-rg"
},
"virtualNetworkLinkState": "Completed"
}
{- Finished ..
"etag": "\"5f00a33b-0000-0100-0000-600621070000\"",
"id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/privateDnsZones/private.azuremicroservices.io/virtualNetworkLinks/link-to-vnet-hub",
"location": "global",
"name": "link-to-vnet-hub",
"provisioningState": "Succeeded",
"registrationEnabled": false,
"resourceGroup": "sc-corp-rg",
"tags": null,
"type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks",
"virtualNetwork": {
"id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/virtualNetworks/vnet-hub",
"resourceGroup": "sc-corp-rg"
},
"virtualNetworkLinkState": "Completed"
}
{
"aRecords": [
{
"ipv4Address": "10.8.0.6"
}
],
"etag": "7b7afc08-4bda-4e3d-8ef6-d62b6ed118e4",
"fqdn": "*.private.azuremicroservices.io.",
"id": "/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/sc-corp-rg/providers/Microsoft.Network/privateDnsZones/private.azuremicroservices.io/A/*",
"isAutoRegistered": false,
"metadata": null,
"name": "*",
"resourceGroup": "sc-corp-rg",
"ttl": 3600,
"type": "Microsoft.Network/privateDnsZones/A"
}