diff --git a/src/utils/azureUtils.ts b/src/utils/azureUtils.ts index ea0161a67f..41d3aaf427 100644 --- a/src/utils/azureUtils.ts +++ b/src/utils/azureUtils.ts @@ -57,12 +57,10 @@ export async function acquireAcrRefreshToken(registryHost: string, subContext: I const response = <{ refresh_token: string }>await request.post(`https://${registryHost}/oauth2/exchange`, { form: { /* eslint-disable-next-line camelcase */ - grant_type: 'refresh_token', + grant_type: 'access_token', service: registryHost, tenant: subContext.tenantId, /* eslint-disable-next-line camelcase */ - refresh_token: aadTokenResponse.refreshToken, - /* eslint-disable-next-line camelcase */ access_token: aadTokenResponse.accessToken, }, json: true