Skip to content

Commit 9b3f5a8

Browse files
Update author-policies-for-arrays.md
Example code for Array Parameter will fail with the error: The policy parameter 'allowedLocations' default value does not match the expected parameter type defined in the policy definition. Details 'The expected policy parameter type: 'Array'. The actual policy parameter type 'String'.'. Update to code example for the defaultVaule to match the type of Array by adding the required brackets.
1 parent 971c954 commit 9b3f5a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/governance/policy/how-to/author-policies-for-arrays.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ can be rewritten as follows:
5959
"displayName": "Allowed locations",
6060
"strongType": "location"
6161
},
62-
"defaultValue": "eastus2",
62+
"defaultValue": [
63+
"eastus2"
64+
],
6365
"allowedValues": [
6466
"eastus2",
6567
"eastus",

0 commit comments

Comments
 (0)