-
Notifications
You must be signed in to change notification settings - Fork 381
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
[AVM Module Issue]: How to get connection string when event-hub namespace is created by AVM? #3638
Comments
@rujche, thanks for submitting this issue for the Important A member of the @Azure/avm-res-eventhub-namespace-module-owners-bicep or @Azure/avm-res-eventhub-namespace-module-contributors-bicep team will review it soon! |
… by connection string, but failed: Cant not get connection string. Issue created: Azure/bicep-registry-modules#3638
Problem solved by this commit: azure-javaee/azure-dev@241fbe0 |
…#3) * Support detect Azure Event Hubs: produce message only, managed identity only. * Support detect Azure Event Hubs: produce message only. Try to connect by connection string, but failed: Cant not get connection string. Issue created: Azure/bicep-registry-modules#3638 * Support detect Azure Event Hubs: produce message only, support both managed-identity and connection-string. * Change option from "Password" to "Connection string". * Rename "getAuthTypeByPrompt" to "chooseAuthType".
Reopen this issue because this problem is not solved in current repo. The commit closed this issue above is just a workaround. |
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Hi @rujche , have you found a workaround on your side? |
Fixes Azure#3638 Add output for Event Hub namespace connection string * Add output for connection string using `listKeys` function in `avm/res/event-hub/namespace/main.bicep` * Update `outputs` section in `avm/res/event-hub/namespace/main.bicep` to include connection string * Document new output for connection string in `avm/res/event-hub/namespace/README.md` --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Azure/bicep-registry-modules/issues/3638?shareId=XXXX-XXXX-XXXX-XXXX).
Hi, @elanzel Sorry for late response.
Yes, I use this workaround:
I'd love to use connection string directly, just like cosmos did: https://github.com/azure-javaee/azure-dev/blob/d1c179a8392341802d0ef686354877b49eb80d24/cli/azd/resources/scaffold/templates/resources.bicept#L104 It's stored in Key Vault, and the key vault id is provided by customer. |
Check for previous/existing GitHub issues
Issue Type?
Feature Request
Module Name
avm/res/event-hub/namespace
(Optional) Module Version
No response
Description
1. Problem
I tried to get connection string of event hub namespace by method like this:
It returns error like this:
2. Try to solve this issue
2.1. Use
resourceId
I also tried this:
It returns error like this:
2.2. Use
resourceId
and${abbrs.eventHubNamespaces}${resourceToken}
And tried this:
It returns error like this:
2.3. Add
dependsOn
Tried this:
And failed with same error:
Question / Feature request
My question is: How can I get connection when event hub namespace is created by
br/public:avm/res/event-hub/namespace:0.7.1
? May be we can add the connection-string in output?(Optional) Correlation Id
No response
The text was updated successfully, but these errors were encountered: