I followed this link and tried to configure a service principal.
But got below error.
az ad sp create-for-rbac --name "myApp" --role contributor --scopes /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP> --sdk-auth
az ad sp create-for-rbac --name "githubActionsApp" --role contributor --scopes /subscriptions/01f7b0dd-dba4-4502-94ce-7c8cde09b954/resourceGroups/martserverqa --sdk-auth
But got below error.
PS C:\Users\UReddy> az ad sp create-for-rbac --name "githubActionsApp" --role contributor --scopes /subscriptions/01f7b0dd-dba4-4502-94ce-7c8cde09b954/resourceGroups/martserverqa --sdk-auth
Changing "githubActionsApp" to a valid URI of "http://githubActionsApp", which is the required format used for service principal names
Values of identifierUris property must use a verified domain of the organization or its subdomain: 'http://githubActionsApp'