Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM Deployement with Azure CLI failing #23860

Closed
Abhinavgundapaneni opened this issue Sep 13, 2022 · 5 comments
Closed

ARM Deployement with Azure CLI failing #23860

Abhinavgundapaneni opened this issue Sep 13, 2022 · 5 comments
Assignees
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@Abhinavgundapaneni
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az deployment group create

Errors:

{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"NotFound","message":"{\r\n  \"error\": {\r\n    \"code\": \"BadRequest\",\r\n    \"message\": \"\"\r\n  }\r\n}"}]}}

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az deployment group create --name {} --resource-group {} --template-file {} --parameters {} {} {} {}

Expected Behavior

Environment Summary

Windows-10-10.0.22000-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.40.0

Extensions:
application-insights 0.1.16

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group labels Sep 13, 2022
@ghost ghost assigned zhoxing-ms Sep 13, 2022
@ghost ghost added this to the Backlog milestone Sep 13, 2022
@Abhinavgundapaneni
Copy link
Author

This is the deployment json I'm trying to execute.

{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspaceName": {
"type": "string"
},
"LS_SQL_Serverless_OEA": { "type": "string" },
"LS_ADLS_OEA": { "type": "string" },
"LS_HTTP": { "type": "string" }
},
"variables": {
"workspaceId": "[concat('Microsoft.Synapse/workspaces/', parameters('workspaceName'))]"
},
"resources": [
{
"name": "[concat(parameters('workspaceName'), '/DS_HTTP_binary')]",
"type": "Microsoft.Synapse/workspaces/datasets",
"apiVersion": "2019-06-01-preview",
"properties": {
"description": "Retrieves data from an http endpoint.\nThe data can be in any format - the binary dataset allows us to pull any payload without affecting it.",
"linkedServiceName": {
"referenceName": "[parameters('LS_HTTP')]",
"type": "LinkedServiceReference",
"parameters": {
"baseURL": { "value": "@dataset().URL", "type": "Expression" }
}
},
"parameters": { "URL": { "type": "string" } },
"folder": { "name": "OEA_Framework" },
"annotations": [],
"type": "Binary",
"typeProperties": { "location": { "type": "HttpServerLocation" } }
},
"dependsOn": []
}
]
}

@yonzhan
Copy link
Collaborator

yonzhan commented Sep 13, 2022

@zhoxing-ms for awareness

@yonzhan yonzhan added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Sep 13, 2022
@norvegec
Copy link

norvegec commented Sep 13, 2022

The same release in Azure Devops that had worked for us just yesterday today (September, 13nth, 2022) started failing.
The step that fails is Azure Devops task "Azure CLI" (ver. 2). It runs our custom PS-core script and fails in line similar to this:
az deployment sub create -l $loc --template-file $template --parameters @("p1=$p1", "p2=$p2")
where p1 and p2 are ARM template parameters and $p1 and $p2 powershell variables defined and set within that very script.
Comparing logs, I can see that Azure CLI on the machine (Azure agent windows-2019) was bumped from 2.39.0 to 2.40.0.
Does anything changed in the way Azure CLI works with array parameters in Powershell console?

@norvegec
Copy link

Just reproduced this on local dev machine:
Script succeeded on Azure CLI ver. 2.39.0 and after upgrade to 2.40.0 it failed.

I suppose if you follow semver, minor upgrades should not introduce breaking changes like this.

@zhoxing-ms
Copy link
Contributor

zhoxing-ms commented Sep 13, 2022

az deployment sub create -l $loc --template-file $template --parameters @("p1=$p1", "p2=$p2")
where p1 and p2 are ARM template parameters and $p1 and $p2 powershell variables defined and set within that very script.
Comparing logs, I can see that Azure CLI on the machine (Azure agent windows-2019) was bumped from 2.39.0 to 2.40.0.

@Abhinavgundapaneni @norvegec Because it is the same issue as #23797, I will close the duplicate issue first. If you have more to discuss, please focus on #23797

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

4 participants