Meet the error when run Get-AzStreamAnalyticsDefaultFunctionDefinition -Name 'txkcamvmzp' -JobName 'wsuxycmjxg' -ResourceGroupName 'otfqujpkad' -BindingType 'Microsoft.MachineLearning/WebService' -Endpoint 'omreptvhau' -UdfType 'Scalar'
InvalidOperation: C:\Users\abc\Documents\PowerShell\Modules\Az.StreamAnalytics\2.0.1\StreamAnalytics.Autorest\custom\Get-AzStreamAnalyticsDefaultFunctionDefinition.ps1:164
Line |
164 | $functionRetrieveDefaultDefinition.BindingRetrievalProperty …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The property 'BindingRetrievalPropertyEndpoint' cannot be found on this object. Verify that the property exists and can be set.
PS D:> $functionRetrieveDefaultDefinition = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters]::New()
PS D:> $functionRetrieveDefaultDefinition
BindingType
-----------
PS D:\code\test\api_cov> $functionRetrieveDefaultDefinition | fl
BindingRetrievalPropertyExecuteEndpoint :
BindingRetrievalPropertyUdfType :
BindingType :
PS D:> $functionRetrieveDefaultDefinition.BindingRetrievalPropertyEndpoint = 'abc'
InvalidOperation: The property 'BindingRetrievalPropertyEndpoint' cannot be found on this object. Verify that the property exists and can be set.
Description
Meet the error when run
Get-AzStreamAnalyticsDefaultFunctionDefinition -Name 'txkcamvmzp' -JobName 'wsuxycmjxg' -ResourceGroupName 'otfqujpkad' -BindingType 'Microsoft.MachineLearning/WebService' -Endpoint 'omreptvhau' -UdfType 'Scalar'
The source code:
Reproduce it like below.
Issue script & Debug output
Environment data
Module versions
Error output
No response