Skip to content
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

[Bug Report]: Minor bug in key vault's diagnostic settings name #1458

Closed
khaliddermoumi opened this issue Jun 1, 2022 · 5 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@khaliddermoumi
Copy link
Contributor

Describe the bug

The diagnostic settings name in the key vault module (git tag v0.5.0) is:

 '${name_var}-diagnosticSettingName'.

The intention was obviously:

'${name_var}-${diagnosticSettingsName}'

There is also a now unused variable "diagnosticSettingsName", which would make sense if it was used in the name.

To reproduce

Create a key vault with the v0.5.0 version of the module.

Code snippet

(omitted, just the plain vanilla usage of the module)

Relevant log output

C:\...\ResourceModules\arm\Microsoft.KeyVault\vaults\deploy.bicep(124,7) : Warning no-unused-params: Parameter "diagnosticSettingsName" is declared but never used. [https://aka.ms/bicep/linter/no-unused-params]
@khaliddermoumi khaliddermoumi added the bug Something isn't working label Jun 1, 2022
@khaliddermoumi
Copy link
Contributor Author

I could submit a pull request, if you are interested!

@akata72
Copy link
Contributor

akata72 commented Jun 2, 2022

I believe this was already fixed in the latest version? or do you still see this issue in the latest version of the file.

@AlexanderSehr
Copy link
Contributor

I was fixed in that the variable is now used. However, the solution isn't ideal as @khaliddermoumi correctly pointed out it should reference ${name_var} in the diagnostic settings name. The problem is, this value is a variable and not available for a default value of a parameter.
Anyhow, this issue may resolve itself following #1443 .

@MariusStorhaug MariusStorhaug changed the title [Bug Report]: Minor bug in kay vault's diagnostic settings name [Bug Report]: Minor bug in key vault's diagnostic settings name Jun 7, 2022
@rahalan
Copy link
Contributor

rahalan commented Jun 7, 2022

See #1443 - depends on that issue.

@eriqua eriqua self-assigned this Aug 6, 2022
@eriqua eriqua removed the blocked if an issue is blocked label Sep 1, 2022
@eriqua
Copy link
Contributor

eriqua commented Sep 1, 2022

Closed by #1757

@eriqua eriqua closed this as completed Sep 1, 2022
@rahalan rahalan moved this to Closed in Bug board Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Closed
Development

No branches or pull requests

5 participants