PS C:\Users\gonkers\source\repos\static-test> npm install -g @azure/static-web-apps-cli
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@azure/msal-node@2.5.1',
npm WARN EBADENGINE required: { node: '16|| 18 || 20' },
npm WARN EBADENGINE current: { node: 'v21.2.0', npm: '10.2.3' }
npm WARN EBADENGINE }
added 324 packages in 16s
48 packages are looking for funding
run `npm fund` for details
PS C:\Users\gonkers\source\repos\static-test> swa
Welcome to Azure Static Web Apps CLI (1.1.6)
(node:31040) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
→ No configuration found, running swa init...
(node:18064) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
√ Choose a configuration name: ... static-test
Detected configuration for your app:
- Framework(s): none
- App location: .
- Output location: .
- API location:
- API language:
- API version:
- Data API location:
- App build command:
- API build command:
- App dev server command:
- App dev server URL:
- API dev server URL:
√ Are these settings correct? ... no
× What's your app location? ... .
✖ Operation canceled. Exit.
PS C:\Users\gonkers\source\repos\static-test> swa login
Welcome to Azure Static Web Apps CLI (1.1.6)
(node:37080) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Checking Azure session...
✔ Successfully logged into Azure!
✖ Failed to setup project: No valid subscription found for tenant XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX..
Please read https://docs.microsoft.com/azure/cost-management-billing/manage/no-subscriptions-found
✖ If you believe this behavior is unexpected, please raise a GitHub issue at:
https://github.com/Azure/static-web-apps-cli/issues/new/choose
Desktop (please complete the following information):
Before filing this issue, please ensure you're using the latest CLI by running
swa --version
and comparing to the latest version on npm.Are you accessing the CLI from the default port
:4280
?--port
) and accessing the CLI from that port:4280
ℹ️ NOTE: Make sure to enable debug logs when running any
swa
commands using--verbose=silly
Describe the bug I ran the command
swa login
and received the error ✔ Successfully logged into Azure! ✖ Failed to setup project: No valid subscription found for tenant XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX. Please read https://docs.microsoft.com/azure/cost-management-billing/manage/no-subscriptions-found✖ If you believe this behavior is unexpected, please raise a GitHub issue at: https://github.com/Azure/static-web-apps-cli/issues/new/choose
To Reproduce Steps to reproduce the behavior:
swa login
Expected behavior I expected to login to Azure.
Screenshots
Desktop (please complete the following information):
Additional context I am just trying to get started with Azure static web apps with the swa cli. I was following the instructions here https://azure.github.io/static-web-apps-cli/docs/use/install