How to generate Azure application credentials manually
- Open Azure portal and click on Azure Active Directory.
- Select App registrations from the left menu and click on New registration.
- Enter the name of the new application and provide redirect URI as https://localhost
- Open the created application and click on View API permissions.
- Click on Add a permission and grant permission to the created application to read service health and sites data.
- In the Request API permissions window, add permissions to the following,
- Navigate to Office 365 Management APIs ⟶ Application permissions. Select ServiceHealth.Read and click on Add permissions.
- Navigate to SharePoint ⟶ Application permissions. Select Sites.FullControl.All and click on Add permissions.
- Click on Grant admin consent for <your_company>
- Open Certificates & secrets and click on New client secret. Note down the generated client secret.
- Open PowerShell as administrator in the <product folder>/conf. Replace <Your-Company-Name> in the below query and execute. Please note down the certificate password.
\Create-SelfSignedCertificate.ps1 -CommonName "<Your-Company-Name>" -StartDate (Get-Date).ToString("yyyy-MM-dd") -EndDate (Get-Date).AddYears(4).ToString("yyyy-MM-dd")
- Two files, in .cer and .pfx format,will be created at the script location. Upload the .cer file to the azure portal as shown in the below image. The .pfx file will be used in the product later.
- You can view the Application Id in Overview tab.
In SharePoint Manager Plus, use Azure application authentication and enter Application Id, Secret key, complete location of generated .pfx certificate file and certificate password to configure the tenant.
Note: Please provide the complete path of certificate location in the configuration. (e.g) C:\ManageEngine\SharePoint Manager Plus\conf\ZohoCorp.pfx