diff --git a/internal/services/batch/batch_account_resource.go b/internal/services/batch/batch_account_resource.go index edb47c363277..849ba1e3bcbc 100644 --- a/internal/services/batch/batch_account_resource.go +++ b/internal/services/batch/batch_account_resource.go @@ -145,7 +145,7 @@ func resourceBatchAccount() *pluginsdk.Resource { }, }, - "identity": commonschema.SystemAssignedUserAssignedIdentityOptional(), + "identity": commonschema.SystemOrUserAssignedIdentityOptional(), "primary_access_key": { Type: pluginsdk.TypeString, diff --git a/website/docs/r/batch_account.html.markdown b/website/docs/r/batch_account.html.markdown index 71a784a1d5d6..6866de1647f1 100644 --- a/website/docs/r/batch_account.html.markdown +++ b/website/docs/r/batch_account.html.markdown @@ -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. @@ -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`. ---