Skip to content

Contribute ImportEntraIDApplicationProxy-SingleApp.ps1 - #15

Open
matsimon wants to merge 6 commits into
simple-acme:mainfrom
matsimon:main
Open

Contribute ImportEntraIDApplicationProxy-SingleApp.ps1#15
matsimon wants to merge 6 commits into
simple-acme:mainfrom
matsimon:main

Conversation

@matsimon

Copy link
Copy Markdown

Hi there, really appreciate the work of all those who worked on win-acme and now simple-acme.

Where I'm coming from

I was considering ImportAzureADApplicationProxy.ps1 as a means of automating several app registrations in a tenant that has not only several of these but with various domains so the current method of this script is likely to reach its limits (having multiple Wildcards). And also in this situation I actually would not want to have one single certificate for all proxied applications.

What this tries to attempt

We can authenticate with client ID and client secret - like the Azure DNS validation plugin already supports and install specific certificates for various proxied applications this way.

I am actually considering using the same (though longer) parameter names as used by the Azure DNS plugin such as azuretenantid instead of tenantid.

Current state of the PR

This is likely not yet good enough for an upstream contribution and will need some additional testing. A quick-and-dirty variant has been tested in a PoC. Looking forward to your feedback.

…cript

Use ImportAzureADApplicationProxy.ps1 as startin point for a updated variant that allows updating a single application.
Switched to ClientId and ClientSecret references, start replacing
authentication to not depend on the ClientId of Microsoft Azure PowerShell.
TenantId got forgotten previously. It's pretty much mandatory with custom app registrations.
… checking

Powershell 5 is unfortunately not reliable in many case for the use
with Microsoft.Graph modules thus force usage of pwsh.exe.

Add more granular checks for the required Cmdlets so that we don't tell
users to install the full Microsoft.Graph(.Beta) module collection
Finally switch over to targeting specific app registrations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant