Skip to content

Commit 71e8356

Browse files
Merge pull request #218221 from mumian/1114-parameter-files
Store sensitive data in parameter files
2 parents f19f9b7 + e6f7f26 commit 71e8356

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/azure-resource-manager/bicep/parameter-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Create parameter file for passing in values during deployment of a
44
author: mumian
55
ms.author: jgao
66
ms.topic: conceptual
7-
ms.date: 07/18/2022
7+
ms.date: 11/14/2022
88
---
99

1010
# Create Bicep parameter file
@@ -30,7 +30,7 @@ A parameter file uses the following format:
3030
}
3131
```
3232

33-
Notice that the parameter file stores parameter values as plain text. This approach works for values that aren't sensitive, such as a resource SKU. Plain text doesn't work for sensitive values, such as passwords. If you need to pass a parameter that contains a sensitive value, store the value in a key vault. Instead of adding the sensitive value to your parameter file, retrieve it with the [getSecret function](bicep-functions-resource.md#getsecret). For more information, see [Use Azure Key Vault to pass secure parameter value during Bicep deployment](key-vault-parameter.md).
33+
It's worth noting that the parameter file saves parameter values as plain text. For security reasons, this approach is not recommended for sensitive values such as passwords. If you must pass a parameter with a sensitive value, keep the value in a key vault. Instead of adding the sensitive value to your parameter file, use the [getSecret function](bicep-functions-resource.md#getsecret) to retrieve it. For more information, see [Use Azure Key Vault to pass secure parameter value during Bicep deployment](key-vault-parameter.md).
3434

3535
## Define parameter values
3636

articles/azure-resource-manager/templates/parameter-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create parameter file
33
description: Create parameter file for passing in values during deployment of an Azure Resource Manager template
44
ms.topic: conceptual
5-
ms.date: 05/11/2021
5+
ms.date: 11/14/2022
66
ms.custom: devx-track-azurepowershell
77
---
88

@@ -32,7 +32,7 @@ A parameter file uses the following format:
3232
}
3333
```
3434

35-
Notice that the parameter file stores parameter values as plain text. This approach works for values that aren't sensitive, such as a resource SKU. Plain text doesn't work for sensitive values, such as passwords. If you need to pass a parameter that contains a sensitive value, store the value in a key vault. Then reference the key vault in your parameter file. The sensitive value is securely retrieved during deployment.
35+
It's worth noting that the parameter file saves parameter values as plain text. For security reasons, this approach is not recommended for sensitive values such as passwords. If you must pass a parameter with a sensitive value, keep the value in a key vault. Then, in your parameter file, include a reference to the key vault. During deployment, the sensitive value is securely retrieved. For more information, see [Use Azure Key Vault to pass secure parameter value during deployment](./key-vault-parameter.md).
3636

3737
The following parameter file includes a plain text value and a sensitive value that's stored in a key vault.
3838

0 commit comments

Comments
 (0)