public async updateContainerAppIngress()

in src/ContainerAppHelper.ts [174:195]


    public async updateContainerAppIngress(
        containerAppName: string,
        resourceGroup: string,
        ingress?: string,
        targetPort?: string) {
        toolHelper.writeDebug(`Attempting to update Container App ingress with name "${containerAppName}" in resource group "${resourceGroup}"`);
        try {
            let command = `az containerapp ingress update -n ${containerAppName} -g ${resourceGroup}`;
            if (!util.isNullOrEmpty(ingress)) {
                command += ` --type ${ingress}`;
            }

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

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