Setting up Azure
Installing the Azure CLI
We will need the Azure CLI in order to interact with Azure from our workstation.
You can install the Azure CLI here
Once you install it you will need to log in. Open the terminal and run:
az login
Once you log in, on the popup window, select the correct Azure subscription by running:
az account set --subscription <your subscription id>
If all that went well, go to the appsettings.json file of your AppHost project and add the following object:
"Azure": {
"SubscriptionId": "<your subscription id>",
"AllowResourceGroupCreation": true,
"ResourceGroup": "workshop-rg",
"Location": "North Europe"
}
With all that in place we can now start using Azure with .NET Aspire.