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/virtual-machines/share-gallery-direct.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.service: virtual-machines
6
6
ms.subservice: gallery
7
7
ms.topic: how-to
8
8
ms.workload: infrastructure
9
-
ms.date: 07/18/2022
9
+
ms.date: 07/25/2022
10
10
ms.author: saraic
11
11
ms.reviewer: cynthn
12
12
ms.custom: template-how-to , devx-track-azurecli
@@ -52,11 +52,40 @@ During the preview:
52
52
## Prerequisites
53
53
54
54
You need to create a [new direct shared gallery ](./create-gallery.md#create-a-direct-shared-gallery). A direct shared gallery has the `sharingProfile.permissions` property is set to `Groups`. When using the CLI to create a gallery, use the `--permissions groups` parameter. You can't use an existing gallery, the property can't currently be updated.
55
+
56
+
## Share to subscriptions and tenants
57
+
58
+
First you create a gallery under `Microsoft.Compute/Galleries` and choose `groups` as a sharing option.
59
+
60
+
When you are ready, you share your gallery with subscriptions and tenants. Only the owner of a subscription, or a user or service principal with the `Compute Gallery Sharing Admin` role at the subscription or gallery level, can share the gallery. At this point, the Azure infrastructure creates proxy read-only regional resources, under `Microsoft.Compute/SharedGalleries`. Only subscriptions and tenants you have shared with can interact with the proxy resources, they never interact with your private resources. As the publisher of the private resource, you should consider the private resource as your handle to the public proxy resources. The subscriptions and tenants you have shared your gallery with will see the gallery name as the subscription ID where the gallery was created, followed by the gallery name.
61
+
55
62
### [Portal](#tab/portaldirect)
56
63
57
64
1. Sign in to the Azure portal at https://portal.azure.com.
58
65
1. Type **Azure Compute Gallery** in the search box and select **Azure Compute Gallery** in the results.
66
+
1. In the **Azure Compute Gallery** page, click **Add**.
67
+
1. On the **Create Azure Compute Gallery** page, select the correct subscription.
68
+
1. Complete all of the details on the page.
69
+
1. At the bottom of the page, select **Next: Sharing method**.
70
+
:::image type="content" source="media/create-gallery/create-gallery.png" alt-text="Screenshot showing where to select to go on to sharing methods.":::
71
+
1. On the **Sharing** tab, select **RBAC + share directly**.
72
+
73
+
:::image type="content" source="media/create-gallery/share-direct.png" alt-text="Screenshot showing the option to share using both role-based access control and share directly.":::
74
+
75
+
1. When you are done, select **Review + create**.
76
+
1. After validation passes, select **Create**.
77
+
1. When the deployment is finished, select **Go to resource**.
78
+
79
+
80
+
To share the gallery:
81
+
82
+
1. On the page for the gallery, select **Sharing** from the left menu.
83
+
1. Under **Direct sharing settings**, select **Add**.
84
+
85
+
:::image type="content" source="media/create-gallery/direct-share-add.png" alt-text="Screenshot showing the option to share with a subscription or tenant.":::
59
86
87
+
1. If you would like to share with someone within your organization, for **Type** select *Subscription* or *Tenant* and choose the appropriate item from the **Tenants and subscriptions** drop-down. If you want to share with someone outside of your organization, select either *Subscription outside of my organization* or *Tenant outside of my organization* and then paste or type the ID into the text box.
88
+
1. When you are done adding items, select **Save**.
0 commit comments