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
Copy file name to clipboardExpand all lines: articles/storage/common/security-restrict-copy-operations.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ ms.custom:
18
18
19
19
# Restrict the source of copy operations to a storage account
20
20
21
-
For security reasons, storage administrators might want to limit the environments from which data can be copied to secured accounts. Limiting the scope of permitted copy operations helps prevent the infiltration of unwanted data from untrusted tenants or virtual networks.
21
+
For security reasons, storage administrators might want to limit the environments from which data can be copied to storage accounts. Limiting the scope of permitted copy operations helps prevent the infiltration of unwanted data from untrusted tenants or virtual networks.
22
22
23
23
This article shows you how to limit the source accounts of copy operations to accounts within the same tenant as the destination account, or with private links to the same virtual network as the destination.
24
24
@@ -34,7 +34,24 @@ The **AllowedCopyScope** property of a storage account is used to specify the en
34
34
-**Microsoft Entra ID**: Permits copying only from accounts within the same Microsoft Entra tenant as the destination account.
35
35
-**PrivateLink**: Permits copying only from storage accounts that have private links to the same virtual network as the destination account.
36
36
37
-
The setting applies to [Copy Blob](/rest/api/storageservices/copy-blob) and [Copy Blob From URL](/rest/api/storageservices/copy-blob-from-url) operations.
37
+
The following table details operations that require the `x-ms-copy-source` request header that this setting applies to:
38
+
39
+
| REST API | Permitted scope applies |
40
+
| --- | --- |
41
+
|[Put Block From Url](/rest/api/storageservices/put-block-from-url?tabs=microsoft-entra-id)| Yes |
42
+
|[Append Block From Url](/rest/api/storageservices/append-block-from-url?tabs=microsoft-entra-id)| Yes |
43
+
|[Put Blob From Url](/rest/api/storageservices/put-blob-from-url?tabs=microsoft-entra-id)| Yes |
44
+
|[Put Page From Url](/rest/api/storageservices/put-page-from-url?tabs=microsoft-entra-id)| Yes |
> Storage clients such as [AzCopy](/azure/storage/common/storage-use-azcopy-v10) that rely on these APIs will be impacted by this setting. Please review the APIs associated with other features and services to ensure compatibility.
53
+
54
+
The error “The copy operation is not within the allowed copy scope” indicates that the attempted copy operation falls outside the permitted scope for your account. Should you encounter the error “This request is not authorized to perform this operation” please verify whether permitted scope or a related firewall rule is denying the request.
38
55
39
56
When the source of a copy request does not meet the requirements specified by this setting, the request fails with HTTP status code 403 (Forbidden).
0 commit comments