Wildcard applications in the Azure Active Directory Application Proxy
In Azure Active Directory (Azure AD), configuring a large number of on-premises applications can quickly become unmanageable and introduces unnecessary risks for configuration errors if many of them require the same settings. With Azure AD Application Proxy, you can address this issue by using wildcard application publishing to publish and manage many applications at once. This is a solution that allows you to:
- Simplify your administrative overhead
- Reduce the number of potential configuration errors
- Enable your users to securely access more resources
This article provides you with the information you need to configure wildcard application publishing in your environment.
Create a wildcard application
You can create a wildcard (*) application if you have a group of applications with the same configuration. Potential candidates for a wildcard application are applications sharing the following settings:
- The group of users having access to them
- The SSO method
- The access protocol (http, https)
You can publish applications with wildcards if both, the internal and external URLs are in the following format:
While the internal and external URLs can use different domains, as a best practice, they should be same. When publishing the application, you see an error if one of the URLs doesn't have a wildcard.
Creating a wildcard application is based on the same application publishing flow that is available for all other applications. The only difference is that you include a wildcard in the URLs and potentially the SSO configuration.
To get started, make sure you've met these requirements.
While custom domains are optional for all other applications, they are a prerequisite for wildcard applications. Creating custom domains requires you to:
- Create a verified domain within Azure.
- Upload a TLS/SSL certificate in the PFX format to your application proxy.
You should consider using a wildcard certificate to match the application you plan to create.
For security reasons, this is a hard requirement and we will not support wildcards for applications that cannot use a custom domain for the external URL.
When using custom domains, you need to create a DNS entry with a CNAME record for the external URL (for example,
*.adventure-works.com) pointing to the external URL of the application proxy endpoint. For wildcard applications, the CNAME record needs to point to the relevant external URL:
To confirm that you have configured your CNAME correctly, you can use nslookup on one of the target endpoints, for example,
expenses.adventure-works.com. Your response should include the already mentioned alias (
Using connector groups assigned to an App Proxy cloud service region other than the default region
If you have connectors installed in regions different from your default tenant region, it may be beneficial to change which region your connector group is optimized for to improve performance accessing these applications. To learn more see, Optimize connector groups to use closest Application Proxy cloud service.
If the connector group assigned to the wildcard application uses a different region than your default region, you will need to update the CNAME record to point to a regional specific external URL. Use the following table to determine the relevant URL:
|Connector Assigned Region||External URL|
Here are some considerations you should take into account for wildcard applications.
For wildcard applications, the Internal URL must be formatted as
When you configure an External URL, you must use the following format:
Other positions of the wildcard, multiple wildcards, or other regex strings are not supported and are causing errors.
Excluding applications from the wildcard
You can exclude an application from the wildcard application by
- Publishing the exception application as regular application
- Enabling the wildcard only for specific applications through your DNS settings
Publishing an application as regular application is the preferred method to exclude an application from a wildcard. You should publish the excluded applications before the wildcard applications to ensure that your exceptions are enforced from the beginning. The most specific application will always take precedence – an application published as
budgets.finance.adventure-works.com takes precedence over the application
*.finance.adventure-works.com, which in turn takes precedence over the application
You can also limit the wildcard to only work for specific applications through your DNS management. As a best practice, you should create a CNAME entry that includes a wildcard and matches the format of the external URL you have configured. However, you can instead point specific application URLs to the wildcards. For example, instead of
travel.adventure-works.com individually to
If you use this option, you also need another CNAME entry for the value
AppId.domain, for example,
00000000-1a11-22b2-c333-444d4d4dd444.adventure-works.com, also pointing to the same location. You can find the AppId on the application properties page of the wildcard application:
Setting the homepage URL for the MyApps panel
The wildcard application is represented with just one tile in the MyApps panel. By default this tile is hidden. To show the tile and have users land on a specific page:
- Follow the guidelines for setting a homepage URL.
- Set Show Application to true on the application properties page.
Kerberos constrained delegation
For applications using kerberos constrained delegation (KCD) as the SSO method, the SPN listed for the SSO method may also need a wildcard. For example, the SPN could be:
HTTP/*.adventure-works.com. You still need to have the individual SPNs configured on your backend servers (for example,
HTTP/expenses.adventure-works.com and HTTP/travel.adventure-works.com).
Scenario 1: General wildcard application
In this scenario, you have three different applications you want to publish:
All three applications:
- Are used by all your users
- Use Integrated Windows Authentication
- Have the same properties
You can publish the wildcard application using the steps outlined in Publish applications using Azure AD Application Proxy. This scenario assumes:
- A tenant with the following ID:
- A verified domain called
adventure-works.comhas been configured.
- A CNAME entry that points
000aa000-11b1-2ccc-d333-4444eee4444e.tenant.runtime.msappproxy.nethas been created.
Following the documented steps, you create a new Application Proxy application in your tenant. In this example, the wildcard is in the following fields:
Internal Application SPN:
By publishing the wildcard application, you can now access your three applications by navigating to the URLs you are used to (for example,
The configuration implements the following structure:
|Blue||Applications explicitly published and visible in the Azure portal.|
|Gray||Applications you can accessible through the parent application.|
Scenario 2: General wildcard application with exception
In this scenario, you have in addition to the three general applications another application,
finance.adventure-works.com, which should only be accessible by Finance division. With the current application structure, your finance application would be accessible through the wildcard application and by all employees. To change this, you exclude your application from your wildcard by configuring Finance as a separate application with more restrictive permissions.
You need to make sure that a CNAME records exist that points
finance.adventure-works.com to the application specific endpoint, specified on the Application Proxy page for the application. For this scenario,
finance.adventure-works.com points to
Following the documented steps, this scenario requires the following settings:
In the Internal URL, you set finance instead of a wildcard.
In the External URL, you set finance instead of a wildcard.
Internal Application SPN you set finance instead of a wildcard.
This configuration implements the following scenario:
finance.adventure-works.com is a more specific URL than
*.adventure-works.com, it takes precedence. Users navigating to
finance.adventure-works.com have the experience specified in the Finance Resources application. In this case, only finance employees are able to access
If you have multiple applications published for finance and you have
finance.adventure-works.com as a verified domain, you could publish another wildcard application
*.finance.adventure-works.com. Because this is more specific than the generic
*.adventure-works.com, it takes precedence if a user accesses an application in the finance domain.
- To learn more about Custom domains, see Working with custom domains in Azure AD Application Proxy.
- To learn more about Publishing applications, see Publish applications using Azure AD Application Proxy