Skip to content

Commit c53f318

Browse files
Merge pull request #245216 from roygara/importOverview
Staging draft
2 parents 1427015 + 9313a92 commit c53f318

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

articles/virtual-machines/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,8 @@
13771377
href: ephemeral-os-disks-faq.md
13781378
- name: Securely import/export a disk
13791379
items:
1380+
- name: Options for restricting access
1381+
href: disks-restrict-import-export-overview.md
13801382
- name: Configure private links for disks - CLI
13811383
href: ./linux/disks-export-import-private-links-cli.md
13821384
- name: Configure private links for disks - Portal
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Restrict managed disks from being imported or exported
3+
description: Restrict managed disks from being imported or exported
4+
author: roygara
5+
ms.service: azure-disk-storage
6+
ms.topic: conceptual
7+
ms.date: 08/01/2023
8+
ms.author: rogarana
9+
---
10+
11+
# Restrict managed disks from being imported or exported
12+
13+
This article provides an overview of your options for preventing your Azure managed disks from being imported or exported.
14+
15+
## Custom role
16+
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:
18+
19+
- Microsoft.Compute/disks/beginGetAccess/action
20+
- Microsoft.Compute/disks/endGetAccess/action
21+
- Microsoft.Compute/snapshots/beginGetAccess/action
22+
- Microsoft.Compute/snapshots/endGetAccess/action
23+
24+
Any custom role without those permissions can't upload or download managed disks.
25+
26+
## Azure AD authentication
27+
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

Comments
 (0)