Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.47 KB

usage.md

File metadata and controls

36 lines (23 loc) · 1.47 KB

Use PowerDataOps Module

Once PowerDataOps module installation is done, you need to load module before use it.

Load module

Import-Module PowerDataOps -DisableNameChecking

Adding parameter -DisableNameChecking hide unapproved verbs warning. 2 verbs are actually not approved but used in this module : ForEach and Upsert

New-XrmClient

This cmdlet initialize a CrmServiceClient object to interact with Microsoft Dataverse. You need to provide a connection string -ConnectionString

New-XrmClient -ConnectionString "AuthType=ClientSecret;url=https://contosotest.crm.dynamics.com;ClientId={AppId};ClientSecret={ClientSecret}"

New-XrmClient command will try to run Connect-XrmAdmin automatically.

Connect-XrmAdmin

This cmdlet authenticate admin user in order to manage environments with Microsoft.PowerApps.Administration.PowerShell module. Parameters are the same as Add-PowerAppsAccount

Connect-XrmAdmin -AuthType Office365 -UserName "user@contoso.fake" -Password "MyPass123"

Next steps