Skip to content

[ARM] Invalid JSON format for az deployment group create  #28965

@TsuyoshiUshio

Description

@TsuyoshiUshio

Describe the bug

I deploy bicep templates by following command.

az deployment group create --resource-group $resourceGroupName -o json --template-file ..\BicepTemplates\resources.bicep --parameters

However, I received Invalid JSON format. For sharing part of it. That prevent the Json Parsing.

image

Related command

az deployment group create --resource-group $resourceGroupName -o json --template-file ..\BicepTemplates\resources.bicep --parameters

Errors

Not the error message. The result object the following returns invalid JSON.

    $result = az deployment group create --resource-group $resourceGroupName -o json --template-file ..\BicepTemplates\resources.bicep --parameters `
        app_name="$appName" `
        location="$location" `
        function_plan_os="$functionPlanOS" `
        runtime_version="`"$runtimeVersion`"" `
        sku="$sku" `
        network="$network"

Issue script & Debug output

I'm MSFT guy, reach out to me, then I'll give whole information. tsushi.

Expected behavior

I expect the result should be able to parse as Json.

Environment Summary

az --version
azure-cli 2.59.0 *

core 2.59.0 *
telemetry 1.1.0

Extensions:
application-insights 0.1.14
azure-devops 0.26.0

Dependencies:
msal 1.27.0
azure-mgmt-resource 23.1.0b2

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

Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botAzure Deploymentsaz deployment/bicep/stack/deployment-scripts/ts/group exportService AttentionThis issue is responsible by Azure service team.act-codegen-extensibility-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions