From 1b09c90a52fdf329e4607248e6a69f5ce13aa090 Mon Sep 17 00:00:00 2001 From: Sam Velie Date: Wed, 13 Dec 2023 01:04:19 -0800 Subject: [PATCH] Docs: correct managed identity documentation for azurerm_batch_account (#24204) * Update batch_account.html.markdown Correcting Managed Identity requirements * update identity schema for batch account resource --------- Co-authored-by: Steph --- internal/services/batch/batch_account_resource.go | 2 +- website/docs/r/batch_account.html.markdown | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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`. ---