microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
372 stars 29 forks source link

Unable to add Daprsubscription to Azure Container App environment #1317

Closed VenkataRKC closed 1 month ago

VenkataRKC commented 1 month ago

Please provide us with the following information:

Issue description

I am following along the below steps to add DaprSubscriptions for Azure Container App environment. But i get an error. https://learn.microsoft.com/en-us/rest/api/containerapps/dapr-subscriptions/create-or-update?view=rest-containerapps-2023-08-01-preview&tabs=HTTP#uri-parameters.

I dont see any Resource Providers with daprSubscriptions, is there a way to add this subscription to the Container App Environment via BICEP?.

Below is the PUT URL https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions/{name}?api-version=2023-08-01-preview

Steps to reproduce

  1. ..Execute the PUT to add the Daprsubscription(https://learn.microsoft.com/en-us/rest/api/containerapps/dapr-subscriptions/create-or-update?view=rest-containerapps-2023-08-01-preview&tabs=HTTP#uri-parameters)

Expected behavior [What you expected to happen.] The PUT should execute without error and the DAPRsubscription should be added to the Container App environment.

Actual behavior [What actually happened.] Errors out with the below error. Image

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

Ex. Did this issue occur in the CLI or the Portal?

VenkataRKC commented 1 month ago

I was able to use the API version 2024-02-02-preview version and was able to execute the PUT successfully.
Is there a bicep Implementation of this?.