Creating a service principal application using PowerShell 2025

Get Form
Creating a service principal application using PowerShell Preview on Page 1

Here's how it works

01. Edit your form online
Type text, add images, blackout confidential details, add comments, highlights and more.
02. Sign it in a few clicks
Draw your signature, type it, upload its image, or use your mobile device as a signature pad.
03. Share your form with others
Send it via email, link, or fax. You can also download it, export it or print it out.

The best way to edit Creating a service principal application using PowerShell online

Form edit decoration
9.5
Ease of Setup
DocHub User Ratings on G2
9.0
Ease of Use
DocHub User Ratings on G2

With DocHub, making adjustments to your documentation takes only a few simple clicks. Make these fast steps to edit the PDF Creating a service principal application using PowerShell online free of charge:

  1. Sign up and log in to your account. Log in to the editor using your credentials or click on Create free account to examine the tool’s functionality.
  2. Add the Creating a service principal application using PowerShell for redacting. Click on the New Document option above, then drag and drop the sample to the upload area, import it from the cloud, or via a link.
  3. Adjust your document. Make any adjustments needed: insert text and photos to your Creating a service principal application using PowerShell, underline details that matter, erase parts of content and substitute them with new ones, and insert symbols, checkmarks, and areas for filling out.
  4. Finish redacting the form. Save the updated document on your device, export it to the cloud, print it right from the editor, or share it with all the parties involved.

Our editor is very easy to use and efficient. Give it a try now!

be ready to get more

Complete this form in 5 minutes or less

Get form

Got questions?

We have answers to the most popular questions from our customers. If you can't find an answer to your question, please contact us.
Contact us
As specified in the Azure AD built-in roles document, below are the Directory Roles that have permissions to create service principals. Application Administrator. Application Developer. Cloud Application Administrator. Directory Synchronization Accounts. Hybrid Identity Administrator.
To list all SPNs in the Windows domain, you can use the Get-ADServiceAccount cmdlet along with the -Filter parameter. Open PowerShell and run the following command: Get-ADServiceAccount -Filter ServicePrincipalNames -like * | Select-Object -ExpandProperty ServicePrincipalNames.
Create a service principal with the New-AzADServicePrincipal cmdlet. When creating a service principal, you choose the type of sign-in authentication it uses. Beginning with Az PowerShell module version 7. x, New-AzADServicePrincipal no longer assigns the Contributor role to the service principal by default.
Create Service Principal in Azure Portal Create a new application in your AAD. Give it a name. Mark down the Application (client) ID and Directory (tenant) ID. Create a new Client Secret. Go to the resource you want to give the Service Principal permission, at different levels.
Use the az ad sp create-for-rbac Azure CLI reference command to create a service principal. This example doesnt specify a --name parameter, so a name containing a time stamp is automatically created.
be ready to get more

Complete this form in 5 minutes or less

Get form

People also ask

SPNs are registered for built-in accounts automatically. However, when you run a service under a domain user account, you must manually register the SPN for the account you want to use. To create an SPN, you can use the SetSPN command line utility.
Create An App We recommend running apps in external environments, like PowerShell 7, to ensure they are isolated from the rest of the server. To create an app, click Apps \ Apps and then Create New App. You will need to provide a unique name and URL for the app when creating it. All other properties are optional.

Related links