-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
Facing issuing using it over Azure CLI
az login --service-principal -u <APP_ID> -p <CLIENT_SECRET> --tenant <TENANT_ID>
Works with Powershell
$credentials = Get-Credential
Connect-AzAccount -ServicePrincipal -Credential $credentials -Tenant
Related command
az login --service-principal -u <APP_ID> -p <CLIENT_SECRET> --tenant <TENANT_ID> by using the facing issue that app is not under subscription even everything in the right manner.
Errors
No subscription found for mentioned app
Issue script & Debug output
az account clear
az identity list
Expected behavior
should be worked but not
Environment Summary
azure-cli 2.76.0
core 2.76.0
telemetry 1.1.0
Dependencies:
msal 1.33.0b1
azure-mgmt-resource 23.3.0
Python location '/opt/az/bin/python3'
Config directory '/home/edgedevice/.azure'
Extensions directory '/home/edgedevice/.azure/cliextensions'
Python (Linux) 3.12.10 (main, Jul 29 2025, 09:26:29) [GCC 11.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response