kudu | engine behind git/hg deployments | Azure library

 by   projectkudu C# Version: S62 License: Apache-2.0

kandi X-RAY | kudu Summary

kandi X-RAY | kudu Summary

kudu is a C# library typically used in Cloud, Azure applications. kudu has no bugs, it has a Permissive License and it has medium support. However kudu has 1 vulnerabilities. You can download it from GitHub.

Kudu is the engine behind git deployments in Azure App Service. It can also run outside of Azure.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              kudu has a medium active ecosystem.
              It has 3045 star(s) with 664 fork(s). There are 178 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 653 open issues and 1584 have been closed. On average issues are closed in 298 days. There are 23 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of kudu is S62

            kandi-Quality Quality

              kudu has 0 bugs and 0 code smells.

            kandi-Security Security

              kudu has 1 vulnerability issues reported (0 critical, 0 high, 1 medium, 0 low).
              kudu code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              kudu is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              kudu releases are available to install and integrate.
              kudu saves you 6167 person hours of effort in developing the same functionality from scratch.
              It has 12852 lines of code, 3 functions and 658 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of kudu
            Get all kandi verified functions for this library.

            kudu Key Features

            No Key Features are available at this moment for kudu.

            kudu Examples and Code Snippets

            No Code Snippets are available at this moment for kudu.

            Community Discussions

            QUESTION

            VS Code Azure deployment of Python Http Trigger function fails - GLIB_2.27 not found
            Asked 2022-Apr-07 at 13:42

            I'm trying to deploy my locally fine running function to Azure

            • VS Code Version: 1.65.2
            • Azure Tools v0.2.1
            • Azure Functions v1.6.1

            My requirements.txt

            ...

            ANSWER

            Answered 2022-Apr-07 at 13:42

            This is linked to and open Github issue with Microsoft Oryx.

            Hey folks, apologies for the breaking changes that this issue has caused for your applications.

            Oryx has pre-installed Python SDKs on the build images; if the SDK that your application is targeting is not a part of this set, Oryx will fallback to dynamic installation, which attempts to pull a Python SDK that meets your application's requirements from our storage account, where we backup a variety of Python SDKs.

            In this case, it appears that the Python 3.9.12 SDK was published to our storage account yesterday around 3:10 PM PST (10:10 PM UTC), and applications targeting Python 3.9 are now pulling down this 3.9.12 SDK rather than the previously published 3.9.7 SDK.

            I'm optimistic that we should have this resolved in the next couple of hours, but in the meantime, as folks have mentioned above, if you are able to downgrade your application to using Python 3.8, please consider doing so. Alternatively, if your build/deployment method allows you to snap to a specific patch version of Python, please consider targeting Python 3.9.7, which was the previous 3.9.* version that can be pulled down during dynamic installation.

            Again, apologies for the issues that this has caused you all.

            Github Issue

            Temporarily try rolling your Python version back down to Python 3.8.

            Azure function cli docs

            Source https://stackoverflow.com/questions/71781592

            QUESTION

            Azure Kudu access for users with Lighthouse delegated permissions
            Asked 2022-Mar-30 at 06:21

            I have delegated access to Azure resources in a third-party tenant using Lighthouse, and this works fine via the portal; users receive the roles expected (typically Contributor).

            However, they are unable to access Kudu (at webappname.scm.azurewebsites.net), receiving an error;

            Selected user account does not exist in tenant 'Tenant Name' and cannot access the application 'abfa0a7c-a6b6-4736-8310-5855508787cd' in that tenant. The account needs to be added as an external user in the tenant first. Please use a different account.

            If the same user account is added as a guest to the third-party tenant and given the same role, they can access Kudu as expected.

            It's clear that Kudu is expecting/demanding an account in the same tenant as the application, but Azure Lighthouse delegated permissions is all about not having to do that.

            Is there something I'm missing, or another role that needs granting?

            ...

            ANSWER

            Answered 2022-Mar-30 at 06:21

            @PhilD, Thanks for the detailed description of the scenario. I have also posted this on your Q&A thread.

            Currently, Kudu is not compatible with Lighthouse-delegated permissions.

            Our product engineering team is working on it; however, we do not have an exact ETA to share. We’re expecting it to be available in a few months. Please note that this timeline is just an estimate and is subject to change, depending on a myriad of factors.

            I have relayed the feedback internally to our product engineering team and it’s being tracked.

            -On a side note, as mentioned in this Kudu wiki : “Only those with Contributor / Owner access (to be exact, with microsoft.web/sites/publish/action or, for slot, microsoft.web/sites/slots/publish/action) can access to Kudu (SCM).

            Much appreciate your valuable feedback on this. Thanks for your patience!

            Source https://stackoverflow.com/questions/71647671

            QUESTION

            Azure App Service .net6 Deploy - Error: EISDIR: illegal operation on a directory, open '/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE'
            Asked 2021-Nov-28 at 13:03

            I updated my Asp.net core Blazor WebAssembly app to .net 6. Everything is fine, but the deploy from github actions doesn't work and throws this error:

            ...

            ANSWER

            Answered 2021-Nov-15 at 05:26
            • On Linux, it's important that any bash deployment scripts that get run have Unix line endings (LF) and not Windows line endings (CRLF).

            • Kuduscript will generate scripts with platform-appropriate line endings, but if those scripts are modified, or if you provide your own custom deployment scripts, it's important to make sure that your editor doesn't change the line endings.

            • If something seems off with your deployment script, you can always use the Kudu console to delete the contents of /home/site/deployments/tools.

            • This is the directory where Kudu caches kuduscript-generated deployment scripts. On the next deployment, the script will be regenerated.

            • The error you're currently seeing is a Kudu issue with running node/npm for deployments.

            • The easiest and fastest resolution for what you are currently seeing is to specify engines.node in your package.json.

            Error: EISDIR: illegal operation on a directory, open '/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE'

            EISDIR stands for "Error, Is Directory". This means that NPM is trying to do something to a file but it is a directory. In your case, NPM is trying to "read" a file which is a directory. Since the operation cannot be done the error is thrown.

            Three things to make sure here

            1. Make sure the file exists. If it does not, you need to create it. (If NPM depends on any specific information in the file, you will need to have that information there).
            2. Make sure it is in fact a file and not a directory.
            3. It has the right permissions. You can change the file to have all permissions with "sudo chmod 777 FILE_NAME".

            Note: You are giving Read, Write and Execute permissions to every one on that file.

            Source https://stackoverflow.com/questions/69967124

            QUESTION

            Locating my static assets when publishing on Azure with Blazor WebAssembly
            Asked 2021-Nov-25 at 09:26

            I have a Blazor WebAssembly (Core Hosted) solution for testing purpose. I test 2 different scenario:

            • 1st one: publishing the server side on Azure and the client side inside a storage account.

            • 2nd one: publishing everything on Azure

            FYI my solution is composed of 3 projects

            • Client
            • Server
            • Shared (Razor Class Library) <-- with some Blazor components + css + js + ...

            The 1st scenario

            For publishing the server side: right click on the Server project then choose Publish, then choose Azure (fill in settings,...) then start the publishing process.

            For publishing the client side: right click on the Client project then choose Publish, then choose Folder, then start the publishing process. Next, I used the Microsoft Azure Storage Explorer app to upload files (located in \bin\Release\net5.0\browser-wasm\publish\wwwroot\ ) inside the storage account.

            I clearly see that:

            • my static assets (css, js, ...) are inside \wwwroot\ _content\
            • my dll files (Prolog.Client.dll, Prolog.Shared.dll among many others) are inside \wwwroot\ _framework

            And everything is working as expected.

            The 2nd scenario

            For publishing everything on Azure, simply right click on the Server project then choose Publish, then choose Azure (fill in settings,...) then start the publishing process.

            Everything is working as expected.

            Thanks to the kudu website (https:// myappxxx. scm .azurewebsites.net/) I can browse files on my server. I easily located my dll files inside the wwwroot folder on the server (Prolog.Client.dll, Prolog.Server.dll, Prolog.Shared.dll among many others).

            But what is obscure to me is to know where are physically located my static assets ? Where are my css and js files ?

            Can I use the Kudu website to browse through folders to find them ?

            For example, below, my javascript file named main.js. I tried to use the Kudu website to locate it on my server where it has been published without luck. I don't find any _content folder nor Prolog.Shared folder.

            UPDATE

            Thanks to Mister Magoo : I tried the "App Service Editor (Preview)" under the "Development Tools" section of the Azure Portal for my App Service. From there I was able to browse through all my files, including my static assets. It was pretty similar to the Kudu console... except that in my Kudu console some files and folders were missing. I noticed a warning message in my Kudu console:

            So I added this key in my Local Storage and bingo! All my missing files were suddenly visible. Problem solved.

            ...

            ANSWER

            Answered 2021-Nov-25 at 09:26

            Have you tried the "App Service Editor (Preview)" under the "Development Tools" section of the Azure Portal for your App Service? I can see the _content files there for mine.

            Source https://stackoverflow.com/questions/70071624

            QUESTION

            how to visit a html page which is directly put in kudu home/site/wwwroot?
            Asked 2021-Oct-28 at 07:49

            I have a .net core 3.1 mvc project, and published to azure web app. Then in kudu -> home/site/wwwroot, I created a html file, like below:

            But when I want to visit the html page via azure web app like this "https://xxx.azurewebsites.net/test111.html", it has 404 error:

            Are there any way to fix this, from code or azure portal?

            ...

            ANSWER

            Answered 2021-Oct-28 at 07:49

            Looks like you have an ASP.NET Core app? Have you enabled serving of static files, re:

            https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-5.0

            Source https://stackoverflow.com/questions/69750031

            QUESTION

            Azure Devops / Kudusync deploys wrong package to Azure Function
            Asked 2021-Sep-20 at 06:53

            We have two Azure functions, let's call them A and B, that we deploy using Azure Devops. Looking at the deployment logs, first the right package is deployed followed by a deploy where the contents of Function App A are deployed to Function app B. How this happens is a mystery.

            The strange things is, looking at the logs and what is inside Kudu, they don't match up. For example, the latest deploy logs will say this:

            ...

            ANSWER

            Answered 2021-Sep-20 at 06:53

            Apparantly this is happening because both Functions are hosted on the same App Service plan and thus using the same Azure File Share. See this thread https://github.com/projectkudu/kudu/issues/3333.

            Source https://stackoverflow.com/questions/69222749

            QUESTION

            User-defined keys in process.env is undefined in JavaScript Azure Functions
            Asked 2021-Sep-11 at 19:21

            I'm deploying an HTTP Trigger function to Azure Function but when I'm trying to access entries in process.env it returns undefined. It does work in the local emulator but does not when deployed on Azure.

            Test running the function locally and on Azure.

            I've tested it with a very simple HTTP function.

            ...

            ANSWER

            Answered 2021-Sep-11 at 19:21

            After try fixing things for almost 5 hours. I figured out it was a missing configuration in the Function App.

            FUNCTIONS_WORKER_RUNTIME needs to be set to node (this was done automatically when deploying the resource directly from Visual Studio Code Extension)

            If you are using Terraform

            Source https://stackoverflow.com/questions/69143758

            QUESTION

            How to exclude artifact files after web deployment?
            Asked 2021-Jul-08 at 01:52

            We have a build/release pipeline that is finally working correctly, but the developer asked that we exclude the stage config files (Web.Dev.config, Web.Test.config, Web.Prod.config) as well as the artifact archive itself from the site/wwwroot.

            As you can see, everytime we deployed, these zip files have been getting stored in the site root as well. They arent harmful but it doesnt look good

            This is the Release App Service Web Deploy YAML

            ...

            ANSWER

            Answered 2021-Jul-02 at 16:34

            You can add an additional arguments line to the yml that will tell it to skip certain files. It will look something like this:

            Source https://stackoverflow.com/questions/68228310

            QUESTION

            How to specify build configuration when using local git to publish to Azure
            Asked 2021-Jul-04 at 17:11

            I would like to use local git to publish a project to Azure.

            I need to specify the *.csproj (there are multiple projects in my solution) and build configuration (debug/release/etc.).

            I only see how to specify the project here.

            How can I also specify the build configuration?

            ...

            ANSWER

            Answered 2021-Jul-04 at 17:11

            You can use the parameter SCM_BUILD_ARGS. Here is the documentation.

            e.g. via a .deployment file:

            Source https://stackoverflow.com/questions/68195387

            QUESTION

            Azure devOps WebJobs fails after .NET 5 Migration
            Asked 2021-May-05 at 08:09

            I've got several webjobs that I deploy using an Azure DevOps pipeline. After the .NET 5 migration I have these errors in Kudu

            This happened after .net 5 migration but I don't really think it is connected to it. The app service configuration is set to NET5.

            I already try these actions:

            1. Manually delete all jobs in kudu and redeploy them
            2. Deploy the webjobs in another app service
            3. Obviously (ironically) in the local environment it works

            The fact that they won't work in another app service means the problem is in the devOps pipeline, but I didn't change it. I mean, it builds in net5 right now, that's all.

            Could someone know about this type of error? I never encountered something like this in kudu and It's difficult to even search for a solution.

            Thanks in advance.

            ...

            ANSWER

            Answered 2021-Apr-14 at 01:18

            You can add extension on portal or in scm site. After installed ASP.NET Core 5.0 (x86 and x64) Runtime, your issue will be solved.

            1. On portal.

            2. On scm site.

            Source https://stackoverflow.com/questions/67073695

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install kudu

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/projectkudu/kudu.git

          • CLI

            gh repo clone projectkudu/kudu

          • sshUrl

            git@github.com:projectkudu/kudu.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Azure Libraries

            Try Top Libraries by projectkudu

            ARMClient

            by projectkuduC#

            AzureResourceExplorer

            by projectkuduTypeScript

            KuduSync

            by projectkuduJavaScript

            slingshot

            by projectkuduC#

            KuduSync.NET

            by projectkuduC#