Create Azure services
Deploy Azure services
The following services will be created in your Azure subscription:
Open a terminal window in VS Code
From VS Code, select Ctrl+Shift+` to open a new terminal window.
Create the Azure Patient Registration Services
From the terminal window, run the following commands to create the Azure Patient Registration Services.
Authenticate to Azure by running the following command. Note, it may take up to 30 seconds for the
azd login --use-device-code
command to complete.azd auth login --use-device-code
Initialize your Azure environment with the following command.
azd init
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.
Deploy the Azure services with the following command.
azd up
Select a region (e.g: eastus).
Select your subscription.
noteIt will take approximately 5 to 10 minutes to deploy the Azure services. So now is a great time to grab a cup of coffee or tea or read the next section of the workshop documentation.
tip- You can only have one free Azure Form Recognizer service in your Azure subscription.
- If your azd environment fails to deploy, you can delete the environment by deleting the
.azure
folder in thecontoso_new_patient_app
folder.
The output from the
azd up
command will look similar to 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: Form recognizer: 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.netMake 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: storagexxxxxxxxxxxLeave VS Code Codespace open, as you'll need it in the next section of the workshop.