Authentication to Azure File - Terraform

André Leblanc 1 Reputation point
2022-07-06T15:56:41.41+00:00

I'm trying to make authentication automaticaly via terraform here is my TF script extract:

One of the parameter is storage_sid, I cannot find where to get it !

azure_files_authentication {
directory_type = "AADDS"
active_directory {
domain_name = var.domain.name
domain_guid = "xxxx"
domain_sid = "xxxxx
forest_name = var.domain.name
netbios_domain_name = var.domain.net_bios_name
storage_sid = "zzzz"
}
}

From the Terraform doc:

storage_sid - (Required) Specifies the security identifier (SID) for Azure Storage.

How can I extract it if I am currently creating it ?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,420 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,336 Reputation points
    2022-07-07T17:41:55.327+00:00

    @André Leblanc Thank you for reaching out to Microsoft Q&A. I understand that you are having questions regarding "storage_sid" parameter for your TF script.

    Here is more information regarding the storage_sid parameter- It is the SID of the identity created in your AD DS that represents the Storage Account. Hope this helps. Please do let me know if you are looking for any further assistance regarding this issue. Thank you!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.