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:
- Created a year ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi. It is also working for me.
I would consider it as a work around but still think there is a bug. But that is your call