Home › Knowledgebase › KB-814

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.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

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.

Before you begin, do not apply this policy to your only administrator account. Create or identify an emergency access account (break-glass account) and exclude it from this policy. If you misconfigure the location settings, the emergency access account is your only way back into the Microsoft Entra admin centre to disable or fix the policy. Always test with a standard non-administrator account first.

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

  1. Open a web browser and go to https://entra.microsoft.com.
  2. Sign in with your administrator account.
  3. In the left-hand menu, select Protection, then select Conditional Access.
  4. Click New policy.
  5. In the Name field, enter Block sign-ins from outside Australia.

Assign Users and Cloud Apps

  1. Under Assignments, select Users and workload identities.
  2. 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.
  3. Click Done.
  4. Select Cloud apps or actions.
  5. Choose Select apps and search for Office 365 Exchange Online, Office 365 SharePoint Online, and Microsoft Teams. Alternatively, select All cloud apps to cover every Microsoft 365 service.
  6. Click Select, then click Done.

Configure Location Conditions

  1. Under Conditions, select Locations.
  2. Set Configure to Yes.
  3. Under Include, select Selected locations.
  4. Choose Countries and select Australia.
  5. Click Select, then click Done.
This configuration includes Australia as the only allowed location. Because the grant control is set to Block access, any sign-in originating from outside Australia is denied. Do not use Any location combined with excluding Australia unless you intend to invert this logic.

Set Access Controls

  1. Under Access controls, select Grant.
  2. Select Block access.
  3. Click Select.

Enable the Policy

  1. Set Enable policy to Report-only initially.
  2. Click Create.
  3. 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.
  4. Return to the policy, select Edit, and change Enable policy to On.
  5. Click Save.
Report-only mode lets you see what would be blocked without actually stopping anyone from signing in. Use this to verify your location settings before enforcing the policy.

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:

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:

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:

Policy is not applying

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?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket