When running release pipelines within Azure AD, a service connection is used to execute any Azure PowerShell task. This is associated with a service principal within Azure AD.
To speed up the development lifecycle, you can login locally as the service principal used by the service connection. This allows you to exeucte PowerShell cmdlets locally under the same permissions as the service connection running in Azure DevOps.
You will need the credentials for the service principal:
To login locally as the service principal, run the following PowerShell:
$credential = Get-Credential Connect-AzureRmAccount -Credential $credential -Tenant "<tenantid>" -ServicePrincipal
You will be prompted for username/password.
You can use the application id for the username and the key value for the password.