title | description | services | author | ms.service | ms.topic | ms.date | ms.author | zone_pivot_groups |
---|---|---|---|---|---|---|---|---|
Deploy a Vue app on Azure Static Web Apps |
Learn to deploy a Vue app to Azure Static Web Apps with the Azure portal. |
static-web-apps |
craigshoemaker |
static-web-apps |
how-to |
08/02/2023 |
cshoe |
devops-or-github |
In this article, you learn to deploy a Vue application to Azure Static Web Apps using the Azure portal.
[!INCLUDE prerequisites]
::: zone pivot="github"
This article uses a GitHub template repository to make it easy for you to get started. The template features a starter app to deploy to Azure Static Web Apps.
-
Navigate to the following location to create a new repository:
-
Name your repository my-first-static-web-app
-
Select Create repository from template.
:::image type="content" source="media/getting-started/create-template.png" alt-text="Screenshot of create repository from template button.":::
::: zone-end
::: zone pivot="azure-devops"
This article uses an Azure DevOps repository to make it easy for you to get started. The repository features a starter app used to deploy using Azure Static Web Apps.
-
Sign in to Azure DevOps.
-
Select New repository.
-
In the Create new project window, expand Advanced menu and make the following selections:
Setting Value Project Enter my-first-web-static-app. Visibility Select Private. Version control Select Git. Work item process Select the option that best suits your development methods. -
Select Create.
-
Select the Repos menu item.
-
Select the Files menu item.
-
Under the Import repository card, select Import.
-
Copy a repository URL for the framework of your choice, and paste it into the Clone URL box.
-
Select Import and wait for the import process to complete.
::: zone-end
[!INCLUDE create steps]
In the Build Details section, add configuration details specific to your preferred front-end framework.
-
Select Vue.js from the Build Presets dropdown.
-
Keep the default value in the App location box.
-
Leave the Api location box empty.
-
Keep the default value in the App artifact location box.
Select Review + create.
:::image type="content" source="media/getting-started-portal/review-create.png" alt-text="Screenshot of the create button.":::
::: zone pivot="github"
Note
You can edit the workflow file to change these values after you create the app.
::: zone-end
Select Create.
:::image type="content" source="media/getting-started-portal/create-button.png" alt-text="Screenshot of create button.":::
Select Go to resource.
:::image type="content" source="media/getting-started-portal/resource-button.png" alt-text="Screenshot of the go to resource button.":::
[!INCLUDE view website]
[!INCLUDE clean up]
[!div class="nextstepaction"] Add an API to your application