A cloud-based identity and access management service for securing user authentication and resource access
An authorized administrator should first identify the exact policy blocking the Visual Studio sign-in in Microsoft Entra sign-in logs, then change only that policy rather than broadly allowing the other agency’s network.
1. Identify the blocking policy
The message can result from a network restriction, but it can also indicate a device-compliance, application, or authentication requirement. The fact that it occurs on another agency’s network does not by itself establish the cause.
- Have an affected developer reproduce the failure.
- On the error page, select More Details and record:
- Timestamp
- Correlation ID
- Sign-in error code
- Application/resource name
Do not post request IDs, correlation IDs, IP addresses, or account information publicly.
- An administrator with at least Reports Reader access should open the Microsoft Entra admin center.
- Go to Entra ID → Monitoring & health → Sign-in logs.
- Filter by the affected Username, Date, and preferably Correlation ID.
- Open the failed event and inspect:
- Conditional Access: policy that failed
- Troubleshooting and support: failure reason
- Location: public source IP seen by Entra
- Device Info: registration and compliance state
- Resource/Audience: resource actually blocked
Selecting the policy name opens its configuration for review. Error 53003/AADSTS53003, if shown, means BlockedByConditionalAccess. ^1^
2. Make the network change only if the log confirms a location-based block
Conditional Access evaluates the network’s public internet egress IP, not the workstation’s private address or the location of the SQL Server. Obtain the other agency’s stable public IPv4/IPv6 CIDR ranges from its network team.
A Conditional Access Administrator or Global Administrator must perform the change. The Conditional Access Administrator role can manage Conditional Access capabilities. ^2^
- Go to Entra ID → Conditional Access → Named locations.
- Create an IP ranges location.
- Enter a descriptive name and the agency’s public CIDR ranges.
- Mark it Trusted only if EDD security governance considers that entire network trusted.
- Save the named location.
- Return to Conditional Access → Policies and open the policy identified in the sign-in event.
- Under Assignments → Network:
- If the policy applies to Any network or location, add the new named location as an exclusion only if access from that network is approved.
- If it blocks Selected networks and locations, correct its selected-location scope instead.
- Keep the exception limited to the necessary users and resources; do not disable Conditional Access tenant-wide.
Named locations are managed under that path, support public IPv4/IPv6 ranges, and can be included in or excluded from policies. ^3^
3. Test safely before enforcing the change
Do not experiment directly on the active policy.
- Duplicate the policy.
- Apply the proposed network change to the duplicate.
- Set Enable policy to Report-only.
- Test with a small developer group from both EDD and the other agency’s network.
- Review the resulting sign-ins under the Conditional Access and Report-only tabs.
- After confirming the expected results, update the enforced policy and remove the test copy.
Report-only policies are evaluated and logged but do not enforce blocking or grant controls. Microsoft recommends copying an enforced policy, testing the proposed change in report-only mode, and comparing results before updating the enforced policy. ^4^
If the failed policy instead reports device not compliant, device not domain joined, unapproved application, or an unmet MFA control, adding a named location will not necessarily fix it. The owner must adjust that specific requirement or bring the device/client into compliance.
If no administrator can be located
Check Entra ID → Roles and administrators for assignments to:
- Global Administrator
- Conditional Access Administrator
- Security Administrator
- Reports Reader
A Reports Reader can investigate but cannot change the policy. If nobody with administrative access can update the tenant, open a Microsoft support request; Microsoft’s documented lockout procedure is to use another unblocked administrator or submit a support request when no administrator can update the policy. ^1^
References