Describe the bug
Trying to use the new possibility for using supplemental parameters when used with .bicepparam files according to #27527.
This change is supposed to be part of az cli version 2.54.0.
But running this command in an Azure DevOps pipeline does not seem to work when passing in multiple inline parameters.
Trying to run the following code in an AzureCLI@2 task:
az deployment group create
--name api-deleteme-api
--subscription '62394fa1-c454-4478-944e-3bcadc25b8d1'
--resource-group 'integrationServices-dev'
--template-file 'D:\a\1/drop/api.bicep'
--parameters 'D:\a\1/drop/deleteme-api/azuredeploy.parameters.bicepparam'
--parameters version='v0.45' apiRevision='13' apiManagementServiceName='hofor-api-management-dev'
Having a bicepparam file with the following content
...other parameters
param apiManagementServiceName = '#apiManagementServiceName - override from devops pipeline#'
When running the deployment I get the error:
The Resource 'Microsoft.ApiManagement/service/#apiManagementServiceName - override from devops pipeline#' under resource group 'integrationServices-dev' was not found
Clearly indicating that the parameter value is still the value from the bicepparam file and NOT being overridden by the inline parameter passed to az deployment command.
Is this not how it was supposed to work? - the above code is running in the AzureCLI@2 task with the correct version (2.54.0):

Related command
az deployment group create
--name api-deleteme-api
--subscription '62394fa1-c454-4478-944e-3bcadc25b8d1'
--resource-group 'integrationServices-dev'
--template-file 'D:\a\1/drop/api.bicep'
--parameters 'D:\a\1/drop/deleteme-api/azuredeploy.parameters.bicepparam'
--parameters version='v0.45' apiRevision='13' apiManagementServiceName='hofor-api-management-dev'
Errors
The Resource 'Microsoft.ApiManagement/service/#apiManagementServiceName - override from devops pipeline#' under resource group 'integrationServices-dev' was not found
Issue script & Debug output
The Resource 'Microsoft.ApiManagement/service/#apiManagementServiceName - override from devops pipeline#' under resource group 'integrationServices-dev' was not found
Expected behavior
Expected the inline paramater to override the parameter in the bicepparam file.
Environment Summary
"azure-cli": "2.54.0",
"azure-cli-core": "2.54.0",
Additional context
No response
Describe the bug
Trying to use the new possibility for using supplemental parameters when used with .bicepparam files according to #27527.
This change is supposed to be part of az cli version 2.54.0.
But running this command in an Azure DevOps pipeline does not seem to work when passing in multiple inline parameters.
Trying to run the following code in an AzureCLI@2 task:
Having a bicepparam file with the following content
When running the deployment I get the error:
The Resource 'Microsoft.ApiManagement/service/#apiManagementServiceName - override from devops pipeline#' under resource group 'integrationServices-dev' was not found
Clearly indicating that the parameter value is still the value from the bicepparam file and NOT being overridden by the inline parameter passed to az deployment command.
Is this not how it was supposed to work? - the above code is running in the AzureCLI@2 task with the correct version (2.54.0):
Related command
az deployment group create
--name api-deleteme-api
--subscription '62394fa1-c454-4478-944e-3bcadc25b8d1'
--resource-group 'integrationServices-dev'
--template-file 'D:\a\1/drop/api.bicep'
--parameters 'D:\a\1/drop/deleteme-api/azuredeploy.parameters.bicepparam'
--parameters version='v0.45' apiRevision='13' apiManagementServiceName='hofor-api-management-dev'
Errors
The Resource 'Microsoft.ApiManagement/service/#apiManagementServiceName - override from devops pipeline#' under resource group 'integrationServices-dev' was not found
Issue script & Debug output
The Resource 'Microsoft.ApiManagement/service/#apiManagementServiceName - override from devops pipeline#' under resource group 'integrationServices-dev' was not found
Expected behavior
Expected the inline paramater to override the parameter in the bicepparam file.
Environment Summary
"azure-cli": "2.54.0",
"azure-cli-core": "2.54.0",
Additional context
No response