Azure / static-web-apps-cli

Azure Static Web Apps CLI ✨

Home Page:https://aka.ms/swa/cli-local-development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure Function .net 8.0 deploy error

eolamisan opened this issue · comments

Are you accessing the CLI from the default port :4280 ?

  • No, I am using a different port number (--port) and accessing the CLI from that port
  • Yes, I am accessing the CLI from port :4280

Make sure you are accessing the URL printed in the console when running swa start!

ℹ️ NOTE: Make sure to enable debug logs when running any swa commands using --verbose=silly

Describe the bug
SWA cli does not allow to deploy an .net 8.0 Azure function.

To Reproduce
Steps to reproduce the behavior:

Provide "dotnet-isolated:8.0" as "apiRuntime" in file staticwebapp.config.json.

    "platform": {
      "apiRuntime": "dotnet-isolated:8.0"
    }

  1. Type in command 'swa deploy --deployment-token xxx'
  2. See error

Expected behavior
The API / Azure Function is deployed.

Screenshots

image

image

Desktop (please complete the following information):

  • OS: Windows 11
  • Version 23H2

Additional context
Add any other context about the problem here.

I am facing the same issue while running swa start after upgrading to apiRuntime to dotnet-isolated:8.0

Hi @eolamisan and @jeroen-van-dijk, swa-cli@1.1.7 has been released which will support dotnet-isolated:8.0, thanks for reporting.