Skip to content

Commit 1c0488a

Browse files
authored
Merge pull request #206343 from jamasten/patch-2
Added PowerShell to register Resource Provider
2 parents 351b433 + 4b58b00 commit 1c0488a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

articles/virtual-machines/linux/image-builder-json.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,20 @@ The location is the region where the custom image will be created. The following
104104
105105
Use the following command to register the feature for Azure Image Builder in Azure Government regions (USGov Arizona and USGov Virginia).
106106

107+
### [Azure PowerShell](#tab/azure-powershell)
108+
109+
```powershell
110+
Register-AzProviderPreviewFeature -ProviderNamespace Microsoft.VirtualMachineImages -Name FairfaxPublicPreview
111+
```
112+
113+
### [Azure CLI](#tab/azure-cli)
114+
107115
```azurecli-interactive
108116
az feature register --namespace Microsoft.VirtualMachineImages --name FairfaxPublicPreview
109117
```
110118

119+
---
120+
111121
```json
112122
"location": "<region>",
113123
```

0 commit comments

Comments
 (0)