Creating a Service Principal

(optional) If you are using PIM, you will need to enable PIM to perform this procedure.

Open your cloudshell powershell to complete this procedure.

#Step 1 - #Create a new Service Principal
$name = "Allens-FortiSandbox"
$sp = New-AzADServicePrincipal -DisplayName $name


#Step 2 - Export the SP secret (copy and save the password)
$sp.PasswordCredentials.SecretText


#Step 3 - Get the Service Principle ApplicationID for the next step (copy and save)
$name = "Allens-FortiSandbox"
Get-AzADServicePrincipal -DisplayName $name

2 comments

  1. I just like the valuable information you supply to your articles. I will bookmark your blog and test once more right here regularly. I’m quite certain I’ll be informed plenty of new stuff proper here! Good luck for the following!

  2. I simply could not leave your website prior to suggesting that I really enjoyed the usual info a person supply for your visitors? Is going to be again continuously to check up on new posts

Leave a comment

Your email address will not be published. Required fields are marked *