Skip to content

Commit c1692f7

Browse files
Merge pull request #280243 from SnehaSudhirG/08July-PreviewUpdate
Added info on registering preview feature using cli and ps
2 parents dee9400 + 977dae8 commit c1692f7

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

articles/update-manager/manage-pre-post-events.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Manage the pre and post maintenance configuration events (preview) in Azure Update Manager
33
description: The article provides the steps to manage the pre and post maintenance events in Azure Update Manager.
44
ms.service: azure-update-manager
5-
ms.date: 06/29/2024
5+
ms.date: 07/08/2024
66
ms.topic: how-to
77
ms.author: sudhirsneha
88
author: SnehaSudhirG
@@ -28,11 +28,11 @@ Azure Update Manager leverages Event grid to create and manage pre and post even
2828

2929

3030

31-
32-
3331
## Register your subscription for public preview
3432

35-
To self-register your subscription for public preview in Azure portal:
33+
To self-register your subscription for public preview, follow these steps:
34+
35+
#### [Azure portal](#tab/portal)
3636

3737
1. Sign in to the [Azure portal](https://portal.azure.com) and select **More services**.
3838
1. On the **All services** page, search for **Preview features**.
@@ -41,6 +41,19 @@ To self-register your subscription for public preview in Azure portal:
4141

4242
:::image type="content" source="./media/tutorial-using-functions/register-feature.png" alt-text="Screenshot that shows how to register the preview feature." lightbox="./media/tutorial-using-functions/register-feature.png":::
4343

44+
#### [Azure CLI](#tab/cli)
45+
46+
```azurecli-interactive
47+
az feature register --name InGuestPatchPrePostMaintenanceActivity --namespace Microsoft.Maintenance
48+
```
49+
50+
#### [PowerShell](#tab/ps)
51+
52+
```azurepowershell-interactive
53+
Register-AzProviderFeature -FeatureName "InGuestPatchPrePostMaintenanceActivity" -ProviderNamespace "Microsoft.Maintenance"
54+
```
55+
---
56+
4457
## Timeline of schedules for pre and post events
4558

4659
**We recommend you to go through the following table to understand the timeline of the schedule for pre and post events.**

0 commit comments

Comments
 (0)