Skip to content

Commit

Permalink
automation account encryption.key_vault_key_id should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 committed Mar 8, 2023
1 parent fb309bb commit f9ef19e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func resourceAutomationAccount() *pluginsdk.Resource {

"key_vault_key_id": {
Type: pluginsdk.TypeString,
Required: true,
Optional: true,
ValidateFunc: keyVaultValidate.NestedItemIdWithOptionalVersion,
},
},
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/automation_account.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ An `encryption` block supports the following:

* `key_source` - (Optional) The source of the encryption key. Possible values are `Microsoft.Automation` and `Microsoft.Keyvault`.

* `key_vault_key_id` - (Required) The ID of the Key Vault Key which should be used to Encrypt the data in this Automation Account.
* `key_vault_key_id` - (Optional) The ID of the Key Vault Key which should be used to Encrypt the data in this Automation Account. Required when `key_source` is set to `Microsoft.Keyvault`.

---

Expand Down

0 comments on commit f9ef19e

Please sign in to comment.