Open erezs80 opened 1 year ago
Hi @erezs80, thanks for raising this issue. The targetNodeCommunicationMode is not included in current batch service SDK version. To fulfill this enhancement request, we need to upgrade to latest SDK and add support for this property.
Following... This would be a great help for me as well since it looks like Simplified
is the recommended mode to set. Thanks
In the mean time, has anyone been able to get the azapi_update_resource
resource to work to update this? When I attempt I get the following error in response:
│ RESPONSE 400: 400 Bad Request │ ERROR CODE: InvalidIdentityValues │ -------------------------------------------------------------------------------- │ { │ "error": { │ "code": "InvalidIdentityValues", │ "message": "Invalid value for the identities '/subscriptions/<sub id>/resourceGroups/<rg name>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<id name>'. The 'UserAssignedIdentities' property keys should only be empty json objects, null or the resource exisiting property." │ } │ } │ --------------------------------------------------------------------------------
Also It looks like related to this error it was resolved awhile back, so not sure if it is something similar here or something different.
Edit I was able to work around the azapi identity error by adding a runtime flag essentially to deploy the pool first without an identity and then running the deployment again to add it back after the azapi update has completed.
Is there an existing issue for this?
Community Note
Description
I am creating a batch pool via azurerm/azurerm_batch_pool and there's no configuration for me to change the 'node communication mode' parameter which can be Classic/Simplified/Default
Currently, when deploying pools the parameter is set by default to Classic.
New or Affected Resource(s)/Data Source(s)
azurerm_batch_pool
Potential Terraform Configuration
References
No response