Shared ExpressRoute circut api
Hi,
I succed to get the routing table from the expressRoute circut in the same sub as the vnet.
But when i tried to get the routing table for a vnet that is in other sub and is connected to the same circut I can't.
Is there other api call ?
Azure ExpressRoute
-
GitaraniSharma-MSFT • 49,721 Reputation points • Microsoft Employee
2022-10-17T09:38:26.317+00:00 Hello @meshi ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
Could you please provide some more details regarding your question?
Which route table are you referring to here? Could you please share a screenshot for better clarity?NOTE : The ExpressRoute Circuit Route table will only show all routes for a specific peering type. It is not related to the Vnet which the circuit is connected to.
Refer : https://learn.microsoft.com/en-us/azure/expressroute/expressroute-troubleshooting-expressroute-overview#validate-bgp-and-routes-on-the-msee
https://learn.microsoft.com/en-us/powershell/module/az.network/get-azexpressroutecircuitroutetable?view=azps-9.0.0Regards,
Gita -
meshi • 1 Reputation point
2022-10-18T10:16:02.797+00:00 Hi,
thank you for your answer,
I have two diff subs that use the same express route circuit. One is on the sub as the circuit.
(One vnet on the sub with the expressRouteCircuit and one vnet on other subscription that uses the same circuit)
I got the route table from the express route circuit in the first sub by fetching the expressRouteCircuit.list() (networkManager) and then with listRouteTable in expressRouteCircutsClient got the assosiate routes to the resourcegroup.
But when I tried to fetch the express route circuit list in the other sub(not the same as expressroute) it return empty list.
So is there other way to get the expressroute circuit routes of the other resource group?
Thank you -
GitaraniSharma-MSFT • 49,721 Reputation points • Microsoft Employee
2022-10-19T17:11:56.133+00:00 Hello @meshi ,
Thank you for the update.
Did you try the Express Route Cross Connections API call?
Refer : https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-cross-connections/list-routes-table?tabs=HTTP
https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-cross-connections/list-routes-table-summary?tabs=HTTPRegards,
Gita -
meshi • 1 Reputation point
2022-10-19T19:05:11.237+00:00 Hi thank you for answering me
Actually i did read an article about the cross connection and didnt see this case related (https://learn.microsoft.com/en-us/azure/expressroute/cross-network-connectivity )
But i did tried it just to check if it's related ,and didnt get anything.
I used expressRouteCrossConnections in networkmanager and then tried to convert it from paged iterable to list but it threw error . Saying the resource type could not be found in the namesapace microsoft.network
. But we do have at resource provider in the subscription the Microsoft.Network.
So is this case one of the case of cross connection? And if so why it doesnt work?
I did see a question about this error but without answer. -
GitaraniSharma-MSFT • 49,721 Reputation points • Microsoft Employee
2022-10-20T13:46:56.493+00:00 Hello @meshi ,
Let me check this internally with the backend team and get back to you with an update soon.
Regards,
Gita -
meshi • 1 Reputation point
2022-10-20T14:05:20.67+00:00 Okay thank you:)
I would also like to know if this case i described to you with one expressRouteCircuit and 2 diff sub is related to the api. Because after reading the article it doesn't seem to be related.
Thank you -
meshi • 1 Reputation point
2022-10-22T16:22:42.25+00:00 Is there any update?
Thanks -
GitaraniSharma-MSFT • 49,721 Reputation points • Microsoft Employee
2022-10-25T10:09:39.853+00:00 Hello @meshi ,
I'm still discussing this query with the Product Group team. Please allow me some more time to get back to you with an update.
Regards,
Gita -
GitaraniSharma-MSFT • 49,721 Reputation points • Microsoft Employee
2022-10-28T13:10:52.85+00:00 Hello @meshi ,
Below is the update from the ExpressRoute Product Group team:
Resource groups aren’t a boundary. As long as the target user has contributor access to the subscription where the ExpressRoute circuits are deployed, they can call ExpressRoute circuit APIs across resource groups. You need to use the ExpressRoute circuit API.
The below API call is for the expressRouteCrossConnection resource – this resource is only exposed to ExpressRoute partners.
https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-cross-connections/list-routes-table-summary?tabs=HTTPRegards,
Gita -
meshi • 1 Reputation point
2022-10-30T11:57:47.547+00:00 Hi ,
Thank you for updating me, I tried to use this api through your site but got error saying "the resource type could not be found in the namespace Microsoft.netwrok."
But we do have at resource provider in the subscription the Microsoft.Network.
The params ;
At crossconnectionName - I put the circuit service key like in the eample.
Peering name -AzurePrivatePeering.
I tried diff options in the resource group and device pathWould like to get help
Thanks
-
GitaraniSharma-MSFT • 49,721 Reputation points • Microsoft Employee
2022-10-31T14:17:01.263+00:00 Hello @meshi ,
I'm unable to test the API from my end due to the unavailability of an ExpressRoute circuit in our lab. So if you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you get a one-time free technical support.
In case you need help with a one-time free technical support, please drop us an email as advised in the private message.
Regards,
Gita -
GitaraniSharma-MSFT • 49,721 Reputation points • Microsoft Employee
2022-11-03T13:49:48.38+00:00 Hello @meshi ,
As requested in my previous comment, in case you need help with a one-time free technical support, please drop us an email per the private message.
Regards,
Gita
Sign in to comment