This is a good question. I have to imagine yes because the cli supports it, but I will have to test how to do it: learn.microsoft.com/en-us/azure/static-web-apps/static-web-apps-cli-deploy
I got this error âœ- swa deploy cannot be used when --output-location option is also set. âœ- You either have to use the positional argument or option, not both at the same time.
Can I be the only one that is getting a lot of issue with the deployment? Locally the project worked but it just cant publish smoothly. I will try to debug. or Update Visual Studio, or do both, and install latest version of nuget...
not sure what you mean by "it was on preview" it does deploy your web app to static web apps. I have a full walkthrugh ua-cam.com/video/AgP4p8qhi4s/v-deo.html as well
Thanks for all the videos it helped a lot!! However, in this instance when i select publish i get this âœ- swa deploy cannot be used when --output-location option is also set. âœ- You either have to use the positional argument or option, not both at the same time. and i already install cli it wont let me publish the project any thougths? :(
Thanks for this! Question: I have an existing Blazor SWA project that I have deployed using the GitHub Actions method. Can I convert this project over to this Publish method without creating a new Azure SWA instance?
@@JamesMontemagno Did David Fowler authorize the use of NPM? I remember him commenting on a community call his dislike for NPM :) But anyway this is a great feature!
As usual, awesome video. Love your enthusiasm!
Bit late to this video but better late than never. Thank you once again man. You flippen rock🤘🤘
Thanks for posting. It seems like this is the way to go.
It's gonna be giving us the taste of Azure before we use it. Cool!!
Love your videos James
Same..
Though.... I've just nearly fell out of my chair as was watching one from 5 years ago.... development... theres some prices we pay.
Great stuff man!
Back to following you aging 😊, nice feature 👍
Hey man! Great video. I do have a question, would this work if the app is hosted with an API? Thanks! 😊
This is a good question. I have to imagine yes because the cli supports it, but I will have to test how to do it: learn.microsoft.com/en-us/azure/static-web-apps/static-web-apps-cli-deploy
@@JamesMontemagno Sweet, I'll give it a go too, thank you!!!
@@ecblanco hi, are succeed to test hosted app?
@@JeprianaW Yes it did worked!
you are a real hero Thank you. amazing content
So this is like Netlify kind of
It deploys to preview environment. How can we choose Production or convert deployment on preview to production?
Open Properties/PublishProfiles/YourProject.pubxml file and replace preview with production
I got this error
âœ- swa deploy cannot be used when --output-location option is also set.
âœ- You either have to use the positional argument or option, not both at the same time.
Can I be the only one that is getting a lot of issue with the deployment? Locally the project worked but it just cant publish smoothly. I will try to debug. or Update Visual Studio, or do both, and install latest version of nuget...
If you use NuGet Packages in private feeds in Azure DevOps? Thanks.
thank you
Nice 👏
that is wrong, that was not a deployment.... it was on preview ... u should show how to actually deploy or change the title. it's missleading
not sure what you mean by "it was on preview" it does deploy your web app to static web apps. I have a full walkthrugh ua-cam.com/video/AgP4p8qhi4s/v-deo.html as well
I can do it without going to azure
Thanks for all the videos it helped a lot!! However, in this instance when i select publish i get this
âœ- swa deploy cannot be used when --output-location option is also set.
âœ- You either have to use the positional argument or option, not both at the same time.
and i already install cli it wont let me publish the project any thougths? :(
i get the same error. any ideas? did you end up fixing it?
@@DilkielGaming no :(
In publish section there is no Static Web app options, it starts with Azure container. I am using the latest version of vs 2022
Hmmm perhaps it is still in the preview version
@@JamesMontemagno the same
I have the last version of "preview version"
🎉❤
how is it free when you selected pay as you go? I am rather confused there you will be charged on pay as you go right? @JamesMontemagno
Use a temporary credit card this way You make sure it never happens
Thanks for this! Question: I have an existing Blazor SWA project that I have deployed using the GitHub Actions method. Can I convert this project over to this Publish method without creating a new Azure SWA instance?
I believe you will need to switch it over unfortunately as how SWA configures things from my understanding
@@JamesMontemagno Thanks! The Publish works great!! Fortunately the app is still in development, so deploying to a new SWA instance was not a problem
I know I could research this, but why the npm dependency? I find that a bit weird for a .NET-centric tool chain
It’s is just how the static web app cli is built as it works with a plethora of web frameworks
@@JamesMontemagno Did David Fowler authorize the use of NPM? I remember him commenting on a community call his dislike for NPM :)
But anyway this is a great feature!
How do you get this to go to the production (and not preview) environment?
change preview to production in the file under Properties - PublishProfiles (Solution Explorer)
I updated the pubxml file in a text editor and changed preview to production which worked for me.
т.е в азуре можно нахаляву что-то разместить?
Yes, there is A LOT in Azure for Free: azure.microsoft.com/free/
Azure static web is free for 12 months only
Can I also upload Blazor Web App?
As long as it is web assembly only.