-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Service principal expiry query command not working #27507
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az ad(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.potential-pruningquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az ad(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.potential-pruningquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
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