fix(create-pca): make admin consent failure non-fatal

This commit is contained in:
2026-02-08 07:31:07 +01:00
parent a9551ee8ef
commit fc26edb30a

View File

@@ -210,10 +210,12 @@ Options:
{ quiet: true, allowFailure: true }, { quiet: true, allowFailure: true },
); );
if (adminConsentResult.status !== 0) { if (adminConsentResult.status !== 0) {
console.error( console.warn(
`Error: Failed to grant admin consent for '${appName}' (${appId}).`, `Warning: Failed to grant admin consent for '${appName}' (${appId}). Continuing without failing.`,
); );
process.exit(1); if (adminConsentResult.stderr) {
console.warn(adminConsentResult.stderr);
}
} }
const tenantId = runAz([ const tenantId = runAz([