OfficeDev / microsoft-teams-ui-component-library

Component library enhanced experiences styled for use in Microsoft Teams custom applications.
MIT License
127 stars 31 forks source link

Need deployment guide to host in azure #81

Closed loksayi closed 3 years ago

loksayi commented 3 years ago

Hi team, Can anyone help me out here to deploy the app and host it in Azure? Do we have any supporting documentation or guide on how can we deploy it to Azure and make it work as a playground version?

thure commented 3 years ago

Hi @loksayi — there is a guide for this in the getting started docs: Build and run your first Microsoft Teams app with React.

loksayi commented 3 years ago

Hi @thure , Thanks for responding. But I'm still unable to provison/deploy the app through visual studio code. I'm getting the attached error when I'm following the steps as per Microsoft docs.

FYI : This app is having Story book as well in the project. image

Question : Do we need to use pipelines for deploying these kind of apps ? or any other way to host/deploy it ? Kindly suggest

image

asnow003 commented 3 years ago

Hello @loksayi have you tried our Visual Studio Code extension... it will guide you through deploying to Azure and can get more support there if you have issues.

Go to VS Code and install the extension by searching for "Teams toolkit"

loksayi commented 3 years ago

Hi @asnow003, First of all thanks for responding. The errors that I have mentioned above are from the VS code Teams Toolkit extension only. It was not supporting this project type to deploy it to azure. Do we have any other options to do it?

loksayi commented 3 years ago

Thanks for the replies guys. I got the solution by building the storybook using yarn run build-storybook which gives a static website in output folder name storybook-static. Then I have referred to the following link for deploying a static website to azure blob storage which got worked. https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website-how-to?tabs=azure-portal