Skip to content

Ulysses Neves

Microsoft Entra ID, authentication, and hybrid identity troubleshooting.

Menu
  • Início
  • Microsoft Azure
  • Microsoft AD FS
  • Microsoft 365
  • Contact
Menu

Azure AD IPv6 support – Prepare for the change

Posted on 23 de February de 2023

Hello everyone. If you have IPv6 implemented in your organization’s network and use Azure AD security tools such as location-based conditional access policies, you should consider reading this article.

UPDATED: Microsoft announced that starting in late April 2023, IPv6 will start being supported by Azure Active Directory, meaning that, if your client network supports IPv6, the Azure AD service endpoints will start returning both IPv4 and IPv6 addresses. Those IP addresses should be visible in the sign-in logs and evaluated by all conditional access policies that have public IP ranges via named locations.

You can find more information on the below public links:

IPv6 support in Azure Active Directory (Azure AD) – Active Directory | Microsoft Learn

IPv6 Coming to Azure AD – Microsoft Community Hub

I have IPv6 implemented, so, what is the expected impact on my company?

If your company has implemented IPv6 in the network, you have IP ranges configured in Azure AD, and conditional access policies relying on IP ranges, you should take action to avoid unexpected authentication behaviors.

In this article, we’ll simulate ONE of the possible impacts of this IPV6 change in authentication. Let’s consider an Azure AD tenant with the following configurations:

Named location: Trusted_Allow (Safe networks with IPv4 ranges registered)
Configuration:

Conditional Access Policy: Allow-Specific-IP-Ranges
Expected outcome: Block specific users to access applications integrated with Azure AD outside trusted networks.
Configuration:

In order to help IT admins prepare for the upcoming changes, Microsoft has published steps to test the impact on the user’s authentication and take proper actions to avoid issues. I will follow these steps provided by Microsoft in this link in my Azure AD-joined Windows device, which is capable of resolving IPv6.

As the public document states: ‘These instructions are for testing purposes only. You must remove the following configurations by May 2023 to ensure that your clients are using production DNS servers. The DNS servers in the following procedures may be decommissioned after May 2023.‘

The first step is to manually update the Name Resolution Policy Table and force your client machine to resolve special DNS servers that are configured to have IPv6 DNS entries for Azure AD sign-in.

As an administrator, run the following commands:

After updating the Name Resolution Table, test the name resolution with the command below:

REPRODUCING THE USER EXPERIENCE

My conditional access policy is configured to trust a specific IPv4 range configured using Named Locations. Once the change is implemented, users covered by this policy will face the error message ‘53003’ as below:

Details: ‘Your sign-in was successful but does not meet the criteria to access this resource. For example, you might be signing in from a browser, app, or location that is restricted by your admin’.

Checking the Azure AD sign-in logs, we find more details by selecting the sign-in event and clicking on the tab ‘Location’. In this tab, we find the IPv6 returned by the Azure AD service endpoint.

Selecting the tab ‘Conditional Access Policy details’. We find the same IPv6 being evaluated by the conditional access policy. Since the IPv6 IP is currently not registered in the Named Location, the policy result is ‘Block’.

NOTE: Since Named locations are shared between many features, such as Conditional Access, Identity Protection, and B2C, the scenario above is just one of the possible issues that users might face if named locations are not updated with IPv6 ranges in Azure AD.

ACTIONS TO AVOID SUCH ISSUE

For the proposed scenario above, to avoid an issue when the changes take place, IT admins should work with network administrators and internet service providers (ISPs) to identify the public-facing IPv6 addresses in use and update the Named locations accordingly.

In my test environment, I’ve added a public IPv6 IP range that has my device’s IP included.

As a result, after the Named location has been updated, my test user regained access to the applications.

Looking at the conditional access policy evaluation details, we confirm the ‘block’ result has not been applied, because the IPv6 is now included in the named location that is configured as an exclusion to the policy. As a result, we see: ‘Not Applied’.

To roll back the client name resolution configuration, we can run the script below provided by Microsoft:

With the configurations rolled back, now, I am able to resolve login.microsoftonline.com to public IPs based on IPv4.

The testing script above can be deployed to a group of machines using Intune using this document: https://learn.microsoft.com/en-us/troubleshoot/azure/active-directory/azure-ad-ipv6-support#deploy-nrpt-rule-with-intune

Additional recommendations have been provided by Microsoft in the links below:
– Azure AD per-user multifactor authentication
– Outbound traffic restrictions
– IPv6 support in Microsoft 365 services

Summary

In this article, we covered how to predict the impact of the Azure AD IPv6 upcoming changes and adapt conditional access policies using location-based criteria to avoid users’ authentication issues.

Enjoyed the article? Like and share. 🙂

Note: I do not represent the organization I work for, all the opinions expressed here, are my own. This post is provided AS IS with no warranties or guarantees and confers no rights.

In case you have any suggestions or feedback, please leave a comment.

[ ]’s
Ulysses Neves

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Microsoft Authenticator Will Block Jailbroken Devices in 2026 — What You Need to Know 17 de March de 2026
  • Enhancing Azure role activation security with FIDO2/Passkeys 23 de September de 2024
  • Microsoft Entra ID CAP | Enforcing WHfB using Authentication Strength 21 de April de 2024
  • Troubleshooting Error Code ‘0x000005e’ in WHfB: PIN Authentication Woes 11 de February de 2024
  • WHfB: Fixing Windows Hello for Business error ‘LogoncertTemplateReady: NO (StateNoTemplate)’ 29 de December de 2023

Archives

  • March 2026
  • September 2024
  • April 2024
  • February 2024
  • December 2023
  • September 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019

Tags

#aaddownleveldevice #aadhybridjoin #adfs #adfsonsql #azuread #azureauth #azureCA #azuredevice #azurehybridjoin #azuremfa #azuresecurity #capolicy #cloudkerberostrust #conditionalaccess #conditionalaccesspolicy #deviceregistration #gmsaaccount #gopasswordless #hybridaadjoin #mfaserver #msadfs #msazure #msidentity #namedlocation #sslcertificatevalidation #tshootadfs #tshoothybridjoin #tshootwaptrust #waptrust #WHFBcerttrust #whfbdeployment #WHfBhybridsetup #widdatabase adconnect authenticationcontext authenticationstrength az500 azuread azuremfa azurepim azuresecurity cloudsecurity microsoft365 msazure WHfB
©2026 Ulysses Neves | Design: Newspaperly WordPress Theme
Ulysses Neves
Gerenciar Consentimento de Cookies
Para fornecer as melhores experiências, usamos tecnologias como cookies para armazenar e/ou acessar informações do dispositivo. O consentimento para essas tecnologias nos permitirá processar dados como comportamento de navegação ou IDs exclusivos neste site. Não consentir ou retirar o consentimento pode afetar negativamente certos recursos e funções.
Funcional Always active
O armazenamento ou acesso técnico é estritamente necessário para a finalidade legítima de permitir a utilização de um serviço específico explicitamente solicitado pelo assinante ou utilizador, ou com a finalidade exclusiva de efetuar a transmissão de uma comunicação através de uma rede de comunicações eletrónicas.
Preferências
O armazenamento ou acesso técnico é necessário para o propósito legítimo de armazenar preferências que não são solicitadas pelo assinante ou usuário.
Estatísticas
O armazenamento ou acesso técnico que é usado exclusivamente para fins estatísticos. O armazenamento técnico ou acesso que é usado exclusivamente para fins estatísticos anônimos. Sem uma intimação, conformidade voluntária por parte de seu provedor de serviços de Internet ou registros adicionais de terceiros, as informações armazenadas ou recuperadas apenas para esse fim geralmente não podem ser usadas para identificá-lo.
Marketing
O armazenamento ou acesso técnico é necessário para criar perfis de usuário para enviar publicidade ou para rastrear o usuário em um site ou em vários sites para fins de marketing semelhantes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Ver preferências
  • {title}
  • {title}
  • {title}