Error while running (az iot ops init) to deploy Azure IoT Operations #28301
Labels
Auto-Assign
Auto assign by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
IoT/CLI
IoT
Service Attention
This issue is responsible by Azure service team.
Describe the bug
When running the initialize command, I get the following error
(InvalidTemplate) Deployment template validation failed: 'The resource 'Microsoft.IoTOperationsMQ/mq/init-c0820-mq-instance/broker/broker/listener/non-tls-listener' at line '1' and column '28621' is defined multiple times in a template. Please see https://aka.ms/arm-syntax-resources for usage details.'.
Code: InvalidTemplate
Message: Deployment template validation failed: 'The resource 'Microsoft.IoTOperationsMQ/mq/init-c0820-mq-instance/broker/broker/listener/non-tls-listener' at line '1' and column '28621' is defined multiple times in a template. Please see https://aka.ms/arm-syntax-resources for usage details.'.
Additional Information:Type: TemplateViolation
Info: {
"lineNumber": 1,
"linePosition": 28621,
"path": "properties.template.resources[19]"
}
Related command
az iot ops init --cluster $arcClusterName -g $resourceGroup --kv-id $keyVaultId --sp-app-id $spnClientID --sp-secret $spnClientSecret --mq-service-type loadBalancer --mq-insecure true --simulate-plc true --only-show-errors
Errors
(InvalidTemplate) Deployment template validation failed: 'The resource 'Microsoft.IoTOperationsMQ/mq/init-c0820-mq-instance/broker/broker/listener/non-tls-listener' at line '1' and column '28621' is defined multiple times in a template. Please see https://aka.ms/arm-syntax-resources for usage details.'.
Code: InvalidTemplate
Message: Deployment template validation failed: 'The resource 'Microsoft.IoTOperationsMQ/mq/init-c0820-mq-instance/broker/broker/listener/non-tls-listener' at line '1' and column '28621' is defined multiple times in a template. Please see https://aka.ms/arm-syntax-resources for usage details.'.
Additional Information:Type: TemplateViolation
Info: {
"lineNumber": 1,
"linePosition": 28621,
"path": "properties.template.resources[19]"
}
Issue script & Debug output
(InvalidTemplate) Deployment template validation failed: 'The resource 'Microsoft.IoTOperationsMQ/mq/init-c0820-mq-instance/broker/broker/listener/non-tls-listener' at line '1' and column '28621' is defined multiple times in a template. Please see https://aka.ms/arm-syntax-resources for usage details.'.
Code: InvalidTemplate
Message: Deployment template validation failed: 'The resource 'Microsoft.IoTOperationsMQ/mq/init-c0820-mq-instance/broker/broker/listener/non-tls-listener' at line '1' and column '28621' is defined multiple times in a template. Please see https://aka.ms/arm-syntax-resources for usage details.'.
Additional Information:Type: TemplateViolation
Info: {
"lineNumber": 1,
"linePosition": 28621,
"path": "properties.template.resources[19]"
}
Expected behavior
No errors should happen
Environment Summary
azure-cli 2.56.0
core 2.56.0
telemetry 1.1.0
Extensions:
account 0.2.5
appservice-kube 0.2.2
arcdata 1.5.5
azure-iot-ops 0.1.0b1
bastion 0.3.0
connectedk8s 1.4.0
connectedmachine 0.7.0
connectedvmware 0.2.1
customlocation 0.1.3
eventgrid 1.0.0b1
k8s-configuration 1.7.0
k8s-extension 1.4.5
kusto 0.5.0
monitor-control-service 0.3.1
resource-graph 2.1.0
ssh 2.0.1
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Additional context
No response
The text was updated successfully, but these errors were encountered: