Azure / Azure/azure-cli

function app: AZ CLI displaying misleading error message when creating Y1 app

Open
#14,387 4 comments 0 reactions 0 assignees View on GitHub
act-observability-squad azf_documentation azf_feature_request azf_reviewed customer-reported Functions Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Describe the bug

**Command Name**
`az functionapp plan create`

**Errors:**
```
Invalid sku(pricing tier), please refer to command help for valid values
```

## To Reproduce:

- `az functionapp plan create --name foo --sku Y1 --is-linux false -g bar`
- Consumption plan is not created. Instead misleading error message is shown
- The SKU exists in Azure but Y1 is not hardcoded at AZ CLI source code

## Expected Behavior

- Requested resource should be created
- or AZ CLI should give guidance that Y1 plans must be created with `az functionapp create --consumption-plan-location ...`

## Environment Summary
```
macOS-10.15.5-x86_64-i386-64bit
Python 3.8.2
Installer: HOMEBREW

azure-cli 2.5.1 *

```
## Additional Context

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.