question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az deployment group create no response

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command az deployment group create

Describe the bug When calling az deployment group create from powershell and the parameters contains >f it $result is null, the output is instead saved in a file called f

To Reproduce

$overrideParameters = @(`
'environmentName=dev',`
'sqladminpassword=test>f',`
'test=random' )

$result = az deployment group create --debug `
            --name "Test" `
            --resource-group "RG-Test" `
            --template-file "C:\Projects\main.json" `
            --parameters $overrideParameters

main.json:

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "environmentName": {
      "type": "string",
      "allowedValues": [
        "dev"
      ],
      "metadata": {
        "description": "Specify the environmentName."
      }
    },
    "sqladminpassword": {
      "type": "securestring"
    },
    "test": {
      "type": "string"
    }
  },  
  "resources": [],
  "outputs": {
    "output1": {
      "type": "string",
      "value": "outputfromarm"
    }
  }
}

Expected behavior output is saved in $result

Environment summary OS:Windows 10 PSVersion 5.1.19041.1682 az version { “azure-cli”: “2.38.0”, “azure-cli-core”: “2.38.0”, “azure-cli-telemetry”: “1.0.6”, “extensions”: { “azure-devops”: “0.25.0” } }

Additional context It is a problem in ARM and also Bicep

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
HenrikSommer-engcommented, Sep 6, 2022

@HenrikSommer-eng can you please try this instead? $overrideParameters = @(‘environmentName=dev’,‘sqladminpassword=“test>f”’,‘test=random’). Its working i tested it.

Hi. It is also working for me.

0reactions
HenrikSommer-engcommented, Sep 6, 2022

I would consider it as a work around but still think there is a bug. But that is your call

Read more comments on GitHub >

github_iconTop Results From Across the Web

az deployment group | Microsoft Learn
Create a deployment at resource group from a local template file, using parameters from an array string.
Read more >
Azure CLI - az deployment group create - Stack Overflow
Its Normal this image is no logger available, When having this type of issue try to create it via the web interface as...
Read more >
Learn how you can use Infrastructure as Code
TLDR; this article covers Infrastructure as Code and exemplifies it using ARM Templates and Azure CLI. This covers all the main parts of...
Read more >
Working with deployment groups in CodeDeploy
Learn how to work with deployment groups in CodeDeploy. The choices you make for a deployment group depend on your choice of compute...
Read more >
Deploying to Azure VM using Deployment Groups
Exercise 1: Creating Deployment Groups and Configuring Release ... Since there is no configuration change required for the build pipeline, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found