程序代写 Homework #5 Microsoft Azure with Python

Homework #5 Microsoft Azure with Python
This semester we are allowing all students to explore cloud computing as offered by the Microsoft Azure. Using the instructions below one can establish a service using Microsoft Service developed for Assignment #6 and have it executed there.
1. Sign up for Microsoft Azure for Students
To sign up for the Free Trial, with a $100 credit, you will not need a credit card. First of all, use a browser in Incognito or InPrivate mode (such as Chrome – File New Incognito Window or Firefox – File – Window). To sign up go to:

Copyright By PowCoder代写 加微信 powcoder

https://azure.microsoft.com/en-us/free/students/
In the Microsoft Azure for Students page, click on Start free:
The Microsoft Sign in page will be displayed.

Enter your USC e-mail address. The USC Shibboleth page will be displayed and will be used to verify your academic status and receive the $100 credit.
Enter your USC account password. Click Sign in.
Thew Identity Verification by phone page is displayed. Enter you phone number and
click either Text me or Call me. Enter the verification code in the appropriate box.
Click Verify code. The Azure for Students signup page is displayed.

Enter your personal data in the form. Click Next.
Agree to the free subscription offer by selecting the checkbox. Click Sign Up. You will be taken to the Microsoft Azure “Education” Portal.

You may also receive a confirmation “Welcome to Azure for Students” e-mail.
2. Create a Python App in Service on Linux
App Service on Linux provides a highly scalable, self-patching web hosting service using the Linux operating system. Microsoft Azure provides a Quickstart tutorial that shows how to deploy a Python app to Service on Linux. The tutorial is available at:
https://docs.microsoft.com/en-us/azure/app-service/quickstart-python
You can follow the steps in the tutorial using a Mac, Windows, or Linux machine.
1. TocompletetheQuickstart,youneedtoinstallthefollowingpre-requisite
components:
a. Git.IfyouneedtoinstallGit,pleasegohere: https://git-scm.com/
b. Python3.9or3.10.IfyouneedtoinstallPython,pleaseseethe instruction for Python on CGP.
c. LI. Installation instructions are provided here:
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli

Important: The LI has a dependency on the Homebrew Python 3.10 package and will install it.
3. TheQuickstartgivesstepbystepinstructionsforallofthefollowing: • Clone the sample with
git clone https://github.com/Azure-Samples/msdocs-python-flask-webapp-quickstart
• Build the sample
2. TheQuickstarttutorialaboveallowsyoutocreatethewebappwithbuilt-inimage
using the LI in Cloud Shell, and you use Git to deploy the Python code to
the web app. After you have installed the LI, test that is running, by typing

• Run the sample locally at http://127.0.0.1:5000/
• Browse the sample output locally (Press CTRL+C to quit)
3. Create a web app in the instructions at:
https://docs.microsoft.com/en-us/azure/app-service/quickstart-python?tabs=flask%2Cm

ac-linux%2Cazure-portal%2Cterminal-bash%2Clocal-git-deploy%2Cdeploy-instructions- azcli%2Cdeploy-instructions-zip-azcli#2—create-a-web-app-in-azure
You can create a web app using the Azure portal, or the LI. We recommend you use the . Make sure that the Sku is Free F1, and the Subscription is Azure for Students Starter. See below.

Review your selections, and the click Create.
Then click Create. If everything went well, you would get the “your deployment is complete” page.

4. Deploy your application code to the instructions at:
https://docs.microsoft.com/en-us/azure/app-service/quickstart-python?tabs=flask%2Cm ac-linux%2Cazure-portal%2Cterminal-bash%2Clocal-git-deploy%2Cdeploy-instructions- azcli%2Cdeploy-instructions-zip-azcli#3—deploy-your-application-code-to-azure
You can deploy your code from your local workstation to Azure, using local Git and az or using a ZIP file and uploading using az, Postman or cURL. We recommend Postman.

• Browse the app on Azure (the full URL for your application is listed in the
“URL” value in the displayed object) as in:
https://msdocs-python-webapp-quickstart-x1z.azurewebsites.ne t/
Note: it may take as much as 10 minutes for your application to be deployed. 5. Manage your Azure web app
Go to the Azure portal to manage the web app you created. https://portal.azure.com/
From the list of Azure services, click the App Services icon, and then click the name of your Azure web app.
Click the app Name. You see your web app’s Overview page. Here, you can perform basic management tasks like browse, stop, start, restart, and delete.

The left menu provides different pages for configuring your app.
Have fun exploring Services!!

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com