Azure / Azure/azure-cli

az webapp up doesn't check pricing tier

Open
#25,597 2 comments 0 reactions 1 assignee Assigned to @seligj95 View on GitHub
act-observability-squad app-service-webapp-up Auto-Assign Service Attention Web Apps
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Related command**
az webapp up --resource-group myAuthResourceGroup-diberry --name diberry-frontend-aad-2 --sku FREE --location "West Europe" --os-type Linux --logs --runtime "NODE:18-lts"

**Describe the bug**

BUG: The pricing tier FREE should be checked at the beginning of the command and stopped before the resource group and plan are created.

**To Reproduce**

Run command when the 1 free app is already created.

**Expected behavior**

Errors out before the resource group and plan are created.

**Environment summary**

**Additional context**

```
az webapp up --resource-group myAuthResourceGroup-diberry --name diberry-frontend-aad-2 --sku FREE --location "West Europe" --os-type Linux --logs --runtime "NODE:18-lts"
/usr/lib64/az/lib/python3.9/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,
The webapp 'diberry-frontend-aad-2' doesn't exist
Creating Resource group 'myAuthResourceGroup-diberry' ...
Resource group creation complete
Creating AppServicePlan 'diberry_asp_3043' ...
This subscription has reached the limit of 1 Free Linux app service plan(s) it can create in this region. Please choose a different sku or region.
```

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.