Skip to content

[Bug Report]: Microsoft.Sql administratorLogin is not designated as a secure string #1652

@emichellecarter

Description

@emichellecarter

Describe the bug

Deployment Example 2 when deploying ResourceModules/modules/Microsoft.Sql/ has a get from key vault as shown below:
params: {
name: '<>-az-sqlsrv-x-001'
lock: 'CanNotDelete'
administratorLogin: kv1.getSecret('administratorLogin')
administratorLoginPassword: kv1.getSecret('administratorLoginPassword')
location: 'westeurope'

Using this template throws an error that the function can not be used because the administratorLogin is not designated as a secure string. Either the parameter should be updated as a secure string or the example updated to be a general parameter.

To reproduce

To reproduce the issue:
Create a deployment using Deployment Example 2

Code snippet

params: {
    name: '<<namePrefix>>-az-sqlsrv-x-001'
    lock: 'CanNotDelete'
    administratorLogin: kv1.getSecret('administratorLogin')
    administratorLoginPassword: kv1.getSecret('administratorLoginPassword')
    location: 'westeurope'

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

[cat] modulescategory: modulesbugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status
Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions