@Robert Garlington Welcome to Microsoft Q&A Forum , Thank you for posting your query here!
Can you please share the screenshot of the error message?
Could you clarify if it's an SMB or NFS volume?
To set ACLs for Azure NetApp Files volumes using PowerShell, you can follow these steps. This process involves using the Set-Acl cmdlet to manage the access control lists for your ANF volumes.
Connect to Azure: First, ensure you are connected to your Azure account.
Connect-AzAccount
Retrieve the ANF Volume: Get the details of the ANF volume you want to set ACLs for.
$anfVolume = Get-AzNetAppFilesVolume -ResourceGroupName "<ResourceGroupName>" -AccountName "<AccountName>" -PoolName "<PoolName>" -VolumeName "<VolumeName>"
Retrieve the Current ACL: Get the current ACL for the volume.
$acl = Get-Acl -Path $anfVolume.MountPath
Create a New Access Rule: Create a new access rule for the user or group you want to grant permissions to.
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("<UserOrGroup>", "FullControl", "Allow")
Apply the Access Rule: Add the new access rule to the ACL.
$acl.SetAccessRule($accessRule)
Set the Updated ACL: Apply the updated ACL to the volume.
Set-Acl -Path $anfVolume.MountPath -AclObject $acl
This process should help you manage ACLs for your ANF volumes using PowerShell.
Setting NTFS ACL permission via the ONTAP PowerShell module
Note: Azure NetApp Files doesn't support windows audit ACLs. Azure NetApp Files ignores any audit ACL applied to files or directories hosted on Azure NetApp Files volumes.
The other option is you can try from client VMs, Usually we perform ACL operation through client VMs
Configure access control lists on NFSv4.1 volumes for Azure NetApp Files: https://learn.microsoft.com/en-us/azure/azure-netapp-files/configure-access-control-lists
Manage SMB share ACLs in Azure NetApp Files:
https://learn.microsoft.com/en-us/azure/azure-netapp-files/manage-smb-share-access-control-lists
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.