AJ ZAFAR

Architecting intelligence. Delivering impact.

Development & Code Apps3 min read

Power Platform developer tools: the November refresh

Deployment settings for connection references and environment variables reach GA, plus new pac CLI commands and fixes. What changes for ALM pipelines.

Azure DevOps pipeline with the Power Platform Import Solution task, Use deployment settings file ticked and a deployment settings JSON path entered

Yesterday (15 December) the Power Apps blog published the November refresh of the Power Platform developer tools. It is a modest list on paper, but one item matters a lot to anyone running proper ALM: deployment settings for connection references and environment variables are now generally available.

That has been one of the awkward gaps in automated solution deployments, and I’m glad to see it reach GA.

What was announced

From the post:

  • Deployment settings are GA. Support for connection references and environment variables in deployment settings, first announced in public preview in August, is now generally available.
  • Login fixes. Power Platform CLI 1.10.4 fixes interactive login on Linux and macOS. Support for WSL and GitHub Codespaces, announced at Ignite, is in preview.
  • Canvas pack fix. The “non recoverable error” some people hit when packing canvas apps is fixed. Canvas pack and unpack remain in preview.
  • New solution commands. pac solution delete --solution-name deletes a solution from the environment, and pac solution online-version sets a solution’s version after import, as a fallback when it wasn’t set beforehand.
  • One environment parameter. pac admin commands now take --environment, which accepts either the environment URL or ID. The older --url and --environmentid parameters are deprecated.
  • Safer unpacking. pac solution unpack no longer deletes the solution zip by default. If you want the old behaviour, there is an --AllowDeletes flag.

The CLI is available standalone or through the Power Platform Tools extension for Visual Studio Code, and feedback goes to ISVFeedback@Microsoft.com.

What it means for organisations

Deployment settings remove a manual step. When you import a solution containing flows, the connection references need real connections and the environment variables need values for the target environment. Without automation, someone fixes these up by hand after every deployment, which defeats the point of a pipeline.

With deployment settings you generate a JSON file from the solution using pac solution create-settings. It lists each environment variable (schema name and value) and each connection reference (logical name, connection ID and connector ID). You fill in the values per environment, keep the file in source control, and pass it to the import step.

Terminal running pac solution create-settings with a solution zip and settings file name, returning Deployment settings file created
Generating a deployment settings file from a solution zip.Image: Microsoft Learn (CC BY 4.0)

In Azure DevOps, the Power Platform Build Tools import task has a Use deployment settings file option that points at that JSON.

Azure DevOps pipeline editor showing the Power Platform Import Solution task with Use deployment settings file ticked and the deployment settings file path filled in
Pointing the Build Tools import task at the settings file.Image: Microsoft Learn (CC BY 4.0)

Connections still need to exist. The settings file references connection IDs; it doesn’t create connections. Someone, ideally a service account rather than a person who might leave, still has to create the connections in each target environment once. Agree who owns those.

Treat the files as configuration. Environment variable values may include URLs, site names or IDs that differ between dev, test and production. Keep one file per environment and review changes like code. Don’t put secrets in them.

Check scripts that use pac admin. The --url and --environmentid parameters are deprecated, not removed, but it is a good moment to switch to --environment before something breaks.

The unpack change is a quiet improvement. Losing the zip during unpack has caught people out in scripts. If any of your pipelines relied on the old deletion, add --AllowDeletes.

What I would do now

↑↓ navigateEnter openEsc close