Describe the bug
Looking for an automated way to identify a list of service principals Expiry date in advance and notify the related team if the expiry date is within 60 days of span. I tried below bash command in azuredevops pipeline, but its not providing any output.
az ad sp credential list --id "xxxxxxxxxxxxxxxxxxx" --query "[].endDate" -o tsv
Related command
az ad sp credential list --id "xxxxxxxxxxxxxxxxxxx" --query "[].endDate" -o tsv
Errors
Blank error
Issue script & Debug output
az ad sp credential list --id "xxxxxxxxxxxxxxxxxxx" --query "[].endDate" -o tsv
Expected behavior
Expiry details notification if its less than 60 days
Environment Summary
Azure Platform
Additional context
No response
Describe the bug
Looking for an automated way to identify a list of service principals Expiry date in advance and notify the related team if the expiry date is within 60 days of span. I tried below bash command in azuredevops pipeline, but its not providing any output.
Related command
az ad sp credential list --id "xxxxxxxxxxxxxxxxxxx" --query "[].endDate" -o tsv
Errors
Blank error
Issue script & Debug output
az ad sp credential list --id "xxxxxxxxxxxxxxxxxxx" --query "[].endDate" -o tsv
Expected behavior
Expiry details notification if its less than 60 days
Environment Summary
Azure Platform
Additional context
No response