Update a service-principal Dataverse connection
cs_update_connectionRotate the client secret for a service-principal Dataverse connection to update app registration credentials. Requires confirm to apply changes, otherwise performs a dry run.
Instructions
Rotate the app registration or secret behind a service-principal Dataverse connection. Runs 'pac connection update' with the active pac auth profile. Mutates a live environment: requires confirm: true (a dry run otherwise).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for pac (for project commands: the solution project folder) | |
| confirm | No | Required to actually perform a change in a live environment. Without it the tool returns a dry run. | |
| profile | No | pac auth profile to run as: the admin account for tenant commands. Defaults to CPS_ADMIN_PROFILE for admin commands and CPS_PAC_PROFILE otherwise, then the active profile. cs_init lists the profiles. | |
| tenantId | Yes | Entra tenant id | |
| background | No | Run in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status. | |
| environment | No | Environment id or URL; default: the environment of the active pac auth profile | |
| clientSecret | Yes | New client secret (masked in logs) (masked in logs and results) | |
| connectionId | Yes | Connection id (cs_list_connections) | |
| applicationId | Yes | App registration (client) id | |
| timeoutSeconds | No | Default 600 |