- Clone this repository.
- Install or update to Powershell 7 https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.4
- Install or update Azure CLI https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
- Ensure you have the required permissions to deploy into the target Azure subscription. Either of the below sets of roles can be used:
- Owner
- Contributor & User Access Administrator
This application can be run using the Azure Developer CLI, or azd, with very few commands:
-
Navigate to the root of the repository.
-
Install azd.
-
Log in
azd(if you haven't done it before) to your Azure account:azd auth login
-
Log in to the Azure CLI.
az login
-
Initialize
azdfrom the root of the repo.azd init
-
Enter an environment name (e.g. quote-of-the-day-js-example) for this deployment when prompted.
-
Create Azure resources and deploy the sample by running:
azd up
Notes:
- The operation may take a few minutes when run for the first time in an environment.
- Upon completion,
azdwill display the web application'surl. Follow this link to test the sample. - To re-deploy and update the sample after making changes, run
azd up. - Use
azd downto easily delete the newly created resources. - Report any problems by opening an issue in this repo.
- Refer to the FAQ and troubleshoot for
azd.