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
az containerapp env dapr-component set returns a "DaprComponentInvalidRequest...must contain properties.ComponentType" Error #472
Comments
Anyone looking into this, please? |
Yes will investigate. Can you also confirm you ran the commands without environment variables to ensure the same behavior? |
I'm sorry, I could not reproduce your issue in Powershell or on my mac using bash. I have a feeling your yaml file has some type of spacing issue. |
I had the same feeling about improperly formed yaml file, too. But, after re-writing my yaml file (for Azure Container Apps) so many times, with the same result, I gave up. You should know, I run Dapr locally, with yaml files written for all components (secretstore and pubsub), and everything works perfectly. I only encounter this issue when I attempt to add Dapr Components (to a Container App Environment) via the CLI. Anyways, In the interim, I have resorted to creating Container Apps Environments (and adding components) via the Azure Portal, and then using the CLI only when provisioning the Container Apps themselves. Thanks for your help. |
I am going to close this issue since you seem to have a solid workaround. Let me know if there's anything else we can help you with! |
Yeah, it's still not solved though! |
+1 |
Any news on this yet? I am running into the same problem. I would like to script my entire deployment and this is the only part that simply does not work. I have resort to the azure powershell commands for this part to work around this issue. |
Issue description
I'm attempting to add a Dapr Component to the Container Apps Environment for my project, via the Azure CLI.
However, each time I issue the instruction to add the component, I end up with the error shown in the images below:
Here's the instruction I issued to add the component:
az containerapp env dapr-component set --name %env% --resource-group %rg% --dapr-component-name azurekeyvault --yaml azurekeyvault.yaml
(Command Prompt)or
az containerapp env dapr-component set --name $env --resource-group $rg --dapr-component-name azurekeyvault --yaml azurekeyvault.yaml
(Powershell)Note: env and rg are environment-variables I defined for the Container Apps Environment and the Resource Group respectively, within the terminal-sessions.
Command Issued Via The Command Prompt (With Error Message)
Same Command Issued Via Power Shell (With Error Message)
And Here's My Dapr Component Config File
Steps to reproduce
Install the Azure CLI
Add the containerapp extension with the following command:
az extension add --name containerapp --upgrade
Register the Microsoft.App and Microsoft.OperationalInsights namespaces with the following commands:
az provider register --namespace Microsoft.App
az provider register --namespace Microsoft.OperationalInsights
Create a secretstore config-file as shown above
Register variables as shown above
Navigate to the directory where the config-file was created and issue the command (s) shown above.
Expected behavior
I expected the Dapr Component to be added to the Container Apps Environment
Actual behavior
An error (as shown in the images above) occured.
The text was updated successfully, but these errors were encountered: