azure-arm-apimanagement ^5.0.0 defaults capacity to 1 for consumption sku #2613
Labels
API Management
CodeGen
Issues that relate to code generation
Mgmt
This issue is related to a management-plane library.
Package Name: azure-arm-apimanagement
Package Version: ^5.0.0
Operating system: Windows
nodejs
Describe the bug
defaults capacity to 1 for consumption sku. This is causing a bad request returned by the server as it expects no capacity property for consumption sku.
To Reproduce
Steps to reproduce the behavior:
let serviceResource = {
location: "west us",
sku: <ApiManagementModels.ApiManagementServiceSkuProperties>{
name: "Consumption"
},
publisherEmail: [email protected]
publisherName: "foo"
};
Expected behavior
Must create a api management service with consumption sku
Actual Behavior
{"code":"InvalidParameters","message":"Invalid parameter: Specifying Sku Capacity for Sku Type 'Consumption' is invalid.","details":null,"innerError":null}
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: