Skip to content

Instructions in tutorial bear little resemblance to Azure web portal and VS Code #1634

@robinnes

Description

@robinnes

I was eventually able to get the sample to work, but it took a lot of tries and calls to the AI assistant. The command "cd api && npm install" didn't work in my terminal. I eventually figured out that it was 2 commands. The instructions to set permissions to the created Azure Storage Account container didn't match what appears in the portal. Likewise for setting the Azure Storage account name and key for the app - apparently that's done in Environment Variables now. I assumed having "Azure Functions" covered the "Core Tools" but it doesn't, and the latter doesn't appear in the list of available extensions - fortunately Copilot identified the issue and gave me a command for installing core tools. Everything you mention on the "PORTS" tab doesn't exist in my (current) version of VS Code. When I created the Static Web App from VS Code, most of the prompts you mention didn't appear. The instructions for which region to install to are contradictory (US West or recommended?). When I finally ran the app from Azure, I got an error getting the sas token (405). Copilot's fix was a change to line 10 of App.tsx making the URL relative when run from Azure - not sure if this was the intention but it worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions