Description
Data Access Authentication Mode provides a method of uploading or exporting Virtual Machine Disks.
Rationaleβ
Enabling data access authentication mode
adds a layer of protection using an Entra ID role to further restrict users from creating and using Secure Access Signature (SAS) tokens for exporting a detached managed disk or virtual machine state. Users will need the Data operator for managed disk
role within Entra ID in order to download a VHD or VM Guest state using a secure URL.
Impactβ
In order to apply this setting, the virtual machine to which the disk or disks are attached will need to be powered down and have their disk detached. Users without the Data operator for managed disk
role within Entra ID will not be able to export VHD or VM Guest state using the secure download URL.
Auditβ
From Azure Portalβ
Part A. Select the Virtual Machine to Evaluateβ
- Using the search bar, search for and open the
Virtual Machines
service. - Click on the name of the Virtual Machine to be audited.
Part B. Evaluate each Virtual Machine Disk individuallyβ
- From the selected Virtual Machine resource window, expand the
Settings
menu item and clickDisks
. - For each disk, click the name of the disk to open the disk resource window.
- From the selected Disk resource window, expand the
Settings
menu item, and clickDisk Export
.
Ensure that Enable Data Access Authentication Mode
is checked.
Repeat Part B for each Disk attached to a VM.
Repeat Parts A and B to evaluate all Disks in all VMs.
From Azure CLIβ
Run the following command for each disk:
az disk show --disk-name <disk_name> --resource-group <resource_group_name>
Ensure the dataAccessAuthMode
setting is set to AzureActiveDirectory
.
From PowerShellβ
Run the following command for each disk:
Get-AzDisk -ResourceGroupName <resource_group_name> -DiskName <disk_name>
Ensure the DataAccessAuthMode
setting displays AzureActiveDirectory
next to it.
Default Valueβ
By default, Data Access Authentication Mode is Disabled
.