Azure Client ID and Client Secret Configuration
The Attach2Dynamics Scheduler Tool uses an Azure application to authenticate with the Dataverse environment. The Application (Client) ID and Client Secret are required in the command-line arguments.
The credentials required depend on whether you are using the SharePoint Connector or Azure Blob Storage.
If You Are Using the SharePoint Connector
If you have already configured and authenticated the SharePoint Connector, you can reuse the existing Application (Client) ID and Client Secret for the Attach2Dynamics Scheduler Tool.
There is no need to create a new Azure application or generate separate credentials.
Retrieve the existing Application (Client) ID and Client Secret from the SharePoint Connector configuration.
Use the same credentials in the Scheduler Tool configuration.
If the existing Client Secret has expired, generate a new Client Secret for the same Azure application.
Update the new Client Secret in the SharePoint Connector configuration and authenticate the connector again.
Use the updated Client Secret in the Scheduler Tool configuration.
If You Are Using Azure Blob Storage
If you are using Azure Blob Storage, create a new Azure application registration and generate the required Application (Client) ID and Client Secret for authentication.
Refer to the following guide:
How to Create an Azure Active Directory App
After creating the application registration:
Open the registered application in Microsoft Entra ID.
Copy the Application (Client) ID.
Navigate to Certificates & secrets.
Create a new Client Secret.
Copy the Client Secret Value and store it securely.
Configure the required API permissions and grant admin consent, as applicable.
Add an Application User in Dataverse
An Application User must be added to the target Dataverse environment for the Azure application used by the Scheduler Tool, regardless of whether you are using the SharePoint Connector or Azure Blob Storage. Ensure that the Application User is assigned the required security role and permissions to access the Dataverse environment.
If the Application User is already configured with the required role, you do not need to add it again. Otherwise, follow the steps below to add it.
Open the Power Platform Admin Center.
Select the target Dataverse environment.

Navigate to Settings.
Select Users + Permissions → Application users.
Select Add an app user.

Select the Azure application registration created earlier.

Assign the required security role. Use System Administrator if required by your deployment.
Verify the application and environment, then select Create.
Ensure that the Application User exists in the correct environment and has the required permissions before running the scheduled task.
Use the Application Credentials in Task Scheduler
Provide the appropriate Application (Client) ID and Client Secret in the command-line arguments.
Command Format:
Replace the placeholders with the actual credentials from the SharePoint Connector configuration or the Azure application registration used for Azure Blob Storage.
Last updated
Was this helpful?