Using SWA to deploy static web app - how to determine the user under which the app has been created ?

Richard Shea 0 Reputation points
2023-09-04T05:27:52.1266667+00:00

I followed the steps at https://learn.microsoft.com/en-gb/azure/static-web-apps/local-development#get-started to use the 'swa' utility to succesfully deploy my static app (I am able to fetch pages from it) but when I go back to my Azure Dashboard I cannot see the app.

I'm guessing the app has been created under some other userid but I can't work out what user id has been used.

I would like to turn the app off and, in addition, I would like to repeat what I did in order to create a swa under the user I wanted to create it for.

How can I see the 'owner' of the static web app I have deployed ?

How can I specify the correct 'owner' when deploying a static web app.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
928 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Richard Shea 0 Reputation points
    2023-09-04T06:02:12.0533333+00:00

    I want to provide an answer to my own question.

    I went into 'Resource Groups' and found that a Resource Group had been created based on the name of the static web app (so the app was called 'foo' and the newly created Resource Group was called 'foo-rg') so this is good because I can now remove the web app.

    On further investigation the 'foo-rg' appeared in the swa-cli.config.json. When I changed that to the resource-group I wanted to use and repeated the deployment everything was as I expected it to be.

    Hope this is useful to somebody.

    0 comments No comments

  2. SnehaAgrawal-MSFT 21,506 Reputation points
    2023-09-07T04:48:36.0766667+00:00

    @Richard Shea Thanks for sharing the resolution that works for you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.