in src/ContainerAppHelper.ts [75:86]
public async getCurrentSubscription(): Promise<string> {
toolHelper.writeDebug(`Attempting to get the default subscription`);
try {
let command = ` az account show --query id --output tsv `
let executionResult = await util.execute(command);
// If successful, strip out double quotes, spaces and parentheses from the first location returned
return executionResult.exitCode === 0 ? executionResult.stdout.toLowerCase() : ``;
} catch (err) {
toolHelper.writeInfo(err.message);
return ``;
}
}