Skip to content

Commit fdf9322

Browse files
added new triggers command for CLI and PS
1 parent 7e1765f commit fdf9322

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

articles/virtual-machines/image-builder-triggers-how-to.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Before setting up your first trigger, ensure you're using Azure Image Builder AP
2727

2828
### Register the features
2929

30-
To use VM Image Builder with triggers, you need to register the feature. Check your registration by running the following commands:
30+
To use VM Image Builder with triggers, you need to register the below features. Check your registration by running the following commands:
3131

3232
```azurecli-interactive
3333
az provider show -n Microsoft.VirtualMachineImages -o json | grep registrationState
@@ -46,7 +46,16 @@ az provider register -n Microsoft.KeyVault
4646
az provider register -n Microsoft.Storage
4747
az provider register -n Microsoft.Network
4848
```
49+
Register the auto image build triggers feature:
4950

51+
```azurecli-interactive
52+
az feature register --namespace Microsoft.VirtualMachineImages --name Triggers
53+
```
54+
55+
To register the auto image build triggers feature using PowerShell, run the following command:
56+
```azurepowershell-interactive
57+
Register-AzProviderPreviewFeature -ProviderNamespace Microsoft.VirtualMachineImages -Name Triggers
58+
```
5059
### Set variables
5160
First, you need to set some variables that you'll repeatedly use in commands.
5261

0 commit comments

Comments
 (0)