File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
examples/Microsoft.Sql_servers_outboundFirewallRules@2021-02-01-preview Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ variable "location" {
20
20
default = " westeurope"
21
21
}
22
22
23
+ variable "admin_password" {
24
+ description = " Admin password for the database"
25
+ type = string
26
+ sensitive = true
27
+ }
28
+
23
29
resource "azapi_resource" "resourceGroup" {
24
30
type = " Microsoft.Resources/resourceGroups@2020-06-01"
25
31
name = var. resource_name
@@ -34,7 +40,7 @@ resource "azapi_resource" "server" {
34
40
body = {
35
41
properties = {
36
42
administratorLogin = " msincredible"
37
- administratorLoginPassword = " P@55W0rD!!y0exn "
43
+ administratorLoginPassword = var.admin_password
38
44
minimalTlsVersion = " 1.2"
39
45
publicNetworkAccess = " Enabled"
40
46
restrictOutboundNetworkAccess = " Enabled"
You can’t perform that action at this time.
0 commit comments