Skip to main content

Generate a password

Generates a complex password with configurable character sets and length.

Requires the PassWordGenerator extension to be registered in bicepconfig.json — see Installation.

targetScope = 'local'


extension PassWordGenerator

resource password 'GeneratedPassword' = {
name: 'myPassword'
properties: {
includeLower: true
includeUpper: true
includeDigits: true
includeSpecial: false
passwordLength: 50
}
}

output password string = password.output

View on GitHub