This GitHub repository contains a set of Azure examples specifically for C# developers on macOS / Linux to quickly get started with Azure. Please use the issue tracker to leave feedback, file issues or to propose other examples.
To work with these examples it is assumed you have the Azure CLI installed, and you have logged in and set your default subscription. If you haven't done so follow the steps below.
Note: Logging in and setting your default subscription needs to be done once per terminal session.
To setup the Azure CLI, please visit Install the Azure CLI. And once you are done come back to this README.
az login
Get a list of your subscriptions (notice the refresh
parameter that retrieves up-to-date subscriptions from the server) :
az account list --output table --refresh
Set your default subscription for this session using the subscription id from the previous output:
az account set --subscription "subscription-id"