3

I created an Angular app using angular-cli:

npm install -g @angular/cli

ng new my-app

Now I want to deploy this simple Angular app to Azure.

I have published setting how can I do it?

1

2 Answers 2

10

After many hours of researching i found it and it is very simple

just follow the steps

  1. run ng build --prod (this will create a dist folder in your application)
  2. open visual studio and select open >> website select the path of your project inside dist folder and open
  3. then just right click on your project and select Publish Web App then select your published profile setting and deploy it
Sign up to request clarification or add additional context in comments.

2 Comments

Looking for some test site to upload in Azure. This is the quick and best one. Thanks a ton!
Yes, it is the better option.
2

VS Code

You can deploy your Angular App which is using angular-cli easily from Visual Studio Code(VS code)

Refer to this article (You just need to install the Azure App Service extension)

enter image description here

After you deployed the app,

enter image description here

Visual Studio 2017

You need to create a Project as (ASP.NET Core Web application) as Angular Project

enter image description here

enter image description here

After then you can publish your App as WebPackage Deployment to Azure.

Here is the Reference for Publishing your Angular App from VS 2017

I'd say you can use the Visual Studio Code for your use-Case rather than Visual Studio 2017

6 Comments

but i want to deploy cli app
@Faisal Use Visual Studio Code as i mentioned in my answer initially
@Faisal Refer the article in my answer which might useful
@Faisal Is my above answer helpful for you? If yes please accept/upvote my answer.
it was helpful for learning this side of technology but it did'nt work for me. i'll post my answer soon
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.