Configure Service Graph Connector for Azure to route traffic through MID ServerIssue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } By default, the connection for Service Graph Connector (SGC) for Microsoft Azure communicates directly from the ServiceNow platform. In environments where Microsoft Entra ID Conditional Access policies restrict authentication to approved network locations, this can cause OAuth and API requests to be blocked. Traffic for this connection can be routed through a MID Server located within an approved network instead. Symptoms Connection validation for the Azure connection fails with the following error: OAuth flow failed. Verify the configurations and try again. Error detail: invalid_grant, AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance. Scheduled import jobs associated with the connection do not complete successfully.No option to route traffic through a MID Server is visible during the guided setup flow. Facts<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Applies to Service Graph Connector (SGC) for Microsoft Azure.Connection is configured using OAuth with a Tenant ID, Client ID, and Client Secret.Microsoft Entra ID Conditional Access policies are configured to allow authentication only from approved network locations.A MID Server deployed within the approved network is available for use.The guided setup for the Azure connector does not present a MID Server option during initial configuration. Release All releases. Cause When the Azure connection is created using the guided setup, the underlying HTTP Connection record defaults to communicating directly from the ServiceNow platform. The guided setup does not surface the Use MID Server option during initial configuration. As a result, OAuth token requests and API calls originate from the ServiceNow cloud infrastructure IP addresses rather than from the customer network. When Microsoft Entra ID Conditional Access policies restrict token issuance to approved network locations, these requests are blocked and the AADSTS53003 error is returned. Resolution Go to Service Graph Connector > Azure > Connections and open the Azure connection record.On the connection form, select the information icon next to the Connection alias field to open the alias record.In the Connection related list on the alias record, select the connection name to open the associated HTTP Connection record.On the HTTP Connection form, select the Use MID Server check box.In the MID Server field, select a MID Server located within the approved network.Select Save. Note: After this change, all connection and authentication traffic for this connection routes through the selected MID Server, allowing requests to originate from an IP address within the approved network. Related Links Create an HTTPS connection