kudu | Mirror of Apache Kudu
kandi X-RAY | kudu Summary
kandi X-RAY | kudu Summary
Follow the steps in the documentation to build and install Kudu from source.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of kudu
kudu Key Features
kudu Examples and Code Snippets
Community Discussions
Trending Discussions on kudu
QUESTION
This question is related to Azure MSIX Build and Package task only has Release and Debug configurations
We have a WinForms project that has an MSIX installer. Manually, we can successfully create
- An MSIXBUNDLE and deploy it to Kudu
- An MSIX and deploy it to an Azure VM through a VHDX. We have manually convert the MSIX to a VHDX first
We are now trying to automate the build and release process to create the VHDX. However, we are getting a blank screen when the VHDX is mounted using a process that we have already validated. The only thing different is the build method (i.e., MSBuild versus VS Publish).
How do we create a working VHDX in Azure CI Build Pipeline?
Below is the YAML.
...ANSWER
Answered 2021-Jun-15 at 14:26Actually, there is nothing wrong with the YAML. The problem was a delay in the virtual machine loading the VHDX. In other words, wait about 5 minutes once the VHDX is mounted before trying to run the application. I am leaving this here in case anyone else runs into this issue
.
QUESTION
ANSWER
Answered 2021-Jun-11 at 10:55I finally got the answer after some research. RequireJS Text plugin needs access some static files from wwwroot folder and for that we need Web.config file with static content as we want and rewrite rule. In my case Web.config file is given below and my site is running now perfectly.
QUESTION
I have created an App in Cordova and I just want to run it in browser instead of Android or iOS. My application is running perfectly in local machine by running the command "cordova serve" in my VS Code editor. I'm trying to publish it on Azure with following steps:
my initController.js
...ANSWER
Answered 2021-Jun-10 at 13:03Your azure webapp is on the windows platform. It means that your program is deployed in iis, so you need the web.config file to define the startup command or default document.
The deployment of any language program on iis requires web.config, php, python, nodejs, etc., all of which are required. Only html files of static resources are not required.
QUESTION
I have made an Azure DevOps YAML Pipeline which successfully deploys into our testing env; I have copied that pipeline changed the App Name for our Staging Env and the Pipeline fails and gives out this error:
...ANSWER
Answered 2021-Jun-04 at 12:49I figured this out, there was a settings.xml file in wwwroot/site/deployments/ with the old branch details on it. If you delete settings.xml it will let go of that branch. You may not be able to delete the file though because its set to read-only permission and what you have to do is go into the configuration settings of your web app and change WEBSITE_RUN_FROM_PACKAGE value to 0, save that refresh the web app and then you will be able to delete the file. Then you can re-run the pipeline until your heart is content. :)
QUESTION
We have deployed a very simple .NET CORE 3 Web API application to Azure Cloud. The application is a web api and talks to a very simple SQL server database hosted in Azure as well. There are two main performance problems we are noticing
All API calls go to DB for either read or write operations. The tables only contain 4 and 5 rows and the queries are just basic select and insert queries with no joins.
The first call to the API is very slow (30 seconds to query 1 record in a table of size 10) and we added the timer and noticed it is the DB call that is taking 99.99% of the time. So I used the Azure Data Studio Profiler and realized that the query reached SQL Server after like 29.90 seconds. So the issue is not the query itself. Also, the second, third query etc. are super fast and return within < 30 milli-seconds. So the issue is not the internet connectivity between the Web App and the Azure SQL Database.
The bigger problem is that, if you stop calling the API for say 2-3 minutes and then do another call, then again the first query takes 30 seconds. But the subsequent queries are faster.
If this was only happening when w3wp.exe starts then I wouldn't be concerned but if the requests to the API stop coming for 2-3 minutes then again it is down. This is of concern.
We have Always ON set to Yes.
I tried collecting .NET Trace in Azure for the web app but this is giving me this weird error.
Here are the Nuget package versions installed in the VS solution related to EF.
Here is the SQL Server pricing tier.
Is there any other way to collect trace for Azure Web APP. I really need to see the call stack of the code for those 30 seconds to move forward. I have access to KUDU etc.
Thanks.
UPDATE 3 - 8th May 2021
I have posted the answer to my own question. This may not be root cause for other people who face similar problem but at least 1 area to look into.
UPDATE 2 - 7th May 2021
After adding EF Core logging as suggested by Ivan, he is right that the opening of connection is taking too long? Why is that? And how to stop that from happening?
UPDATE 1 - 7th May 2021
Jason Pan - We are using App Service Plan and this is the only application hosted there. The plan is P1V2 (https://azure.microsoft.com/en-us/pricing/details/app-service/windows/).
Ivan Stoev - Yes since the .NET Trace is not working for some reason as explained in my question, we captured the App Insights Profiler Trace to capture the call stack and as per call stack it appears that the connection to the SQL server was opened after 30 seconds. So I made two changes in my code:
a. Removed IDisposable from our Repository class that was having our context inject through DI. Before inside the Dispose method, I was calling Dispose on our context class.
b. I replaced services.AddDbContext with services.AddDbContextPool
I then wrote a test program to call the API method randomly once every 2 to 4 mins for 1 hour and only 1 call took 30 seconds and the remaining 21 took few milli-seconds.
But my next step is to run a 24 hours test (1 call every 2-7 mins for example) to see if this was just fluke or actually the solution.
...ANSWER
Answered 2021-May-08 at 08:15Ok so posting an answer to my question. It turned out that there was no issue with web application, app service plan, sql server or entity framework. I took a network trace of my application and 1 other application which doesn't have any issue and opened it with network monitor. We noted that they are taking different paths. After looking into the IP address we realized that the other application had a virtual network setup. You can see that by going to your app service plan and then click on Networking option in the left menu bar. And then choose the first one for vNet. Once we configured vNet, then all responses were within < 1 second.
There was one another oversight by me. The Auth0 calls were also taking 14 seconds sometimes. And when I tried running tcpping google.com
from KUDU that timed out sometimes as well. But was working fine for other web applications.
QUESTION
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:
- Manually delete all jobs in kudu and redeploy them
- Deploy the webjobs in another app service
- 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:18You 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.
QUESTION
Using "yo office" generated the custom functions add-in project. Implemented all the necessary custom functions and the addin works fine in local environment.
Now facing following deployment issue when deploying to Azure services.
Invalid start-up command "office-addin-debugging start manifest.xml" in package.json. Please use the format "node ". Missing server.js/app.js files, web.config is not generated Invalid start-up command "office-addin-debugging start manifest.xml" in package.json. Please use the format "node ".\r\nMissing server.js/app.js files, web.config is not generated\r\nC:\Program Files (x86)\SiteExtensions\Kudu\92.30310.5111\bin\Scripts\starter.cmd "C:\home\site\deployments\tools\deploy.cmd"
Following is the script block in package.json
...ANSWER
Answered 2021-Apr-28 at 13:59Modified the code base. Used express and webpack for deploying to the servers. Tested in both Azure and AWS. Application is up and running.
By following https://binyamin.medium.com/creating-a-node-express-webpack-app-with-dev-and-prod-builds-a4962ce51334 able to resolve the deployment issues
QUESTION
I have a simple Azure Function written in c#, it calls newman, a tool installed through NPM. it works fine locally, but newman is not recognized after deploying to Azure. I installed newman from Kudu console, and I can run newman from Kudu console without any problem, not not when I call it from Azure function:
'newman' is not recognized as an internal or external command,
...ANSWER
Answered 2021-Apr-20 at 05:12Would'nt it be better if you write the azure-function
in node
so that you can directly make use of the npm runner ?
But never mind a quick search landed me on this blog the guy has an generic example for running npm scripts from c# app.
Also both of these stackoverflow answers do help too
QUESTION
I'm trying to get a React app running in Azure App Services and having difficulties getting environmental variables to work.
LocallyWhen running locally I'm using a .env.local
file to load environmental variables (which isn't checked into git).
ANSWER
Answered 2021-Apr-19 at 23:31A react single page app is, from an infrastructure perspective, just a bunch of static files - HTML,JS,CSS, whatever. It cannot reach into the server to read those variables because there is no server side code running.
You're going to have to bundle your environment variables, whether inside .env
or package.json
or wherever.
QUESTION
We have a spark streaming (spark version 2.4.0 ) job which consumes one Kafka topic(4 partition) which includes business-changes as json with Id. These Kafka values also consist RecordTime field and other fields inside json object. This streaming job upserts a Kudu table according to the Id field.
After a while we noticed that, some updates are really not reflecting the latest state of the values for some id fields. We assume 4 different executor processing per partition and when one of them finishes earlier than other it updates target Kudu table. so if we have values like below:
...ANSWER
Answered 2021-Apr-19 at 21:09As you are sourcing the data from Kafka, it is useful to recall that Kafka provides only ordering guarantees within a topic partition.
Therefore, you can solve your issue if you have your Kafka producer produce all the messages for the same ID into the same partition. This can either be achieved by a custom paritioner in your KafkaProducer, or if you simply use the value of id as the "key" part of the Kafka message.
If you do not have control over the Kafka producer you will need to make your Spark Streaming job stateful. Here, the challenging part is to define a time frame how long your job should wait for other messages with the same id to arrive. Is it just a few seconds? Maybe a few hours? I have made the experience that this can be difficult to answer, and sometimes the answer is "a few hours" which means you need to keep the state for a few hours which could make your job go OutOfMemory.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kudu
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page