I want to access my deployment slots inside azure portal via visual studio code

Darragh Martin 86 Reputation points
2023-01-30T17:16:11.4533333+00:00

I set up a function app in Azure portal and I also created an extra slot inside the deployment slot for this app. I have 2 questions. When I open my visual studio code it does not list my deployment slot for this function app and how do I go about getting it to show up. Also if I want to push code to that test deployment slot and not the main slot of my function app, how can I get my directory comman line to pinpoint it towards it so allow me to push my code to my test slot and not my production slot. Much help appreciated

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,264 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,421 Reputation points
    2023-02-04T11:01:30.38+00:00

    @Darragh Martin

    Ideally, the slot should show up under the function app like below

    User's image

    Please update the function core tools and Azure function extension in the VS code if you don't see the slot.

    If the slot doesn't show up even after upgrading the versions, please try to use the function core tools command to deploy to the function deployment slot. The name would be functionAppname-slotname (example: functiontest-dev)

    func azure functionapp publish <FunctionAppslotName>

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-core-tools-reference?tabs=v2#func-azure-functionapp-publish

    0 comments No comments