I'm trying to set up my first Azure Static Web App, and I'm following this website.
I have installed Node.js, VSC and Azure Functions Core Tools. I'm trying to use the Vanilla API starter app. I have created a reposatory and cloned it. I have installed the CLI (or so I think atleast). How do I build the Vanilla app?
If you are looking for building your first Azure Static Web app suggest you to follow steps from below official document .
Quickstart: Building your first static site using the Azure CLI
Let us know if you have query or issue.
Related
In Azure, I have a Static Web App and an ASP.NET web API (running in App Service).
Following this guide on Microsoft learn https://learn.microsoft.com/en-us/azure/static-web-apps/local-development, I know it's possible to run a static web app and an azure functions API locally, but I can't find anything about a different kind of API.
When I run the CLI command " swa start dist/MyApp.front-end --api-location 'C:\GIT\MyApp.Backend'" I get the error:
[api] Unable to find project root. Expecting to find one of host.json, local.settings.json in project root.
This makes sense... because my project has appsettings.development.json instead of the local.settings.json, but I was hoping it was smart enough to use the other files.
Does anyone have any experience with running a static web app and asp.net api locally with the static web app CLI?
I want to apply winnovative html to pdf converter for one of my solution in azure function, but during installation it says use of Cloud service, which seems to be outdated. Do we install it using Azure App service?
I took the liberty to download the latest version of the HtmlToPdf application, pushed it to GitHub, and deployed it to an Azure App Service (lowest tier, free).
You can see it running here: https://so-htmltopdf.azurewebsites.net/
I have also included the Azure template for the App Service, which includes the configuration for deploying directly from GitHub.
Assuming Winnovative is a 3rd party tool, you'll need to use Virtual Machines or Containers, where you have control over the file system.
PS: You can run Azure Functions on Containers/ Virtual Machines using the official image.
https://hub.docker.com/_/microsoft-azure-functions-base
I have an existing website in Blazor Web assembly and it is working fine with Azure store account (Azure Storage Static Website).
The same app, when I deployed in Azure Static WebApp through GitHub workflow action, is not working.
I can see below errors in the browser console window.
Only JavaScript files under _content and _framework folders are not able to load. I don't see any option in Azure Static WebApp to verify these files deployed successfully or not.
Updated
Visual Studio 2019 default template app with default GitHub workflow working but I cannot use default workflow file so I tried to change as per my folder structure, below is my project structure
Root/MyApp/MyApp.csproj
Root/MyAPI/MyAPI.csproj
Azure Static Web Apps are currently in preview and support JavaScript and TypeScript front-end apps including those developed with popular frameworks like Vue.js, React, Angular and more.
Since it uses Github actions to deploy the application we just need to modify the workflow file generated by azure static web app to deploy our Blazor Application.
you can refer the article to deploy Blazor WASM app:
https://www.maneu.net/blog/2020-05-deploy-blazor-client-apps-with-azure-static-apps/
I have been using azure cli installed on windows 7 locally. I want to use it on azure web app as well. But I did not find any relevant article to accomplish it. Could anyone let me know how to install az-cli on azure web app windows instance.
Thanks
If you want to create resources from your code you should use the Azure REST API:
https://learn.microsoft.com/en-us/rest/api/azure/
It also has client libraries, you can read more about it on the link.
We have developed a custom API App connector and have created Logic App using this. We are able to deploy the Custom Api App using Visual Studio but unable to find a way to deploy it using PowerShell.
We have created a deployable zip package for the Api App (similar to Web Apps) but not sure how to publish/deploy it.
Any help is appreciated.
Api Apps also need to be deployed with an App Service Plan, Gateway Host, Gateway, and an API App Host.
See this example template.
For more information read here:
https://azure.microsoft.com/en-us/documentation/articles/app-service-logic-arm-with-api-app-provision/