Skip to content

Commit 6d0ca73

Browse files
authored
remove password from example (#842)
removed password from example replacing it with a required variable marked as secret
1 parent 088c836 commit 6d0ca73

File tree

1 file changed

+7
-1
lines changed
  • examples/Microsoft.Sql_servers_outboundFirewallRules@2021-02-01-preview

1 file changed

+7
-1
lines changed

examples/Microsoft.Sql_servers_outboundFirewallRules@2021-02-01-preview/main.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ variable "location" {
2020
default = "westeurope"
2121
}
2222

23+
variable "admin_password" {
24+
description = "Admin password for the database"
25+
type = string
26+
sensitive = true
27+
}
28+
2329
resource "azapi_resource" "resourceGroup" {
2430
type = "Microsoft.Resources/resourceGroups@2020-06-01"
2531
name = var.resource_name
@@ -34,7 +40,7 @@ resource "azapi_resource" "server" {
3440
body = {
3541
properties = {
3642
administratorLogin = "msincredible"
37-
administratorLoginPassword = "P@55W0rD!!y0exn"
43+
administratorLoginPassword = var.admin_password
3844
minimalTlsVersion = "1.2"
3945
publicNetworkAccess = "Enabled"
4046
restrictOutboundNetworkAccess = "Enabled"

0 commit comments

Comments
 (0)