Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check the expiration date of your service principal #94096

Closed
gautamksr opened this issue Jun 8, 2022 · 3 comments
Closed

check the expiration date of your service principal #94096

gautamksr opened this issue Jun 8, 2022 · 3 comments

Comments

@gautamksr
Copy link

The below command doesn't return any result, only warning message shows "This command or command group has been migrated to Microsoft graph Api...."

az ad sp credential list --id "$SP_ID" --query "[].endDate" -o tsv
Is there any other way to check service principle expiry date?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@JamesTran-MSFT
Copy link
Contributor

@gautamksr
Thanks for your feedback! We will investigate and update as appropriate.

@Karishma-Tiwari-MSFT
Copy link
Member

Karishma-Tiwari-MSFT commented Jun 14, 2022

Due to the deprecation of Azure Active Directory (Azure AD) Graph, the underlying Active Directory Graph API will be replaced by Microsoft Graph API in Azure CLI 2.37.0.

https://docs.microsoft.com/en-us/cli/azure/microsoft-graph-migration

Azure AD to Microsoft Graph migration changes in Azure PowerShell

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

@schaffererin
Copy link
Contributor

Hi @gautamksr, thank you for the feedback. The doc has been updated with the appropriate command, which is az ad app credential list instead of az ad sp credential list. I will now close this issue.

#please-close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants