What are the type of applications that we can register in Azure AD via PowerShell ?

Mano K 21 Reputation points
2020-08-24T12:57:53.037+00:00

Hi Team,
Could you please tell me, what are the type of applications that we can register in Azure AD via PowerShell? We are planning to automate the app registrations so I need to know the type of applications that I need to automate.

As of now, we planned to automate below application types.

  1. Gallery Apps or SAAS based apps with SSO enabled
  2. On-Premises app using App proxy
  3. Non-gallery apps - web API

Please correct me and guide me if I am going in the right direction or not.

Appreciate your comments and guidance.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. soumi-MSFT 11,831 Reputation points Microsoft Employee Moderator
    2020-08-25T12:52:19.5+00:00

    @Mano K , Yes, you can automate the app creation in Azure AD. The simplest way to deploy apps automatically is to use the AppCreation script that you would be able to find with most of our published sample codes for OAuth and OIDC. Now you can pick that code and modify that according to your requirements.

    The main idea that you need to keep in mind is, when you need to register an app, it creates two main objects in AAD, i.e Application Object (Found under App Registration blade) and the registered app's Service Principal Object (can be found under Enterprise Registration Blade). Both the entries would have the same name.

    Now using the AppCreation script it uses powershell cmdlets to create these two objects and configure them as needed.

    The same concept works for both Applications and Web APIs that you plan to protect or register in AAD.

    For SAML apps the steps are little different as for SAML apps you have two available option for configuration:

    Now both these options are used mostly to add SAML applications to Azure AD, be it an already hosted app like Salesforce, ServiceNow etc, or a custom SAML app developed in-house.

    You can also automate the steps of adding a gallery app but to some extent. You can refer to one of my other posts where the customer had similar requirements for SAML apps automation: https://learn.microsoft.com/en-us/answers/questions/22497/create-saml-application-in-azure-ad-via-powershell.html

    Now coming to adding SAML, OAUTH or OIDC apps in ADFS, it totally different from doing it in AAD. Though the concept remains the same, but if you would like to d it with Powershell, cmdlets would change completely.

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.


2 additional answers

Sort by: Most helpful
  1. James Hamil 27,221 Reputation points Microsoft Employee Moderator
    2020-08-24T23:49:08.547+00:00

    Hi, for using App proxy I believe the only thing you can automate is the connector. Here is a good list of samples of things you can automate as well. If you have any questions I can clarify please let me know!


  2. soumi-MSFT 11,831 Reputation points Microsoft Employee Moderator
    2020-08-26T14:04:37.147+00:00

    @Mano K , Also, I would like to say that I had worked up a similar ask (you can find the thread here) some time back and after a lot of glitches, we were able to prepare a full-fledged Automation script using Powershell for App-Registrations (only for OAuth Apps). That customer wrote a blog, which I would really recommend you take a look at.

    Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.