az login
az account show
az account list
It is crucial that resources can be shared and managed together
az group create --name selectid000rg --location "ukwest"
This lists the resources by name, type, resource group and location
az resource list --query "[].{name:name, type:type, resourceGroup:resourceGroup, location:location}"
and you can limit these to see what is in a resource group with
az resource list --query "[].{name:name, type:type}" --resource-group selectid000rg
az storage account create --name faasstorage000 --location ukwest --sku Standard_LRS --resource-group selectid000rg
az storage account list --query "[].name" --resource-group selectid000rg
The Cosmos DB needs creating associated with a resource group
az cosmosdb create --name selectiddb --resource-group selectid000rg
az cosmosdb list --query "[].{name:name, endpoint:documentEndpoint}"
az cosmosdb keys list --name selectiddb --resource-group selectid000rg
az functionapp create --name auditserver --storage-account faasstorage000 --resource-group selectid000rg --runtime python --functions-version 4 --os-type linux --consumption-plan-location ukwest
az functionapp list --query "[].{name:name, type:type, resourceGroup:resourceGroup, location:location, defaultHostName:defaultHostName,kind:kind}"
func azure functionapp publish auditserver
To get the name of the function published within a resourcegroup
az functionapp function list --name auditserver --resource-group selectid000rg --query "[].name"
to get the name and the URL against which the function is published
az functionapp function list --name auditserver --resource-group selectid000rg --query "[].{name: name, url: invokeUrlTemplate}"