How to Set Up and Manage Conditional Access Policies for Microsoft 365 to Block Logins from Outside Australia
Summary
This guide helps you troubleshoot and resolve: How to Set Up and Manage Conditional Access Policies for Microsoft 365 to Block Logins from Outside Australia. Follow the steps below to fix the issue.
Common Causes
Conditional Access policies allow your organisation to control how and where users can sign in to Microsoft 365. By restricting access to Australian IP addresses, you can significantly reduce the risk of unauthorised login attempts from overseas attackers targeting your business accounts.
Detailed Instructions
Prerequisites
You need one of the following licences assigned to your users: Microsoft Entra ID P1, Microsoft Entra ID P2, Microsoft 365 Business Premium, or Microsoft 365 E3/E5. You must also sign in as a Global Administrator, Security Administrator, or Conditional Access Administrator.
Create the Conditional Access Policy
- Open a web browser and go to https://entra.microsoft.com.
- Sign in with your administrator account.
- In the left-hand menu, select Protection, then select Conditional Access.
- Click New policy.
- In the Name field, enter
Block sign-ins from outside Australia.
Assign Users and Cloud Apps
- Under Assignments, select Users and workload identities.
- Choose Select users and groups and add the users you want to protect. To protect everyone, select All users. If you have service accounts or automated processes that connect from outside Australia, exclude them here or handle them with a separate policy.
- Click Done.
- Select Cloud apps or actions.
- Choose Select apps and search for
Office 365 Exchange Online,Office 365 SharePoint Online, andMicrosoft Teams. Alternatively, select All cloud apps to cover every Microsoft 365 service. - Click Select, then click Done.
Configure Location Conditions
- Under Conditions, select Locations.
- Set Configure to Yes.
- Under Include, select Selected locations.
- Choose Countries and select
Australia. - Click Select, then click Done.
Set Access Controls
- Under Access controls, select Grant.
- Select Block access.
- Click Select.
Enable the Policy
- Set Enable policy to Report-only initially.
- Click Create.
- Monitor the Microsoft Entra sign-in logs for at least 24 hours to ensure legitimate Australian users are not affected. Conditional Access policies can take up to 30 minutes to propagate after you save changes.
- Return to the policy, select Edit, and change Enable policy to On.
- Click Save.
Best Practice: Use Microsoft Entra ID Named Locations
Instead of relying only on country-based blocking, consider creating Named Locations in Microsoft Entra ID. Named locations let you define trusted IP address ranges or countries and regions with greater precision. This is more robust than basic country filtering because it accounts for known business IP ranges and reduces false positives where Australian traffic is routed through overseas gateways. To create a named location, go to Protection > Conditional Access > Named locations in the Microsoft Entra admin centre.
Service Accounts, Legacy Authentication, and Multi-Tenant Scenarios
Some service accounts, automated processes, and legacy applications do not support modern authentication or multi-factor authentication. Blocking by location can break these connections if they originate from non-Australian IPs, such as cloud hosting regions or third-party integrations. Before enforcing the policy:
- Identify service accounts and workload identities that require access from outside Australia.
- Exclude those specific identities from the location-based policy, or create a separate Conditional Access policy that grants them access based on other conditions such as device compliance or approved client apps.
- Review sign-in logs for legacy authentication protocols (for example, IMAP, SMTP, POP3, or ActiveSync) and plan to block legacy authentication separately if your organisation does not require it.
- In multi-tenant environments, verify whether any cross-tenant automation or guest user access originates from outside Australia and adjust exclusions accordingly.
Troubleshooting
Legitimate users are blocked while in Australia
Some Australian internet providers route traffic through overseas gateways, which can make a local connection appear to come from another country. If this happens:
- Review the Microsoft Entra sign-in logs to see the reported IP address and location.
- Contact your internet service provider to confirm where your public IP address is registered.
- Consider adding specific trusted IP ranges as named locations in Conditional Access instead of relying only on country blocking.
Users travelling overseas cannot sign in
This policy blocks sign-ins from outside Australia by design. If staff need to access Microsoft 365 while travelling internationally, create a separate Conditional Access policy that excludes those specific users from the block, or temporarily disable the policy for the duration of their trip.
Administrator locked out during testing
If you accidentally block yourself from the Microsoft Entra admin centre:
- Sign in using your emergency access account that was excluded from the Conditional Access policy.
- Go to Protection > Conditional Access policies.
- Select the policy
Block sign-ins from outside Australia. - Set Enable policy to Off or edit the assignments to exclude your administrator account.
- Click Save.
- Remember that policy changes can take up to 30 minutes to propagate.
Policy is not applying
- Ensure the affected users have the required licence (Microsoft Entra ID P1/P2 or Microsoft 365 Business Premium).
- Check that the policy is set to On, not Report-only.
- Wait up to 30 minutes after saving changes for the policy to propagate.
If you need assistance configuring or auditing your Conditional Access policies, Open a Ticket with our support team.
For help with account access issues, see our guide on Password reset (Windows login).
Still Having Issues?
💻 Open a Ticket