Open Akshat59 opened 10 months ago
Thanks for the feedback. We'll plan the API version update. For now, please use "Invoke-AzRest" to work around this.
$payload = @{location="eastus2"; properties=@{sku=@{name="StandardV2"}}} | ConvertTo-Json -Depth 10
Invoke-AzRest -Method PUT -Uri "https://management.azure.com/subscriptions/******/resourceGroups/******/providers/Microsoft.StreamAnalytics/streamingjobs/******?api-version=2021-10-01-preview" -Payload $payload
(Replace "**" with your real subscription ID / resource group name / stream analytics job name.)
Description
Cannot create StandardV2 new stream analytics jobs using New-AzStreamAnalyticsJob Can create "standard" SAJ but not 'v2' version. No way to provide api version
Command Used New-AzStreamAnalyticsJob -ResourceGroupName 'rg-poc6' -name 'rg-saj-1' -location 'eastus2' -SkuName "StandardV2"
Error: Az.StreamAnalytics.internal\New-AzStreamAnalyticsJob : Feature or property 'sku.name' is not supported in API version 2017-04-01-preview. Please use API version 2021-10-01-preview. At C:\Users\akshat_soni\Documents\WindowsPowerShell\Modules\Az.StreamAnalytics\2.0.0\custom\New-AzStreamAnalyticsJob.ps1:315 char:11
Issue script & Debug output
Environment data
Module versions
Error output
Az.StreamAnalytics.internal\New-AzStreamAnalyticsJob : Feature or property 'sku.name' is not supported in API version 2017-04-01-preview. Please use API version 2021-10-01-preview.