Open thelethalkind opened 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Wmengmsft, @MehaKaushik, @shurd, @anfeldma-ms
This issue need to be fixed on new version of SDK.
Current SDK based on API 2015-04-01 doesn't support ServiceAllowedNextValue
as type of ScaleAction
https://github.com/Azure/azure-rest-api-specs/blob/dfbbdd2cb202c7f543845241f330c958786e6e4a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/autoscale_API.json#L483
I didn't find any new version API for autoscale.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzMonEssential.
Author: | thelethalkind |
---|---|
Assignees: | VeryEarly |
Labels: | `Monitor - Autoscale`, `Service Attention`, `customer-reported`, `question` |
Milestone: | - |
@AzMonEssential Following up to see if there is any update on this issue? - Thank you
Following up since I just ran into the same issue... it appears that the "preview" version of the API https://github.com/Azure/azure-rest-api-specs/blob/b0f48ad950e29525d407607c336b549bcfb15333/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/autoscale_API.json does have ServiceAllowedNextValue defined, so when will the Az.Monitor module be updated to use this version of the API?
@KranthiPakala-MSFT @thelethalkind @bewithers please let us know if the issue is still relevant?
Description
Autoscaling has been set up on a service bus namespace. When running the function Get-AzAutoscaleSetting with resource group name parameter against the resource group that contains this service bus, it returns the error:
Get-AzAutoscaleSetting : Exception type: SerializationException, Message: Microsoft.Rest.SerializationException: Unable to deserialize the response. ---> Newtonsoft.Json.JsonSerializationException: Error converting value "ServiceAllowedNextValue" to type 'Microsoft.Azure.Management.Monitor.Models.ScaleType'. Path 'properties.profiles[0].rules[0].scaleAction.type', line 1, position 933. ---> System.ArgumentException: Requested value 'ServiceAllowedNextValue' was not found.
Steps to reproduce
Environment data
Module versions
Debug output
Error output