Hello,
since the beginning of January I have a problem obtaining a token. I have cheked expiration date and its ok.
expiration date for the secret is 31/12/2299
Have you any similar experience ?
Thanks
error message:
2023-01-09T14:06:15.1759431Z ##[error]System.Management.Automation.RuntimeException: Not able to fetch token for tenant Id $tenantid
POST https://login.windows.net/$tenantid/oauth2/v2.0/token with -1-byte payload
2023-01-09T14:06:14.7761493Z ##[debug]Exception message - System.Net.WebException: The remote server returned an error: (401) Unauthorized.
2023-01-09T14:06:14.7775019Z ##[debug] at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
2023-01-09T14:06:14.7788328Z ##[debug] at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
2023-01-09T14:06:14.7997290Z ##[debug]Exception message extracted from response {"error":"invalid_client","error_description":"AADSTS7000222: The provided client secret keys for app '***' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds.\r\nTrace ID: 8c95acf1-cc04-40a1-ad14-481862cf1801\r\nCorrelation ID: d65574ea-000b-4526-8595-ddaae8b4250d\r\nTimestamp: 2023-01-09 14:06:14Z","error_codes":[7000222],"timestamp":"2023-01-09 14:06:14Z","trace_id":"8c95acf1-cc04-40a1-ad14-481862cf1801","correlation_id":"d65574ea-000b-4526-8595-ddaae8b4250d","error_uri":"https://login.windows.net/error?code=7000222"}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello, since the beginning of January I have a problem obtaining a token. I have cheked expiration date and its ok. expiration date for the secret is 31/12/2299 Have you any similar experience ?
Thanks
error message: 2023-01-09T14:06:15.1759431Z ##[error]System.Management.Automation.RuntimeException: Not able to fetch token for tenant Id $tenantid
POST https://login.windows.net/$tenantid/oauth2/v2.0/token with -1-byte payload 2023-01-09T14:06:14.7761493Z ##[debug]Exception message - System.Net.WebException: The remote server returned an error: (401) Unauthorized. 2023-01-09T14:06:14.7775019Z ##[debug] at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request) 2023-01-09T14:06:14.7788328Z ##[debug] at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord() 2023-01-09T14:06:14.7997290Z ##[debug]Exception message extracted from response {"error":"invalid_client","error_description":"AADSTS7000222: The provided client secret keys for app '***' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds.\r\nTrace ID: 8c95acf1-cc04-40a1-ad14-481862cf1801\r\nCorrelation ID: d65574ea-000b-4526-8595-ddaae8b4250d\r\nTimestamp: 2023-01-09 14:06:14Z","error_codes":[7000222],"timestamp":"2023-01-09 14:06:14Z","trace_id":"8c95acf1-cc04-40a1-ad14-481862cf1801","correlation_id":"d65574ea-000b-4526-8595-ddaae8b4250d","error_uri":"https://login.windows.net/error?code=7000222"}