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/digital-twins/how-to-use-3d-scenes-studio.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ titleSuffix: Azure Digital Twins
5
5
description: Learn how to use all the features of 3D Scenes Studio (preview) for Azure Digital Twins.
6
6
author: baanders
7
7
ms.author: baanders # Microsoft employees only
8
-
ms.date: 02/27/2023
8
+
ms.date: 07/19/2023
9
9
ms.topic: how-to
10
10
ms.service: digital-twins
11
11
ms.custom: event-tier1-build-2022
@@ -31,11 +31,27 @@ To use 3D Scenes Studio, you'll need the following resources:
31
31
* A private container in the storage account. For instructions, see [Create a container](../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container).
32
32
* Take note of the *name* of your storage container to use later.
33
33
**Storage Blob Data Owner* or *Storage Blob Data Contributor* access to your storage resources. You can grant required roles at either the storage account level or the container level. For instructions and more information about permissions to Azure storage, see [Assign an Azure role](../storage/blobs/assign-azure-role-data-access.md?tabs=portal#assign-an-azure-role).
34
+
* Configure CORS for your storage account (see details in the following sub-section).
34
35
35
-
You should also configure [CORS](/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services) for your storage account, so that 3D Scenes Studio will be able to access your storage container. You can use the following [Azure CLI](/cli/azure/what-is-azure-cli) command to set the minimum required methods, origins, and headers. The command contains one placeholder for the name of your storage account.
36
+
### Configure CORS
37
+
38
+
You'll need to configure [CORS](/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services) for your storage account, so that 3D Scenes Studio will be able to access your storage container.
39
+
40
+
These CORS headers are always required:
41
+
* Authorization
42
+
* x-ms-version
43
+
* x-ms-blob-type
44
+
45
+
These additional CORS headers are required if you're planning on using private links functionality:
46
+
* Content-Type
47
+
* Content-Length
48
+
* x-ms-copy-source
49
+
* x-ms-requires-sync
50
+
51
+
Below is the [Azure CLI](/cli/azure/what-is-azure-cli) command that will set the methods, origins, and headers listed above for CORS in your storage account. The command contains one placeholder for the name of your storage account.
36
52
37
53
```azurecli
38
-
az storage cors add --services b --methods GET OPTIONS POST PUT --origins https://explorer.digitaltwins.azure.net --allowed-headers Authorization x-ms-version x-ms-blob-type --account-name <your-storage-account>
54
+
az storage cors add --services b --methods GET OPTIONS POST PUT --origins https://explorer.digitaltwins.azure.net --allowed-headers Authorization Content-Type Content-Length x-ms-version x-ms-blob-type x-ms-copy-source x-ms-requires-sync --account-name <your-storage-account>
39
55
```
40
56
41
57
Now you have all the necessary resources to work with scenes in 3D Scenes Studio.
0 commit comments