in src/ContainerAppHelper.ts [365:378]
public async createContainerAppEnvironment(name: string, resourceGroup: string, location?: string) {
const util = new Utility();
toolHelper.writeDebug(`Attempting to create Container App Environment with name "${name}" in resource group "${resourceGroup}"`);
try {
let command = `az containerapp env create -n ${name} -g ${resourceGroup}`;
if (!util.isNullOrEmpty(location)) {
command += ` -l ${location}`;
}
await util.execute(command);
} catch (err) {
toolHelper.writeError(err.message);
throw err;
}
}