Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"You are using an old Core Tools version. Please upgrade to the latest version." in the latest version #4235

Closed
Lu4nScr1pt1ng opened this issue Jan 17, 2025 · 3 comments · Fixed by #4224
Assignees
Labels

Comments

@Lu4nScr1pt1ng
Copy link

Version

Azure Functions Core Tools
Core Tools Version: 4.0.6821 Commit hash: N/A +c09a2033faa7ecf51b3773308283af0ca9a99f83 (64-bit)
Function Runtime Version: 4.1036.1.23224

Description

┌─[luan@localhost] - [/opt/azure-functions-cli] - [sex jan 17, 14:18]
└─[$] <> ./func 

Azure Functions Core Tools
Core Tools Version:       4.0.6821 Commit hash: N/A +c09a2033faa7ecf51b3773308283af0ca9a99f83 (64-bit)
Function Runtime Version: 4.1036.1.23224

Usage: func [context] [context] <action> [-/--options]

Contexts:
azure               Commands to log in to Azure and manage resources
azurecontainerapps  Commands for working with Container Service and Azure Functions
durable             Commands for working with Durable Functions
extensions          Commands for installing extensions
function            Commands for creating and running functions locally
host                Commands for running the Functions host locally
kubernetes          Commands for working with Kubernetes and Azure Functions
settings            Commands for managing environment settings for the local Functions host
templates           Commands for listing available function templates

Actions: 
start   Launches the functions runtime host  
    --port [-p]             Local port to listen on. Default: 7071
    --cors                                              A comma separated list of CORS origins with no spaces. Example: https://functions.azure.com,https://functions-staging.azure.com
    --cors-credentials      Allow cross-origin authenticated requests (i.e. cookies and the Authentication header)
    --timeout [-t]          Timeout for the functions host to start in seconds. Default: 20 seconds.
    --useHttps              Bind to https://localhost:{port} rather than http://localhost:{port}. By default it creates and trusts a certificate.
    --cert                  for use with --useHttps. The path to a pfx file that contains a private key
    --password              to use with --cert. Either the password, or a file that contains the password for the pfx file
    --language-worker       Arguments to configure the language worker.
    --no-build              Do not build the current project before running. For dotnet projects only. Default is set to false.
    --enableAuth            Enable full authentication handling pipeline.
    --functions             A space separated list of functions to load.
    --verbose               When false, hides system logs other than warnings and errors.
    --dotnet-isolated-debug When specified, set to true, pauses the .NET Worker process until a debugger is attached.
    --enable-json-output    Signals to Core Tools and other components that JSON line output console logs, when applicable, should be emitted.
    --json-output-file      If provided, a path to the file that will be used to write the output when using --enable-json-output.
    --runtime               If provided, determines which version of the host to start. Allowed values are 'inproc6', 'inproc8', and 'default' (which runs
                             the out-of-process host).

new     Create a new function from a template. Aliases: new, create
    --language [-l]  Template programming language, such as C#, F#, JavaScript, etc.
    --template [-t]  Template name
    --name [-n]      Function name
    --file [-f]      File Name
    --authlevel [-a] Authorization level is applicable to templates that use Http trigger, Allowed values: [function, anonymous, admin]. Authorization lev
                     el is not enforced when running functions from core tools
    --csx            use old style csx dotnet functions

init    Create a new Function App in the current folder. Initializes git repo.  
    --source-control       Run git init. Default is false.
    --worker-runtime       Runtime framework for the functions. Options are: dotnet-isolated, dotnet, node, python, powershell, custom
    --force                Force initializing
    --docker               Create a Dockerfile based on the selected worker runtime
    --docker-only          Adds a Dockerfile to an existing function app project. Will prompt for worker-runtime if not specified or set in local.settings
                           .json
    --csx                  use csx dotnet functions
    --language             Initialize a language specific project. Currently supported when --worker-runtime set to node. Options are - "typescript" and "
                           javascript"
    --target-framework     Initialize a project with the given target framework moniker. Currently supported only when --worker-runtime set to dotnet-isol
                           ated or dotnet. Options are - net9.0, net8.0, net7.0, net6.0, net48
    --managed-dependencies Installs managed dependencies. Currently, only the PowerShell worker runtime supports this functionality.
    --model [-m]           Selects the programming model for the function app. Note this flag is now only applicable to Python and JavaScript/TypeScript. 
                           Options are V1 and V2 for Python; V3 and V4 for JavaScript/TypeScript. Currently, the V2 and V4 programming models are in previ
                           ew.
    --skip-npm-install     Skips the npm installation phase when using V4 programming model for NodeJS
    --no-docs              Do not create getting started documentation file. Currently supported when --worker-runtime set to python.

logs    Gets logs of Functions running on custom backends  
    --platform Hosting platform for the function app. Valid options: kubernetes
    --name     Function name


You are using an old Core Tools version. Please upgrade to the latest version.

That's a fresh installation.

Let me know if you need further refinements!

Steps to reproduce

install the latest version of azure functions core tools on Opensuse Tumbleweed

@mattchenderson
Copy link
Contributor

I can reproduce this on Windows via winget as well. I suspect it may be true of any installation path for this version. We'll have to investigate.

@saadalia
Copy link

I saw this PR to resolve the same #4224

@fabiocav
Copy link
Member

Assigning this to @VineethReyya as he has a PR currently open to address this problem (#4224)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants