fix(create-pca): make admin consent failure non-fatal
This commit is contained in:
@@ -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([
|
||||||
|
|||||||
Reference in New Issue
Block a user