Skip to content

Commit a025efa

Browse files
Merge pull request #310988 from rmcmurray/docs-editor/definition-structure-parameter-1769590554
Updating parameter data types
2 parents bb1cd5b + 4851e2c commit a025efa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

articles/governance/policy/concepts/definition-structure-parameters.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Parameters can't be removed from a policy definition because there might be an a
2020
A parameter uses the following properties in a policy definition:
2121

2222
- `name`: The name of your parameter. Used by the `parameters` deployment function within the policy rule. For more information, see [using a parameter value](#using-a-parameter-value).
23-
- `type`: Determines if the parameter is a `string`, `array`, `object`, `boolean`, `integer`, `float`, or `dateTime`.
23+
- `type`: Determines if the parameter is a `string`, `array`, `object`, `boolean`, `integer`, `float`, or `dateTime`. (Where `dateTime` parameters should be in ISO 8601 `yyyy-MM-ddTHH:mm:ss.fffffffZ` format.)
24+
2425
- `metadata`: Defines subproperties primarily used by the Azure portal to display user-friendly information:
2526
- `description`: The explanation of what the parameter is used for. Can be used to provide examples of acceptable values.
2627
- `displayName`: The friendly name shown in the portal for the parameter.
@@ -69,7 +70,7 @@ In a more advanced scenario, you could define a policy that requires Kubernetes
6970
```json
7071
"parameters": {
7172
"labelSelector": {
72-
"type": "Object",
73+
"type": "object",
7374
"metadata": {
7475
"displayName": "Kubernetes label selector",
7576
"description": "Label query to select Kubernetes resources for policy evaluation. An empty label selector matches all Kubernetes resources."

0 commit comments

Comments
 (0)