Provision Azure services
The following services will be provisioned in the lab Azure subscription:
Open the workshop with VS Code
- Start VS Code by selecting the icon from the Windows taskbar.
- From VS Code, open the C:\Workshop folder.
Create the Azure Patient Registration Services
We're going to run commands to provision Azure services.
- From the VS Code menu, select Terminal, then New Terminal.
-
In the new terminal window, run the following command to authenticate to Azure.
azd auth login
-
Switch to the Resources tab in the lab environment for the Azure Portal username and password.
- Select the Email, phone, or Skype option in the Sign in dialog and select the [T] next to the Username field in the Resources tab.
- Next, select the Password field and select the [T] next to the Password field in the Resources tab.
-
Switch back to the Instructions tab.
-
Initialize your Azure environment.
You'll be asked to create an environment name. For this workshop, the environment name must be globally unique. Create a unique environment name by appending a random six digital number after contoso-health-app-NNNNNN, for example, contoso-health-app-318721. But don't use the example name, use your own.
Initialize your Azure environment with the following command.
azd init
-
Deploy the Azure services with the following command.
azd up
-
Select the default subscription.
-
Select a region (e.g: eastus).
It will take approximately 5 minutes to deploy the Azure services. So, now is a great time to read the next sections of the workshop documentation while you wait for the services to deploy. Note, the Storage Account is created early on, so, once that is created you can start uploading the training data while the rest of the services are being provisioned.
-
The output from the
azd up
command will look like the following.Packaging services (azd package) (✓) Done: Packaging service api - Package Output: /tmp/azddeploy3376479742.zip (✓) Done: Packaging service web - Package Output: dist Provisioning Azure resources (azd provision) Provisioning Azure resources can take some time (✓) Done: Resource group: rg-contoso-health-app-767678 (✓) Done: Azure AI Document Intelligence: form-recognizer-r2qoh4og4cf6a (✓) Done: Storage account: storager2qoh4og4cf6a (✓) Done: Azure Cosmos DB: cosmos-r2qoh4og4cf6a (✓) Done: Application Insights: api-r2qoh4og4cf6a (✓) Done: App Service plan: api-r2qoh4og4cf6a (✓) Done: Static Web App: swa-r2qoh4og4cf6a Deploying services (azd deploy) (✓) Done: Deploying service api - Endpoint: https://api-r2qoh4og4cf6a.azurewebsites.net/ (✓) Done: Deploying service web - Endpoint: https://polite-coast-0a3c12c1e.3.azurestaticapps.net
-
Make a note of your
Resource group
andStorage account
names, as you'll need them in the next section of the workshop.Resource group: rg-contoso-health-app-NNNNNN Storage account: storagexxxxxxxxxxx
-
Leave VS Code open, as you'll need it in the next section of the workshop.