Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit ad952f3

Browse files
fortunkamMatthew FortunkaRupengLiu
authored
Updated the NamedValue PropertyTemplate creator to support keyvault named values in line with the changes made to the extractor tool. (#539)
Co-authored-by: Matthew Fortunka <mafortun@microsoft.com> Co-authored-by: RupengLiu <rliu1211@terpmail.umd.edu>
1 parent dad08dc commit ad952f3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/APIM_ARMTemplate/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,17 @@ _Additional properties found in [ProductContractProperties](https://docs.microso
113113
| tags | array | No | Optional tags that when provided can be used to filter the property list. - string
114114
| secret | boolean | No | Determines whether the value is a secret and should be encrypted or not. Default value is false.
115115
| displayName | string | Yes | Unique name of Property. It may contain only letters, digits, period, dash, and underscore characters. |
116-
| value | string | Yes | Value of the property. Can contain policy expressions. It may not be empty or consist only of whitespace. |
116+
| value | string | No | Value of the property. Can contain policy expressions. It can be empty or consist only of whitespace only if the keyvault parameter is set. |
117+
| keyvault | [PropertyKeyVaultConfiguration](#PropertyKeyVaultConfiguration) | No | The keyvault settings for the property. |
117118

118119
_Additional properties found in [PropertyContractProperties](https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/2019-01-01/service/properties#propertycontractproperties-object)_
119120

121+
#### PropertyKeyVaultConfiguration
122+
123+
| Property | Type | Required | Value |
124+
|-----------------------|-----------------------|-----------------------|--------------------------------------------------|
125+
| secretIdentifier | string | Yes | KeyVault secret id which will map to the property.
126+
120127
#### LoggerConfiguration
121128

122129
| Property | Type | Required | Value |

src/APIM_ARMTemplate/apimtemplate/Creator/TemplateCreators/PropertyTemplateCreator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public Template CreatePropertyTemplate(CreatorConfig creatorConfig)
3030
displayName = namedValue.displayName,
3131
value = namedValue.value,
3232
secret = namedValue.secret,
33-
tags = namedValue.tags
33+
tags = namedValue.tags,
34+
keyVault = namedValue.keyVault
35+
3436
},
3537
dependsOn = new string[] {}
3638
};

0 commit comments

Comments
 (0)