early-plastic-49211
06/09/2023, 12:53 PMAzureNative.Network.GetSubnet.Invoke(new ()
{
ResourceGroupName = "rg-name",
VirtualNetworkName = "vnet-name",
SubnetName = "subnet-name",
Expand = "routeTable"
});
However, the routeTable is empty. When I try the request using the REST API directly (az rest --method get --uri ''https://management.azure.com/subscriptions/<subId>/resourceGroups/<rgName>/providers/Microsoft.Network/virtualNetworks/<vnetName>/subnets/<subnetName>?api-version=2020-11-01&$expand=routeTable''), the routeTable information is properly returned. Does anyone have an idea why?billowy-army-68599
early-plastic-49211
06/09/2023, 3:00 PMbillowy-army-68599
early-plastic-49211
06/09/2023, 3:19 PMbillowy-army-68599
early-plastic-49211
06/09/2023, 3:26 PM