Open VickyWinner opened 1 year ago
@VickyWinner thanks for opening this issue. In fact, one of account_key,shared_access_signature
must
be specified, this is by design. I have submitted PR to update the terraform doc to clarify it. Could you please provide one of account_key, shared_access_signature
in configuration to resolve above error?
@sinbai, we don't want to rely on account_key or sas key at all. I am assuming that if I use service_data_auth_identity = "WorkspaceSystemAssignedIdentity"
I don't need to pass account_key or sas key which gets rotated frequently. I want to use MSI similar to what is available in portal. Where is this available in TF?
@sinbai I've reopened this issue, would you mind taking another look at this one, as @VickyWinner has mentioned, it should be possible to use a System Assigned Identity for this purpose?
@tombuildsstuff any update here? It's very annoying issue, especially that resource for DFS is working normally :(
@VickyWinner have you found a solution for your bug besides using account key or sas? I have stumbled upon the same bug.
SystemAssignedIdentity should be possible for Datastore registration or creation. Same goes for Datastore_Fileshares https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/machine_learning_datastore_fileshare
Can you take another look on this please @tombuildsstuff and @sinbai?
@tombuildsstuff , @VickyWinner , @sinbai
There is more to this --- Unlike user-created datastores, the default datastores created by the Azure ML workspace system use storage account key authentication. Disabling shared key access for the storage account will result in notebooks becoming inaccessible to users irrespective if manage identities are given access to the storage account, as these notebooks are stored in the workspace's default datastores. I dont see this handled by terraform or is there other ways to enforce the use of managed identity for these default datastores instead of relying on account key/SAS for authentication?
Is there an existing issue for this?
Community Note
Terraform Version
Terraform v1.0.4
AzureRM Provider Version
provider registry.terraform.io/hashicorp/azurerm v3.52.0
Affected Resource(s)/Data Source(s)
azurerm_machine_learning_datastore_blobstorage
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
blobstore registered.
Actual Behaviour
terraform plan erroring out
Steps to Reproduce
use the block fromabove
Important Factoids
No response
References
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/machine_learning_datastore_blobstorage