fix(create-pca): make admin consent failure non-fatal
This commit is contained in:
@@ -210,10 +210,12 @@ Options:
|
||||
{ quiet: true, allowFailure: true },
|
||||
);
|
||||
if (adminConsentResult.status !== 0) {
|
||||
console.error(
|
||||
`Error: Failed to grant admin consent for '${appName}' (${appId}).`,
|
||||
console.warn(
|
||||
`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([
|
||||
|
||||
Reference in New Issue
Block a user