public async createOrUpdateContainerAppWithUp()

in src/ContainerAppHelper.ts [54:69]


    public async createOrUpdateContainerAppWithUp(
        containerAppName: string,
        resourceGroup: string,
        optionalCmdArgs: string[]) {
        toolHelper.writeDebug(`Attempting to create Container App with name "${containerAppName}" in resource group "${resourceGroup}"`);
        try {
            let command = `az containerapp up -n ${containerAppName} -g ${resourceGroup}`;
            optionalCmdArgs.forEach(function (val: string) {
                command += ` ${val}`;
            });
            await util.execute(command);
        } catch (err) {
            toolHelper.writeError(err.message);
            throw err;
        }
    }