Skip to content

Incorrect error message #12438

Open
Open
@yossi-y

Description

@yossi-y

Description

Two issues:

  1. Customer was able to create a cluster without providing -SkuName.

    • In cluster create REST, you are required to provide both -SkuName and -SkuCapacity
    • In cluster update, when updating capacity, you need to provide both -SkuName and -SkuCapacity
  2. We have a case where customer configured CMK and then updated it with incorrect capacity value and got generic error message:
    "Update-AzOperationalInsightsCluster: Operation returned an invalid status code 'BadRequest'"

Instead of the one returned from the API:
{
"error": {
"code": "BadRequest",
"message": "CapacityReservationLevel must be in the range of 1000-3000. Contact us to increase the limit LAIngestionRate@microsoft.com"
}
}

Steps to reproduce

Update-AzOperationalInsightsCluster -ResourceGroupName {rg-name} -ClusterName {cluster-name} -SkuName CapacityReservation -SkuCapacity 1000


## Environment data

<!-- Please run $PSVersionTable and paste the output in the below code block
     If running the Docker container image, indicate the tag of the image used and the version of Docker engine-->


## Module versions

<!-- Please run (Get-Module  -ListAvailable) and paste the output in the below code block -->

```powershell

Debug output


Error output


Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions