Skip to content

Commit 3f2c798

Browse files
authored
Merge pull request #103498 from saraelsa/patch-1
Use the Powershell API for setting app config
2 parents 317af94 + 9b5a69d commit 3f2c798

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

articles/event-grid/storage-upload-process-images.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,13 @@ az webapp config appsettings set --name $webapp --resource-group myResourceGroup
246246
```
247247

248248
```powershell
249-
az webapp config appsettings set --name $webapp --resource-group myResourceGroup `
250-
--settings AzureStorageConfig__AccountName=$blobStorageAccount `
251-
AzureStorageConfig__ImageContainer=images `
252-
AzureStorageConfig__ThumbnailContainer=thumbnails `
253-
AzureStorageConfig__AccountKey=$blobStorageAccountKey
249+
New-AzStaticWebAppSetting -ResourceGroupName myResourceGroup -Name $webapp `
250+
-AppSetting @{ `
251+
AzureStorageConfig__AccountName = $blobStorageAccount `
252+
AzureStorageConfig__ImageContainer = images `
253+
AzureStorageConfig__ThumbnailContainer = thumbnails `
254+
AzureStorageConfig__AccountKey = $blobStorageAccountKey `
255+
}
254256
```
255257

256258
# [JavaScript v12 SDK](#tab/javascript)

0 commit comments

Comments
 (0)