Skip to content

Commit

Permalink
Docs: correct managed identity documentation for azurerm_batch_account (
Browse files Browse the repository at this point in the history
#24204)

* Update batch_account.html.markdown

Correcting Managed Identity requirements

* update identity schema for batch account resource

---------

Co-authored-by: Steph <steph@hashicorp.com>
  • Loading branch information
samvelie and stephybun authored Dec 13, 2023
1 parent 64549de commit 1b09c90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/services/batch/batch_account_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func resourceBatchAccount() *pluginsdk.Resource {
},
},

"identity": commonschema.SystemAssignedUserAssignedIdentityOptional(),
"identity": commonschema.SystemOrUserAssignedIdentityOptional(),

"primary_access_key": {
Type: pluginsdk.TypeString,
Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/batch_account.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The following arguments are supported:

* `storage_account_authentication_mode` - (Optional) Specifies the storage account authentication mode. Possible values include `StorageKeys`, `BatchAccountManagedIdentity`.

~> **NOTE:** When using `BatchAccountManagedIdentity` mod, the `identity.type` must set to `UserAssigned` or `SystemAssigned, UserAssigned`.
~> **NOTE:** When using `BatchAccountManagedIdentity` mod, the `identity.type` must set to `UserAssigned` or `SystemAssigned`.

* `storage_account_node_identity` - (Optional) Specifies the user assigned identity for the storage account.

Expand All @@ -87,11 +87,11 @@ The following arguments are supported:

An `identity` block supports the following:

* `type` - (Required) Specifies the type of Managed Service Identity that should be configured on this Batch Account. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).
* `type` - (Required) Specifies the type of Managed Service Identity that should be configured on this Batch Account. Possible values are `SystemAssigned` or `UserAssigned`.

* `identity_ids` - (Optional) A list of User Assigned Managed Identity IDs to be assigned to this Batch Account.

~> **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
~> **NOTE:** This is required when `type` is set to `UserAssigned`.

---

Expand Down

0 comments on commit 1b09c90

Please sign in to comment.