You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use best practices. I don't have express route. Was planning on Azure VPN Gateway to connect via the Azure VPN Client. I made a first pass, by putting the gateway in the hub vnet, but ran into connectivity issues as I was attempting to access eastus.pl-auth.privatelink.azuredatabricks.net (I had to move all resources to eastus closer to me). Anyway, the issue I ran into was the below. But unlike other custom apps, I don't have an app registration I can update the redirect URI (all I see is a single enterprise app record).
Any advice is appreciated.
AADSTS50011: The redirect URI 'https://eastus.pl-auth.privatelink.azuredatabricks.net/login.html' specified in the request does not match the redirect URIs configured for the application '2ff814a6-3304-4ab8-85cb-cd0e6f879c1d'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
Below is my current scripts:
vpn_gateway.tf
# --- VPN Gateway Configuration ---
# Create a public IP address for VPN Gateway
resource "azurerm_public_ip" "vpn_gateway_ip" {
name = "vpnGatewayPublicIP"
location = azurerm_resource_group.this.location
resource_group_name = azurerm_resource_group.this.name
allocation_method = "Dynamic"
sku = "Basic"
}
# Create the VPN Gateway
resource "azurerm_virtual_network_gateway" "vpn_gateway" {
name = "vpnGateway"
location = azurerm_resource_group.this.location
resource_group_name = azurerm_resource_group.this.name
type = "Vpn"
vpn_type = "RouteBased"
sku = "VpnGw1"
ip_configuration {
name = "vpnGatewayConfig"
public_ip_address_id = azurerm_public_ip.vpn_gateway_ip.id
private_ip_address_allocation = "Dynamic"
subnet_id = azurerm_subnet.hubvpngw.id # Referencing the GatewaySubnet here
}
vpn_client_configuration {
address_space = ["172.16.0.0/24"] # Client address pool
vpn_client_protocols = ["OpenVPN"]
# Azure AD Configuration for Authentication
aad_tenant = "https://login.microsoftonline.com/${var.AZURE_TENANT_ID}" # Azure AD tenant ID
aad_issuer = "https://sts.windows.net/${var.AZURE_TENANT_ID}/" # Azure AD issuer URL
aad_audience = "41b23e61-6c1e-4545-b367-cd054e0ed4b4" # Azure AD audience
}
}
My vnet.tf script is below (edited to include the gateway subnet expected by my vpn gateway):
I would like to use best practices. I don't have express route. Was planning on Azure VPN Gateway to connect via the Azure VPN Client. I made a first pass, by putting the gateway in the hub vnet, but ran into connectivity issues as I was attempting to access eastus.pl-auth.privatelink.azuredatabricks.net (I had to move all resources to eastus closer to me). Anyway, the issue I ran into was the below. But unlike other custom apps, I don't have an app registration I can update the redirect URI (all I see is a single enterprise app record).
Any advice is appreciated.
AADSTS50011: The redirect URI 'https://eastus.pl-auth.privatelink.azuredatabricks.net/login.html' specified in the request does not match the redirect URIs configured for the application '2ff814a6-3304-4ab8-85cb-cd0e6f879c1d'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
Below is my current scripts:
My vnet.tf script is below (edited to include the gateway subnet expected by my vpn gateway):
And my firewall.tf updates as well:
The text was updated successfully, but these errors were encountered: