Skip to content

Two new print statements broke the Azure CLI deployment JSON outputΒ #32549

@rasitha1

Description

@rasitha1

Describe the bug

Looks like this issue introduced two print statements causing the output of a az deployment to no longer be valid JSON.

This only happens when using the --parameters option and a .bicepparam file. Does not happen for --template-file type deployments.

`

> az deployment sub create --parameters .\test.bicepparam --location westus --name test
Bicep CLI is already installed at 'C:\Users\foo\.azure\bin\bicep.exe'. Skipping installation as no specific version was requested.
{
  "id": "/subscriptions/fb0a....

Existing pipelines that piped the output of a az deployment to convertfrom-json now fail because of this.

Related command

az deployment sub create --parameters .\test.bicepparam --location westus --name test

Errors

no errors

Issue script & Debug output

Bicep CLI is already installed at 'C:\Users\foo\.azure\bin\bicep.exe'. Skipping installation as no specific version was requested.
{
  "id": "/subscriptions/fb0a....

Expected behavior

Should not output the print statement:
Bicep CLI is already installed at 'C:\Users\foo\.azure\bin\bicep.exe'. Skipping installation as no specific version was requested.

Environment Summary

azure-cli                         2.81.0

core                              2.81.0
telemetry                          1.1.0

Dependencies:
msal                            1.34.0b1
azure-mgmt-resource               23.3.0

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\foo\.azure'
Extensions directory 'C:\Users\foo\.azure\cliextensions'

Python (Windows) 3.13.9 (tags/v3.13.9:8183fa5, Oct 14 2025, 14:09:13) [MSC v.1944 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure Deploymentsaz deployment/bicep/stack/deployment-scripts/ts/group exportOutputService AttentionThis issue is responsible by Azure service team.Similar-IssuebugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions