Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Set-EntraBetaApplicationProxyApplication
The Set-EntraBetaApplicationProxyApplication allows you to modify and set configurations for an application in Microsoft Entra ID configured to use ApplicationProxy.
Syntax
Default (Default)
Set-EntraBetaApplicationProxyApplication
-ApplicationId <String>
[-ExternalUrl <String>]
[-InternalUrl <String>]
[-ExternalAuthenticationType <ExternalAuthenticationTypeEnum>]
[-IsTranslateHostHeaderEnabled <Boolean>]
[-IsHttpOnlyCookieEnabled <Boolean>]
[-IsSecureCookieEnabled <Boolean>]
[-IsPersistentCookieEnabled <Boolean>]
[-IsTranslateLinksInBodyEnabled <Boolean>]
[-ApplicationServerTimeout <ApplicationServerTimeoutEnum>]
[-ConnectorGroupId <String>]
[<CommonParameters>]
Description
The Set-EntraBetaApplicationProxyApplication allows you to modify and set other settings for an application in Microsoft Entra ID configured to use ApplicationProxy. Specify ApplicationId parameter to update application configured for application proxy.
Examples
Example 1: Update ExternalUrl, InternalUrl, ExternalAuthenticationType, and IsTranslateHostHeaderEnabled parameter
Connect-Entra -Scopes 'Directory.ReadWrite.All'
$params = @{
ApplicationId = 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb'
ExternalUrl = 'https://finance-awcycles.msappproxy.net/'
InternalUrl = 'http://finance/'
ExternalAuthenticationType = 'AadPreAuthentication'
IsTranslateHostHeaderEnabled = $false
}
Set-EntraBetaApplicationProxyApplication @params
ObjectId : aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
externalAuthenticationType : aadPreAuthentication
applicationServerTimeout : Long
externalUrl : https://testp-m365x99297270.msappproxy.net/
internalUrl : https://testp.com/
isTranslateHostHeaderEnabled : False
isTranslateLinksInBodyEnabled : False
isOnPremPublishingEnabled : True
verifiedCustomDomainCertificatesMetadata :
verifiedCustomDomainKeyCredential :
verifiedCustomDomainPasswordCredential :
singleSignOnSettings : @{singleSignOnMode=none; kerberosSignOnSettings=}
isHttpOnlyCookieEnabled : False
isSecureCookieEnabled : False
isPersistentCookieEnabled : False
This example update ExternalUrl, InternalUrl, ExternalAuthenticationType, and IsTranslateHostHeaderEnabled parameter.
-ApplicationIdparameter specifies the application ID.-ExternalUrlparameter specifies the URL that use to access the application from outside user private network.-InternalUrlparameter specifies the URL that use to access the application from inside user private network.-ExternalAuthenticationTypeparameter specifies the external authentication type.-IsTranslateHostHeaderEnabledparameter specifies the translates urls in headers.
Example 2: Update IsHttpOnlyCookieEnabled, IsSecureCookieEnabled, and IsPersistentCookieEnabled parameter
Connect-Entra -Scopes 'Directory.ReadWrite.All'
$params = @{
ApplicationId = 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb'
ExternalUrl = 'https://finance-awcycles.msappproxy.net/'
InternalUrl = 'http://finance/'
ExternalAuthenticationType = 'AadPreAuthentication'
IsTranslateHostHeaderEnabled = $false
IsHttpOnlyCookieEnabled = $false
IsSecureCookieEnabled = $false
IsPersistentCookieEnabled = $false
}
Set-EntraBetaApplicationProxyApplication @params
ObjectId : aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
externalAuthenticationType : aadPreAuthentication
applicationServerTimeout : Long
externalUrl : https://testp-contoso.msappproxy.net/
internalUrl : https://testp.com/
isTranslateHostHeaderEnabled : False
isTranslateLinksInBodyEnabled : False
isOnPremPublishingEnabled : True
verifiedCustomDomainCertificatesMetadata :
verifiedCustomDomainKeyCredential :
verifiedCustomDomainPasswordCredential :
singleSignOnSettings : @{singleSignOnMode=none; kerberosSignOnSettings=}
isHttpOnlyCookieEnabled : False
isSecureCookieEnabled : False
isPersistentCookieEnabled : False
This example update IsHttpOnlyCookieEnabled, IsSecureCookieEnabled, and IsPersistentCookieEnabled parameter.
-ApplicationIdparameter specifies the application ID.-ExternalUrlparameter specifies the URL that use to access the application from outside user private network.-InternalUrlparameter specifies the URL that use to access the application from inside user private network.-ExternalAuthenticationTypeparameter specifies the external authentication type.-IsHttpOnlyCookieEnabledparameter specifies the application proxy to include the HTTPOnly flag in HTTP response headers.-IsSecureCookieEnabledparameter specifies the application proxy to include the Secure flag in HTTP response headers.-IsTranslateHostHeaderEnabledparameter specifies the translates urls in headers.-IsPersistentCookieEnabledparameter specifies application proxy to set its access cookies to not expire when the web browser is closed.
Example 3: Update IsTranslateLinksInBodyEnabled, ApplicationServerTimeout, and ConnectorGroupId parameter
Connect-Entra -Scopes 'Directory.ReadWrite.All'
$params = @{
ApplicationId = 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb'
ExternalUrl = 'https://finance-awcycles.msappproxy.net/'
InternalUrl = 'http://finance/'
ExternalAuthenticationType = 'AadPreAuthentication'
IsTranslateHostHeaderEnabled = $false
ApplicationServerTimeout = Long
ConnectorGroupId = 'bbbbbbbb-1111-2222-3333-cccccccccccc'
}
Set-EntraBetaApplicationProxyApplication @params
ObjectId : aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
externalAuthenticationType : aadPreAuthentication
applicationServerTimeout : Long
externalUrl : https://testp-contoso.msappproxy.net/
internalUrl : https://testp.com/
isTranslateHostHeaderEnabled : False
isTranslateLinksInBodyEnabled : False
isOnPremPublishingEnabled : True
verifiedCustomDomainCertificatesMetadata :
verifiedCustomDomainKeyCredential :
verifiedCustomDomainPasswordCredential :
singleSignOnSettings : @{singleSignOnMode=none; kerberosSignOnSettings=}
isHttpOnlyCookieEnabled : False
isSecureCookieEnabled : False
isPersistentCookieEnabled : False
This example update IsTranslateLinksInBodyEnabled, ApplicationServerTimeout, and ConnectorGroupId parameter.
-ApplicationIdparameter specifies the application ID.-ExternalUrlparameter specifies the URL that use to access the application from outside user private network.-InternalUrlparameter specifies the URL that use to access the application from inside user private network.-ConnectorGroupIdparameter specifies the Connector group ID that assigned to this application.-ApplicationServerTimeoutparameter specifies the application server timeout to set.-ExternalAuthenticationTypeparameter specifies the external authentication type.-IsTranslateHostHeaderEnabledparameter specifies the translates urls in headers.
Parameters
-ApplicationId
Specifies a unique application ID of an application in Microsoft Entra ID.
This objectid can be found using the Get-EntraBetaApplication command.
Parameter properties
| Type: | System.String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | ObjectId |
Parameter sets
-ApplicationServerTimeout
Specifies the backend server timeout type. Set this value to Long only if your application is slow to authenticate and connect.
Parameter properties
| Type: | ApplicationServerTimeoutEnum |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-ConnectorGroupId
Provide the ID of the Connector group you would like assigned to this application.
You can find this value by using the Get-EntraBetaApplicationProxyConnectorGroup command.
Connectors process the remote access to your application, and connector groups help you organize connectors and apps by region, network, or purpose.
If you don't have any connector groups created yet, your app is assigned to Default.
Parameter properties
| Type: | System.String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-ExternalAuthenticationType
How Application Proxy verifies users before giving them access to your application. AadPreAuth: Application Proxy redirects users to sign in with Microsoft Entra ID, which authenticates their permissions for the directory and application. We recommend keeping this option as the default, so that you can take advantage of Microsoft Entra ID security features like conditional access and multifactor authentication. Pass through: Users don't have to authenticate against Microsoft Entra ID to access the application. You can still set up authentication requirements on the backend.
Parameter properties
| Type: | ExternalAuthenticationTypeEnum |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-ExternalUrl
The address your users go to in order to access the app from outside your network.
Parameter properties
| Type: | System.String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-InternalUrl
The URL that you use to access the application from inside your private network. You can provide a specific path on the backend server to publish, while the rest of the server is unpublished. In this way, you can publish different sites on the same server as different apps, and give each one its own name and access rules. If you publish a path, make sure that it includes all the necessary images, scripts, and style sheets for your application.
Parameter properties
| Type: | System.String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-IsHttpOnlyCookieEnabled
Allows application proxy to include the HTTPOnly flag in HTTP response headers. This flag provides extra security benefits, for example, it prevents client-side scripting (CSS) from copying or modifying the cookies.
Parameter properties
| Type: | System.Boolean |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-IsPersistentCookieEnabled
Allows application proxy to set its access cookies to not expire when the web browser is closed. The persistence lasts until the access token expires, or until the user manually deletes the persistent cookies.
Parameter properties
| Type: | System.Boolean |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-IsSecureCookieEnabled
Allows application proxy to include the Secure flag in HTTP response headers. Secure Cookies enhances security by transmitting cookies over a "TLS" secured channel such as HTTPS. TLS prevents cookie transmission in clear text.
Parameter properties
| Type: | System.Boolean |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-IsTranslateHostHeaderEnabled
If set to true, translates urls in headers. Keep this value true unless your application required the original host header in the authentication request.
Parameter properties
| Type: | System.Boolean |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-IsTranslateLinksInBodyEnabled
If set to true, translates urls in body. Keep this value as No unless you have to hardcoded HTML links to other on-premises applications, and don't use custom domains.
Parameter properties
| Type: | System.Boolean |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Related Links
Feedback
Was this page helpful?
