{"id":256,"date":"2023-06-19T00:00:53","date_gmt":"2023-06-19T07:00:53","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/powerplatform\/?p=256"},"modified":"2023-07-02T08:06:46","modified_gmt":"2023-07-02T15:06:46","slug":"power-platform-developer-tools-may-update","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powerplatform\/power-platform-developer-tools-may-update\/","title":{"rendered":"Power Platform Developer Tools May Update"},"content":{"rendered":"<p>We are delighted to announce the availability of the May Update for the Power Platform Developer tools. If you are using the stand-alone command line on your MacOS, Linux, and Windows machine, you can now just do <strong><em><code>dotnet tool update -g Microsoft.PowerApps.CLI.Tool<\/code><\/em><\/strong> and it will update for you. The changes will also be available in the Visual Studio Code Extension and GitHub Actions and Azure DevOps tools as well.<\/p>\n<h2>What&#8217;s new<\/h2>\n<p>We have a few new things that we have provided in this release.<\/p>\n<h2>Creating Service Principal for CI\/CD<\/h2>\n<p>In the past if you wanted to create a SPN for running your CI\/CD pipeline you had to go to and use a <a href=\"https:\/\/pabuildtools.blob.core.windows.net\/spn-docs-4133a3fe\/New-CrmServicePrincipal.ps1\">PowerShell script<\/a> provided on <a href=\"https:\/\/learn.microsoft.com\/en-us\/power-platform\/alm\/devops-build-tools#configure-service-connections-using-a-service-principal\">MSLearn<\/a> or go to the Azure Portal to create the App registration and then go to the Power Platform Admin Center and add the service principal to your environment. Now you can do the following: First make sure you are authenticated to the right environment using the right credentials:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-114635.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-114635.png\" alt=\"Image Screenshot 2023 06 16 114635\" width=\"1187\" height=\"312\" class=\"alignnone size-full wp-image-258\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-114635.png 1187w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-114635-300x79.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-114635-1024x269.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-114635-768x202.png 768w\" sizes=\"(max-width: 1187px) 100vw, 1187px\" \/><\/a><\/p>\n<p>From there use the create service principal command to create the Application registration.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-115003.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-115003.png\" alt=\"Image Screenshot 2023 06 16 115003\" width=\"1810\" height=\"958\" class=\"alignnone size-full wp-image-257\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-115003.png 1810w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-115003-300x159.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-115003-1024x542.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-115003-768x406.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-115003-1536x813.png 1536w\" sizes=\"(max-width: 1810px) 100vw, 1810px\" \/><\/a><\/p>\n<p>you will still need to go and add the service principal for your target environment<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-134826.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-134826-1024x501.png\" alt=\"Image Screenshot 2023 06 16 134826\" width=\"640\" height=\"313\" class=\"alignnone size-large wp-image-272\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-134826-1024x501.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-134826-300x147.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-134826-768x376.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-134826.png 1403w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<h2>Launching Admin portal and Maker portal<\/h2>\n<p><strong><em><code>pac tool<\/code><\/em><\/strong> command has two new options and they are : 1) pac tool admin: To launch Power Platform Admin Center 2) pac tool maker: To launch Power Platform Maker Portal<\/p>\n<p>Both these commands will try to launch with the Auth profile for Power Platform CLI, but if your active browser session is running with a different credentials, you might see the following error message:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-135257.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-135257-1024x406.png\" alt=\"Image Screenshot 2023 06 16 135257\" width=\"640\" height=\"254\" class=\"alignnone size-large wp-image-273\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-135257-1024x406.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-135257-300x119.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-135257-768x304.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-135257.png 1265w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<h2>Preview of copilot capability for fetchxml<\/h2>\n<p>When ChatGPT first came out, we had quite a few folks using it for writing up fetchxml queries, now remember ChatGPT is trained on a Generic model, so you may not able copy paste the output from ChatGPT directly but we now offer you a tool to clean up the output from ChatGPT and use it against your instance 1) First let start with prompt in ChatGPT asking it to configure a fetchxml query <a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-5.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-5-1024x940.png\" alt=\"Image MicrosoftTeams image 5\" width=\"640\" height=\"588\" class=\"alignnone size-large wp-image-261\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-5-1024x940.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-5-300x275.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-5-768x705.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-5-1536x1410.png 1536w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-5.png 1967w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>2) copy and paste the output from ChatGPT into an input file (in this case loan.xml since we are querying a loan entity in Dataverse)<\/p>\n<p>3) Now use <strong><em><code>pac copilot<\/code><\/em><\/strong> command to create the cleaned-up version of the ChatGPT output that work against your dataverse instance <a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-6.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-6.png\" alt=\"Image MicrosoftTeams image 6\" width=\"698\" height=\"23\" class=\"alignnone size-full wp-image-260\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-6.png 698w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-6-300x10.png 300w\" sizes=\"(max-width: 698px) 100vw, 698px\" \/><\/a><\/p>\n<p>4) Using the loan.out file from the copilot command we can use it as an input for the <strong><em><code>pac org fetch<\/code><\/em><\/strong> command<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-7.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-7.png\" alt=\"Image MicrosoftTeams image 7\" width=\"778\" height=\"123\" class=\"alignnone size-full wp-image-259\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-7.png 778w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-7-300x47.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/MicrosoftTeams-image-7-768x121.png 768w\" sizes=\"(max-width: 778px) 100vw, 778px\" \/><\/a><\/p>\n<h2>Catalog update command<\/h2>\n<p>In this month&#8217;s version of the Power Platform CLI, you can update the settings of your catalog using the <strong><em><code>pac catalog update<\/code><\/em><\/strong> command. It takes the parameter of &#8211;path as in the path to settings file, which the command will parse and update the catalog settings<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-141420.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-141420-1024x263.png\" alt=\"Image Screenshot 2023 06 16 141420\" width=\"640\" height=\"164\" class=\"alignnone size-large wp-image-286\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-141420-1024x263.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-141420-300x77.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-141420-768x197.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/06\/Screenshot-2023-06-16-141420.png 1427w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Remember the catalog command is still <strong><em>Public Preview<\/em><\/strong><\/p>\n<h2>Additional admin commands<\/h2>\n<p><strong><em>New Command<\/em><\/strong> <strong><em><code>pac admin set-backup-retention-period<\/code><\/em><\/strong> this command will take the back and add the retention period is provided in days. The valid values are 7,14,21,28<\/p>\n<p><strong><em>New Parameter<\/em><\/strong> <strong><em><code>pac admin restore --skip-audit-data<\/code><\/em><\/strong> and <strong><em><code>pac admin copy  --skip-audit-data<\/code><\/em><\/strong> this will allow copy and restore environments and you will have the option to skip the audit data<\/p>\n<p>We have also made fixes to existing commands like added a wait and environment selection parameter for <code>pac pipelines<\/code> command as well and some minor fixes to the <code>pac solution unpack<\/code> command especially with canvas apps.<\/p>\n<p>I would encourage you all to try it out and provide us with any feedback you have at <a href=\"&#109;a&#105;l&#116;o&#x3a;I&#x53;&#86;&#x46;&#101;&#x65;&#100;&#x62;&#97;&#x63;&#107;&#x40;&#77;&#x69;&#99;&#x72;&#111;&#x73;&#111;&#x66;&#116;&#x2e;&#99;&#x6f;&#109;\">I&#x53;&#86;&#x46;&#101;&#x65;&#100;&#x62;&#97;&#x63;&#107;&#x40;&#77;&#x69;&#99;&#x72;&#111;&#x73;&#111;&#x66;&#116;&#x2e;&#99;&#x6f;&#109;<\/a> or <a href=\"https:\/\/powerusers.microsoft.com\/t5\/Power-Apps-Pro-Dev-ISV\/bd-p\/pa_component_framework\">The PowerUsers community<\/a>. Please raise issues at the following location in GitHub <a href=\"https:\/\/aka.ms\/powerplatform-vscode\">https:\/\/aka.ms\/powerplatform-vscode<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are delighted to announce the availability of the May Update for the Power Platform Developer tools. If you are using the stand-alone command line on your MacOS, Linux, and Windows machine, you can now just do dotnet tool update -g Microsoft.PowerApps.CLI.Tool and it will update for you. The changes will also be available in [&hellip;]<\/p>\n","protected":false},"author":116092,"featured_media":310,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[24,15,2,10,11,28],"class_list":["post-256","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powerplatform","tag-alm","tag-lowcoderev","tag-powerapps","tag-pcf","tag-cli","tag-power-platform-developer"],"acf":[],"blog_post_summary":"<p>We are delighted to announce the availability of the May Update for the Power Platform Developer tools. If you are using the stand-alone command line on your MacOS, Linux, and Windows machine, you can now just do dotnet tool update -g Microsoft.PowerApps.CLI.Tool and it will update for you. The changes will also be available in [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/posts\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/users\/116092"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/comments?post=256"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/posts\/256\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/media\/310"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/media?parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/categories?post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/tags?post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}