-
Notifications
You must be signed in to change notification settings - Fork 420
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. |
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. |
Thank you @rujche we'll plan the feature add |
Hi @rujche , changes proposed in that PR are not implementing what we expect. They are only adding an output clear text to identify the connection string, and no confirmation feedback on implementing what we suggested was there. Doing the last check. |
…ets export (#4288) ## Description Closes #3638 ## Pipeline Reference Verified locally:  ## Type of Change <!-- Use the checkboxes [x] on the options that are relevant. --> - [ ] Update to CI Environment or utilities (Non-module affecting changes) - [x] Azure Verified Module updates: - [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description. - [ ] The bug was found by the module author, and no one has opened an issue to report it yet. - [x] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation ## Checklist - [x] I'm sure there are no other open Pull Requests for the same update/change - [x] I have run `Set-AVMModule` locally to generate the supporting module files. - [x] My corresponding pipelines / checks run clean and green without any errors or warnings
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: