After using the New-AzureADMSNamedLocationPolicy cmdlet to create a named location, the new named location does not show up in the Azure AD Conditional Access > Named Locations. However, it does show up with Get-AzureADMSNamedLocationPolicy and it does show up in the portal under Named Locations (preview).
It also seems as thought the new policy is not taking effect. When I move an IP address from the old named location policy to the new location policy created with the script, I can no longer access the portal from that IP. The policies are both set as 'Trusted'.
My mistake, the Named location was not assigned to policy. The functionality is correct but the PowerShell cmdlet will only work for the items in the preview panel
After using the New-AzureADMSNamedLocationPolicy cmdlet to create a named location, the new named location does not show up in the Azure AD Conditional Access > Named Locations. However, it does show up with Get-AzureADMSNamedLocationPolicy and it does show up in the portal under Named Locations (preview).
It also seems as thought the new policy is not taking effect. When I move an IP address from the old named location policy to the new location policy created with the script, I can no longer access the portal from that IP. The policies are both set as 'Trusted'.