Skip to content

Commit 46c8f03

Browse files
authored
Merge pull request #205867 from cynthn/best-practices-direct
Fixing missing portal instructions
2 parents f540879 + 78024e1 commit 46c8f03

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
27.6 KB
Loading

articles/virtual-machines/share-gallery-direct.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: virtual-machines
66
ms.subservice: gallery
77
ms.topic: how-to
88
ms.workload: infrastructure
9-
ms.date: 07/18/2022
9+
ms.date: 07/25/2022
1010
ms.author: saraic
1111
ms.reviewer: cynthn
1212
ms.custom: template-how-to , devx-track-azurecli
@@ -52,11 +52,40 @@ During the preview:
5252
## Prerequisites
5353

5454
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+
5562
### [Portal](#tab/portaldirect)
5663

5764
1. Sign in to the Azure portal at https://portal.azure.com.
5865
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.":::
5986

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**.
6089

6190
### [CLI](#tab/clidirect)
6291

0 commit comments

Comments
 (0)