Azure / Azure/azure-powershell

Incorrect error message

Open
#12,438 6 comments 0 reactions 1 assignee Claimed by @VeryEarly View on GitHub
act-observability-squad Monitor Monitor - Operational Insights
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

## 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

```

```

## Module versions

```powershell

```

## Debug output

```

```

## Error output

```

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.