Please have a look at the following prerequisites for the creation of images on Azure.
Create a Service Principal with contributor role access to an Azure subscription with azure cli (Source).
Command Format
az ad sp create-for-rbac --name [ServicePrincipalName] --role Contributor --scopes /subscriptions/[SubscriptionId] --years 1
Command Example
az ad sp create-for-rbac --name xoap-image-principal --role Contributor --scopes /subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx --years 1
Command Output
{
"appId": "[ClientId (Guid)]",
"displayName": "xoap-image-principal",
"name": "http://xoap-image-principal ",
"password": "[Password/ClientSecret]",
"tenant": "[TenantId (Guid)]"
}
From that output you can create a connection for your subscription
SubscriptionId: xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
TenantId (tenant): [Guid]
ClientId (appId): [Guid]
ClientSecret (password) [Text]