You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Prevent managed disks from being imported or exported
3
-
description: Prevent managed disks from being imported or exported
2
+
title: Restrict managed disks from being imported or exported
3
+
description: Restrict managed disks from being imported or exported
4
4
author: roygara
5
5
ms.service: azure-disk-storage
6
6
ms.topic: conceptual
@@ -12,18 +12,6 @@ ms.author: rogarana
12
12
13
13
This article provides an overview of your options for preventing your Azure managed disks from being imported or exported.
14
14
15
-
## Configure the Network access policy
16
-
17
-
Each managed disk and snapshot has its own NetworkAccessPolicy parameter, that can prevent the resource from being exported. You can use the [Azure CLI](/cli/azure/disk?view=azure-cli-latest#az-disk-update) or [Azure PowerShell module](/powershell/module/az.compute/new-azdiskconfig?view=azps-10.1.0) to set the parameter to **DenyAll**, which prevents the resource from being exported.
18
-
19
-
## Azure policy
20
-
21
-
[Configure an Azure Policy](https://portal.azure.com/#blade/Microsoft_Azure_Policy/PolicyDetailBlade/definitionId/%2Fproviders%2FMicrosoft.Authorization%2FpolicyDefinitions%2F8426280e-b5be-43d9-979e-653d12a08638) to disable public network access to your managed disks.
22
-
23
-
## Private links
24
-
25
-
You can use private endpoints to restrict the upload and download of managed disks and more securely access data over a private link from clients on your Azure virtual network. The private endpoint uses an IP address from the virtual network address space for your managed disks. Network traffic between clients on their virtual network and managed disks only traverses over the virtual network and a private link on the Microsoft backbone network, eliminating exposure from the public internet. To learn more, see either the [portal](disks-enable-private-links-for-import-export-portal.md) or [CLI](linux/disks-export-import-private-links-cli.md) articles.
26
-
27
15
## Custom role
28
16
29
17
To limit the number of people who can import or export managed disks or snapshots using Azure RBAC, create a [custom RBAC role](../role-based-access-control/custom-roles-powershell.md) that doesn't have the following permissions:
@@ -38,3 +26,15 @@ Any custom role without those permissions can't upload or download managed disks
38
26
## Azure AD authentication
39
27
40
28
If you're using Azure Active Directory (Azure AD) to control resource access, you can also use it to restrict uploading of Azure managed disks. When a user attempts to upload a disk, Azure validates the identity of the requesting user in Azure AD, and confirms that user has the required permissions. To learn more, see either the [PowerShell](windows/disks-upload-vhd-to-managed-disk-powershell.md#secure-uploads-with-azure-ad) or [CLI](linux/disks-upload-vhd-to-managed-disk-cli.md#secure-uploads-with-azure-ad) articles.
29
+
30
+
## Private links
31
+
32
+
You can use private endpoints to restrict the upload and download of managed disks and more securely access data over a private link from clients on your Azure virtual network. The private endpoint uses an IP address from the virtual network address space for your managed disks. Network traffic between clients on their virtual network and managed disks only traverses over the virtual network and a private link on the Microsoft backbone network, eliminating exposure from the public internet. To learn more, see either the [portal](disks-enable-private-links-for-import-export-portal.md) or [CLI](linux/disks-export-import-private-links-cli.md) articles.
33
+
34
+
## Azure policy
35
+
36
+
[Configure an Azure Policy](https://portal.azure.com/#blade/Microsoft_Azure_Policy/PolicyDetailBlade/definitionId/%2Fproviders%2FMicrosoft.Authorization%2FpolicyDefinitions%2F8426280e-b5be-43d9-979e-653d12a08638) to disable public network access to your managed disks.
37
+
38
+
## Configure the Network access policy
39
+
40
+
Each managed disk and snapshot has its own NetworkAccessPolicy parameter, that can prevent the resource from being exported. You can use the [Azure CLI](/cli/azure/disk?view=azure-cli-latest#az-disk-update) or [Azure PowerShell module](/powershell/module/az.compute/new-azdiskconfig) to set the parameter to **DenyAll**, which prevents the resource from being exported.
0 commit comments