public async updateContainerAppWithUp()

in src/ContainerAppHelper.ts [139:165]


    public async updateContainerAppWithUp(
        containerAppName: string,
        resourceGroup: string,
        optionalCmdArgs: string[],
        ingress?: string,
        targetPort?: string) {
        toolHelper.writeDebug(`Attempting to update 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}`;
            });

            if (!util.isNullOrEmpty(ingress)) {
                command += ` --ingress ${ingress}`;
            }

            if (!util.isNullOrEmpty(targetPort)) {
                command += ` --target-port ${targetPort}`;
            }

            await util.execute(command);
        } catch (err) {
            toolHelper.writeError(err.message);
            throw err;
        }
    }