Azure / Azure/static-web-apps

az staticwebapp list fails when using free tier

Open
#1,410 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I am trying to dynamically get the deployment token in my pipeline after making a static web app, to do this i'm running the below script in bash:
APIKEY=$(az staticwebapp secrets list --name $(staticWebAppName) | jq -r '.properties.apiKey')

this is returning that it cannot find my static web app in the subscription. When i was using the standard tier this worked as expected... I even tried az staticwebapp list --subscription and it's returning an empty array. It seems like if i pass --resource-group it works? When i was using standard tier yesterday resource group wasn't required and documentation states that.

**Expected behavior**
I can list static web apps in a sub without resource group when they're free tier

**Screenshots**
![image](https://github.com/Azure/static-web-apps/assets/7952210/655e24c8-9e13-4b86-97b8-5889a21dd5f9)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.