CRMQuickDeploy now supports a wider range of connection options to CRM, including client ID/secret and MFA. Below are examples of connection string to use for each scenario.
On-prem with AD
- Integrated security: url=http://yourserver.domain/yourcrmorg
This will connect to CRM using the credentials of the current Visual Studio user. - Non-integrated security, without embedding password: url=http://yourserver.domain/yourcrmorg;username=yourusername
The tool will prompt you to enter a password on the first deployment. - Non-integrated security, with password embedded: url=http://yourserver.domain/yourcrmorg;username=yourusername;password=yourpassword
This mode would be suitable if no one ever look at your screen while you code :).
Client ID and secret
- Without embedding client secret: url=https://yourcrm.crm6.dynamics.com;authtype=ClientSecret;clientid=yourclientid
The tool will prompt you to enter a client secret on the first deployment. - With client secret embedded: url=https://yourcrm.crm6.dynamics.com;authtype=ClientSecret;clientid=yourclientid;clientsecret=yourclientsecret
This mode would be suitable if no one ever look at your screen while you code:).
Office 365 user without MFA
- Without embedding password: url=https://yourcrm.crm6.dynamics.com;AuthType=OAuth;username=user@yourdomain.com;AppId=51f81489-12ee-4a9e-aaae-a2591f45987d;RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97
The SDK’s login form will be shown to prompt you for the password. The AppId and RedirectUri values as seen here are provided by Microsoft and will work. However, you may want to create your own. - With password embedded: url=https://yourcrm.crm6.dynamics.com;AuthType=OAuth;username=user@yourdomain.com;password=userpassword;AppId=51f81489-12ee-4a9e-aaae-a2591f45987d;RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97
This mode would be suitable if no one ever look at your screen while you code :). The AppId and RedirectUri values as seen here are provided by Microsoft and will work. However, you may want to create your own.
Office 365 user with MFA
- url=https://yourcrm.crm6.dynamics.com;AuthType=OAuth;username=user@yourdomain.com;AppId=51f81489-12ee-4a9e-aaae-a2591f45987d;RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97
Do not specify your password in the connection string. The SDK’s login form will be shown to prompt you for the password and the second-factor. The AppId and RedirectUri values as seen here are provided by Microsoft and will work. However, you may want to create your own.
Download CRMQuickDeploy
You can download CRMQuickDeploy from the Visual Studio Marketplace.