Error: Cannot retrieve the dynamic parameters for the cmdlet. Error parsing undefined value #11840
Replies: 6 comments 12 replies
-
@sweprs What version of Bicep is installed? |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, did you find the root cause? |
Beta Was this translation helpful? Give feedback.
-
What does your bicep config file look like? |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue - the version of the Az module you were using didn't support using the Bicep parameters file or at least it wasnt listed on the docs for that version. I see you updated - i updated to 10.4.1 of the Az module and that fixed the issue for me after restarting my shell. |
Beta Was this translation helpful? Give feedback.
-
As per #11983 (comment) I moved to Az PowerShell version 10.3.0 and that also works. 10.4.1 has a bug so i would avoid that as per @anthony-c-martin note in issue #11983 |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, I'm having this issue on a Microsoft hosted DevOps agent. It works with command az deployment group create, but not with New-AzResourceGroupDeployment. Error: Cannot retrieve the dynamic parameters for the cmdlet. Error parsing Switching back to parameters.json file instead of *.bicepparam also works. What is needed on the self-hosted agents, image: ubuntu-latest |
Beta Was this translation helpful? Give feedback.
-
I'm trying to deploy a bicep deployment with two policy assigments
New-AzSubscriptionDeployment -Name policydeployment -TemplateFile .\main.bicep -TemplateParameterFile .\azsub1.bicepparam
I get this error:
New-AzDeployment: Cannot retrieve the dynamic parameters for the cmdlet. Error parsing undefined value. Path '', line 1, position 1.
Here is the structure
![2023-09-15_09-47-33](https://private-user-images.githubusercontent.com/29118090/268212991-3c30e18d-2822-49d6-815b-899b57dd2533.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDE3ODcsIm5iZiI6MTczOTYwMTQ4NywicGF0aCI6Ii8yOTExODA5MC8yNjgyMTI5OTEtM2MzMGUxOGQtMjgyMi00OWQ2LTgxNWItODk5YjU3ZGQyNTMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA2MzgwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwM2Y5MWViMzU1ZTgxNzA3OWUwNWE4MTcxNDVmYjFiZTRmZjYzZTQwYTNhMDYxY2I0MDFlMDNhZWU5ZTgzYTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.O0ndGh6-hNSrXNi4WSsU1mMXRjF6KNoCAji7P2JViRg)
Beta Was this translation helpful? Give feedback.
All reactions