Running ASP.NET Core Web APIs in the Cloud
- As students, you get free access to Azure
- Permanently free offerings
- 100USD credit for commercial offerings
- FAQ
- Works with your Office 365 accounts from HTL Perg
- Step-by-step description for signup and deployment of ASP.NET Web API see following slides
- Open a browser window in which you are logged in with your Office 365 account
- Verify that you are logged in by e.g.checking your emails
- Open Azure portal
- Navigate to Resource Groups
- After a few moments, you should have an active Azure subscription.
- Now we can deploy a Web API
- Open Azure portal
- Follow screenshots on the following slides
Note that it should not be required to enter credit card information. If it is, do not enter any credit card data to make sure you do not have to pay Azure costs.
- Now we have an environment in Azure in which we can deploy our Web API
- Open Visual Studio 2019
- Sign in with your school account
- It is ok to have multiple accounts, Visual Studio allows you to log in with multiple accounts
- Follow screenshots on the following slides
- Now you will have to log in with your school account
- After successful login, you should see your account in Visual Studio
- Follow screenshots on the following slides
- Create an ASP.NET Core 3 Web API project or open an existing one
- We will deploy the Web API from Visual Studio
- Friends don't let friends deploy from Visual Studio 😉
- Note that professional users don't do that in real life
- They use Azure Pipelines instead
You might need to sign in again in this step
Our Web API is available in Azure 😀