New-CertKitAppProxyIdentity

1.4

This script configures everything CertKit needs to deploy certificates to Microsoft Entra Application Proxy applications, following least privilege. It supports two authentication methods.

Client secret authentication (default):
- A dedicated app registration and service principal for CertKit.
- A client secret, which is copied to the clipboard and never displayed on
This script configures everything CertKit needs to deploy certificates to Microsoft Entra Application Proxy applications, following least privilege. It supports two authentication methods.

Client secret authentication (default):
- A dedicated app registration and service principal for CertKit.
- A client secret, which is copied to the clipboard and never displayed on screen.

Managed identity authentication (-ManagedIdentityId):
- Uses an existing user-assigned or system-assigned managed identity attached to the server running the CertKit agent. The script doesn't create the managed identity, which is an Azure resource.

Both methods:
- A custom Entra role that can only read Application Proxy settings and update the Application Proxy SSL certificate.
- The read-only Microsoft Graph application permission Application.Read.All, used by CertKit to find App Proxy applications.
- A tenant-wide assignment of the custom role to the CertKit identity, made directly or through Privileged Identity Management (PIM).

The script is safe to run more than once. Existing objects with the same names are reused, and existing role and permission assignments are not duplicated. With client secret authentication, a new client secret is created on every run. Use -RemoveExistingSecrets to remove older client secrets after the new one is created.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name New-CertKitAppProxyIdentity

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

Copyright (C) 2026 Richard M. Hicks Consulting, Inc. All Rights Reserved.

Package Details

FileList

Version History

Version Downloads Last updated
1.4 (current version) 9 11/24/2026
1.3 12 11/14/2026
1.2 10 11/14/2026
1.1 9 11/14/2026