microsoft / studentambassadors

This repository is for Microsoft Learn Student Ambassadors.
MIT License
127 stars 47 forks source link

Missing Information: Publish Azure web static apps using an arm template #25

Open Itashamodi opened 2 years ago

Itashamodi commented 2 years ago

Describe the bug

No information in prerequisites about installation of various libraries for json to run in the code No information was provided in the module on how to fetch your github repo link. open powershell steps from Azure portal. Commands were not working properly(az account set --subscription name)

To Reproduce

Following Tutorial: https://learn.microsoft.com/en-us/azure/static-web-apps/publish-azure-resource-manager?tabs=azure-cli Steps to reproduce the behavior:

  1. Sign in to Azure
  2. follow command az login
  3. az account set --subscription Visual Studio Enterprise Subscription (My subscription is Visual Studio Enterprise Subscription)
  4. See error

Expected behavior

Bug needs to be resolved Documentation was required on how to debug your JSON code in prerequisites

Screenshots

Screenshot (1478)

Screenshot (1481) file in which my subscription is clearly seen as (Visual Studio Enterprise Subscription) error screenshot

Screenshot (1480)

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

No information was provided how to connect debugger for json in vscode


🎓 Add a tag Student Ambassador


softchris commented 2 years ago

please add which guide you were following, is it this one? https://learn.microsoft.com/en-us/azure/static-web-apps/publish-azure-resource-manager?tabs=azure-cli @Itashamodi

also can you please try to run this command to get a list of your subscriptions?

az account subscription list

you should be able to use ID or name for any of the subscriptions listed by that command.

saragibby commented 1 year ago

@Itashamodi to use the name in these commands you will need to wrap it in quotes so that the command recognizes the full string, spaces and all in the subscription name. Alternatively, you can provide the subscription ID, both are available in Azure Portal and in the subscription list that can be output to the terminal.

If you have a chance, it would be great to confirm using name works for you when wrapped in quotes.

Thanks! Sara