Questions tagged [azure]

Microsoft Azure is an innovative platform that combines the power of Platform as a Service (PaaS) and Infrastructure as a Service (IaaS) models to offer top-notch cloud computing solutions. This versatile cloud computing platform is perfect for tackling complex programming challenges in Azure. For more general server assistance, head over to Newtab Q&A or Newtab Q&A, where experts are readily available to provide support.

Securely access a local python environment to retrieve data from Datalake

I am seeking a method to access the data in my Azure Data Lake Gen 2 using my local Python editor. Can anyone suggest the most effective approach for achieving this? While researching online, I came across different options such as SAS and Service princip ...

The ajax call functions successfully on both local endpoints and Linux servers, however, it fails to execute on Azure servers despite returning a 200 status code

I am facing an issue with an ajax call that is working fine locally and on Linux servers, but not on Azure. The HTTP status is 200 in all environments, including Azure. The PHP directory is located in a virtual directory on Azure. Any assistance with this ...

Troubleshooting UTF-16 problem with Python's Azure BlobClient

Currently, I am looking to transfer data from a streaming source into a CSV file saved in an Azure ADLS Gen2 Blob container. To ensure proper compatibility with Excel, the encoding must be UTF-16-LE. My existing code works flawlessly when using UTF8 withou ...

Uploading base64 images to Azure Storage using Next.js is a breeze!

After attempting various alternatives to solve this issue, I discovered that many of them are outdated. Even though the code below runs without any errors and successfully uploads the image while setting the mimetype correctly, it fails to render as an ima ...

Restricting access to your App Service in Azure by IP address is a simple

I am facing a challenge with my ReactJS webapp and ExpressJS backend webapp hosted on Azure as separate App services. Currently, anyone can access any route of the Express app, each returning JSON data from the Contentful API. My goal is to restrict acces ...

ADF CI Build Failure: Execution unsuccessful: node /home/shaadmin/myagent/_work/5/s/adf/build/downloads/main.js validate

Yesterday, our ADF CI Build was running smoothly based on the configuration outlined in the [Microsoft documentation][1]. However, today we encountered a sudden failure with the following error message: Command failed: node /home/shaadmin/myagent/_work/ ...

I am consistently encountering a 500 error code while attempting to make SQL server queries

I am encountering an issue with querying data from my SQL server host on Microsoft Azure. When I attempt to query by PHP, I consistently receive a 500 error code; however, querying the same data through Visual Studio is successful. Could you please help ...

Encountered a "Permission Denied" message when attempting to create an Azure web application using

During my attempt to manually build an Azure web app on a Windows instance using Node JS and Express, I encountered an error message when running npm run start; node:events:505 throw er; // Unhandled 'error' event ^ Error: listen EACCES: permission de ...

Deducing characteristics of Azure virtual machines from text with Python Software Development Kit

Looking to automatically determine the available memory and number of vCPUs based on an Azure VM size provided as a string (e.g. "STANDARD_A4_v2"). I've searched through azure-mgmt-compute without success. I came across this post which uses a ComputeManag ...

Differences between context.log and console.log in Azure function apps

While working with Azure function apps in the nodejs examples, you might have noticed the passed-in context object to the function. This allows you to use context.log method similar to console.log for outputting messages. Do you know the difference betwee ...

Azure deployment of a proprietary npm package

As a developer with git integration for my Angular web site, I have successfully checked code into Git and deployed it to Azure. Everything was running smoothly until I encountered an issue when trying to pull a private npm package. It dawned on me that I ...

Establishing a URL for the Django ImageField model attribute using a custom storage solution designed specifically for Azure Cloud Storage

I am encountering an issue with my Django web application. Users are able to upload images successfully, but for some reason the URLs of these images are not being set properly when stored in Azure Cloud Storage. As a result, when I try to display these im ...

Azure Static Web App does not retrieve the connection string value from environment.prod.ts

After deploying my Angular App to Azure as a Static Web App, everything seemed to be running smoothly. However, I encountered an issue with the file "environment.prod.ts" in the environments folder within my app that contains the following code: export co ...

Learn how to effectively combine the Dialogflow API v2 with the MS BotFramework by utilizing the dialogflow-nodejs-client-v2

Currently, I am in the process of building a chatbot using MS BotFramework functions. I am attempting to integrate Dialogflow with MS BotFramework, but I am encountering issues with setting up the configuration. The dialogflow-nodejs-client-v2 library requ ...

Creating individual files for each dialog set in the Azure Bot Framework using Node.js has never been easier

There are a total of 5 unique categories of dialog boxes that I am working with. My goal is to organize each category in its own separate file, such as Dialog1.js, Dialog2.js, and so forth. Any assistance on how to accomplish this would be greatly appreci ...

When setting up an Azure Cosmos DB container, what is the purpose of selecting the offerThroughput option?

When creating a container programmatically, there are various ways to specify throughput in the documentation. What are the differences between the following configurations? // A. Create with default throughput? const { container } = await database.contain ...

The issue of content type being changed when transferring files to Azure Blob container

I've encountered a problem in my code where Azure is overriding the content type with application/octet-stream instead of the expected image/png. Even though I can see in the network tab that the content type is set correctly, when viewing the file in the ...

Configuring web.config for Angular Universal deployment

I am trying to deploy Angular 4 Universal on Azure Web, but I am encountering some issues with the web.config file. The server.js file is located in the dist folder, so I set the path in the web.config as "dist/server.js". However, when the server.js runs ...

Effectively controlling two distinct Azure resources within one domain name through domain routing

I am currently in the process of deploying a React application on Microsoft Azure that includes a basic content management feature. Essentially, when users visit the website and access static content, the app retrieves HTML code from a database and display ...

Setting up CI/CD for a project involving an API, Angular application, and database on Azure App Services

In my VSTS local GIT REPO, I have a solution file with three main projects: an API, an Angular App, and a SQL Server DB Project. There are also some test projects included in the solution. I am currently facing challenges in setting up CI/CD for this setu ...

Execute React program within VM Azure

After setting up my React application on Azure's virtual machine, I encountered an issue. When trying to access the public URL (DNS) of the VM, I received a "site can't be reached" message. This is the process I followed to launch my project on ...

Establish a connection to Cosmos DB from local code by utilizing the DefaultAzureCredential method

I've created a Typescript script to retrieve items from a Cosmos DB container, utilizing the DefaultAzureCredential for authentication. However, I'm encountering a 403 error indicating insufficient permissions, which is puzzling since I am the administrato ...

Verification of the token using passport-azure-ad Strategy.prototype.jwtVerify has failed

I recently developed a web API by following this informative article: Developing Node.js WebAPI with Azure Active Directory const restify = require('restify'), restifyPlugins = require('restify-plugins'), config = require('./config'), serverP ...

Launching Angular 2 Application on Azure Cloud

I have recently been diving into the world of Angular 2 and Azure. Following the steps outlined in the Angular 2 Tutorial, I was able to successfully run my application locally without any issues. After deploying the app to Azure, I encountered a problem. ...

"Encountering Server Unavailability Issue while Deploying Vue App to Azure App Service on Linux

Working on developing a web app with Vue and Azure App Service on Linux has been successful locally. However, encountering a "Service Unavailable" error when attempting to build it on the server. The project is utilizing NUXT, with the port currently set ...

Is it possible to create a React app (using create-react-app) paired with an Express backend all within a single

I am currently working on a React front-end application with an Express backend setup that is functioning smoothly in my local environment as a proxy API server. During development, the React front-end is hosted on port 3001 while the Express server is ru ...

Encountered a 403 error while attempting to download packages from the Azure feed using N

I have been utilizing an Azure feed containing npm packages and connecting to it using a Personal Access Token with Packaging read & write scope. Up until recently, everything was functioning well, but now when attempting to download packages, I am enc ...

Can messages be transmitted to Log Stream (App Insights Logs) within Azure Function App?

I've been searching for a solution, but have yet to find one. When I'm in my Function App, I go here: https://i.stack.imgur.com/9kwC2.png Then click the drop-down arrow and choose Application Insight Logs https://i.stack.imgur.com/s4Chu.png In the log ...

What is the process for deploying a Next.js application from a monorepo created with Turborepo to Azure Web Apps?

I manage a monorepo containing multiple nextjs apps built with Turborepo, and I want to deploy them to Azure Web App. Each app should be able to deploy independently on Azure Web App, but I also want to explore hosting them on a single Azure Web Apps insta ...

What steps should I take to address issues with Azure Linux App Service if error messages are not appearing in the logs?

An Azure Linux App Service running a NodeJS app with LoopBack 4 framework has been deployed for some time. Recently, encountering difficulties deploying a new version of the application using Azure DevOps. After deployment last week, the app required mult ...

The deployment of a Next JS 13 app to Azure Static Web Apps is facing challenges and cannot

I'm encountering a 500 error when attempting to deploy my upcoming 13 app directory application to Azure Static Web Apps. Despite checking Azure for logs and exploring the Diagnose tab, I am unable to find any information. Here is an excerpt from my workfl ...

How can you design a versatile Logic app in Azure that handles all email functions?

Currently, I am developing an ETL script in Python Azure function to automate the process of sending email notifications regarding job status and progress tracking to various stakeholders. In order to achieve this efficiently, I am exploring the option of ...

Activity Timeout in Azure Durable Functions

Within my activity function, I have the following code block: do { await timeout(500); } while (await getStatus() === false); Here's what each part of the code does: function timeout(ms) { return new Promise(resolve => setTimeout(resolve, ...

Having trouble deploying Next.js on Azure due to an error indicating that the function content size was too large

Encountering difficulties when attempting to deploy the Next.js SSR app on Azure static-web-app. I have included the necessary configurations in the yml file to limit caching, but I am still receiving an ERROR: "The size of the function content was too lar ...

Encountering an error following the deployment of the React application to Azure

My react application was successfully deployed on azure using a windows environment. However, upon trying to access the website, I encountered the following error message: "You do not have permission to view this directory or page." Even after adding the ...

Leveraging ES Module packages in Azure TypeScript Function Development

I'm encountering an issue while trying to utilize the p-map package in my Azure Function. The error message that I'm getting is as follows: A Worker failed to load function: 'serverless' with function id: '<id>'. Result: Failure Exception: The Worker ...

Utilizing AngularJS and ADAL.JS to Define Resource ID (Audience)

Is there a way to utilize adal.js within AngularJS to obtain a bearer token for the audience https://management.azure.com through JavaScript? I have created a client application in Azure AD and configured its permissions to allow access to the "Windows Az ...

What is the best way to handle extensionless files and serve them as text/html using Express?

Currently, I am facing an issue with serving extensionless files as text/html on my static website using Express and Nginx. Despite my attempts to modify the MIME type in a managed environment like Azure App Service on Linux, the files are still being serv ...

Populate PDF files using a Node.js API application deployed on the Azure cloud platform

Does anyone know a way to populate PDFs on a Node.js application without relying on a C or C++ library? I need to fill out PDFs stored on my server using data from a database. There are some solutions like https://www.npmjs.com/package/pdffiller and https: ...

Setting a cap on file sizes in Azure websites

I am currently attempting to upload a file from the front-end to the back-end and save the file on Azure Storage. My code functions properly when the file size is below 30mb, however, it fails if the file size exceeds 30mb. console.log('- 11111 -&apo ...

Deploying React.js: Should you release the client and server separately or as a cohesive unit?

I currently have a react.js website with a backend in Node/express that is being hosted on Azure. The project is currently set up as monolithic, meaning every time I make a change to either the front-end or back-end, everything has to be redeployed in pr ...

Notification from Apple - one message, multiple alerts received

After sending a notification to an iOS device, only one message is received, but the alert pops up multiple times (iOS 7+). However, when the notification is pushed to an Android device, everything works as expected: one message received and one alert disp ...

Sending emails from Node using Mail (nodemailer/maigun-js) is not functioning correctly

Seeking to ensure complete registration confirmation, I am attempting to send a confirmation email to the user in the process of signing up. My chosen tools for mail sending are node.js along with either nodemailer or mailgun-js. During testing on localhos ...

Azure Active Directory: Access Token Response Body Does Not Contain "Scope" Property

I am currently developing a Python script to modify an Excel spreadsheet stored in SharePoint within our Office 365 for Business environment. To achieve this, I am utilizing the Microsoft Graph API and have registered my Python application with Microsoft A ...

Create a new web application to function as an API within Azure Active Directory

Can someone help me figure out how to set up a web application in Azure AD for access from other clients, such as SPA applications? I'm unsure of how to handle the authentication step in the flow. My initial thought was to register a web app (with web redi ...

Is it possible to implement a customized pathway for the functions within an Azure function app?

Recently, I set up a new function app on Azure using Azure Functions Core Tools with Typescript as the language. The app includes a test function named MyTestFunction that responds with an HTTP response when called. This particular function is located in ...

What steps are needed to authenticate to Azure AD using NodeJS?

Currently, I am utilizing the activedirectory package from npm (https://www.npmjs.com/package/activedirectory). For reference, you can view an example from activedirectory here. I am having trouble determining the URL. I attempted it with my default Azure ...

Setting up an Endpoint URL for a Twilio Whatsapp API connection with an Azure Node.js bot: A step-by-step guide

I have successfully developed a Node.js bot using the Bot Framework and uploaded it to Azure. By default, the messaging endpoint for my Azure bot msbotnew1 is as follows: https://msbotnew1.azurewebsites.net/api/messages I can interact with the bot throu ...

How can I retrieve the data passed in a post request using Azure Functions and JavaScript?

I have a JavaScript Azure function that takes a context and request as parameters: function(context, req) It's easy to retrieve data from a GET request using the req object. For example, if I pass name=test in the URL, I can retrieve it in my code like t ...

Debbuging problems with Azure web sockets and Socket.io

I'm currently developing a multiplayer chess game using NodeJS and socket.IO. I've been facing challenges trying to host it on Azure. I've attempted various approaches, including: Enforcing the use of WebSockets by adding the following code: io.configur ...

Transforming API data with complex nested JSON structure into a CSV file using Azure Data Factory (

After receiving a Json file from the Log Analytics API in ADF, I am attempting to convert it into a CSV file. The structure of my Json file is as follows: { "tables": [ { "name": "PrimaryResult", ...

Having trouble deploying my Node.js application on Microsoft Azure

I encountered an issue while trying to deploy my website on Microsoft Azure Linux App Service using Github actions. The project works perfectly fine in Glitch, but I receive errors when trying to run it on Azure. It seems that Azure is attempting to insta ...

Passport sessions persist even after the browser is closed

I'm currently working on implementing remember me functionality for my Node.js server using passport for session management. However, I've encountered an issue where the session cookie connect.sid is not being destroyed on browser close, which sh ...

The Azure website is encountering an issue due to the absence of the specified Node version in the

Within my Azure setup, I am currently using an 'Azure Website' instance to run Docpad (a NodeJS App). In my package.json file, I have specified the following... "engines": { "node": "0.10.21", "npm": "1.x" }, I have tried various entries ranging from ...

Deploy Vue.js and ASP.NET Core together on Azure Cloud

I have a project that combines ASP.NET Core with Vue.js and I am trying to deploy it on Azure App Service using a CI/CD GitHub account. Following Microsoft's guide, everything seemed to be going smoothly until I encountered an error during the publish ...

Utilizing the .NPMRC File for Authentication in Azure Pipeline with NPM CI

My current focus is on enhancing the build time for an Azure pipeline that carries out an NPM install. To achieve this goal, I made the decision to transition from using npm install to npm ci. However, a hurdle presents itself when it comes to the authent ...

Unlock the Potential of Azure Open Data With PHP

I am currently exploring the functionality of a webservice provided by RDW. This particular webservice allows users to retrieve information about a car by inputting its license plate number. Below is the link that I have been utilizing for this purpose. h ...

Guide on instructing Azure Web App on the location of server.js

I am facing an issue where the deployment of my site on Azure through Github actions is not serving the site correctly. According to Azure's documentation, the container should start with one of these common files: bin/www server.js app.js index ...

When using Python to authenticate with O365 using the `credentials` flow type, an error message is generated stating that the resource for the segment `messages` was not found

Switching my code from auth_type "authorization" to "credentials" was an attempt to eliminate the logon process. However, no matter what I do, I keep encountering the Error Message: Resource not found for the segment 'messages' I've experi ...

Troubleshooting routing problems in a Next.js application hosted on Azure's static web app

I recently developed a Next.js application that connects to a database through an API in order to display data in the form of folder structures. If a row in the database is identified as a folder, it should be displayed as such, while if it is not, then it ...

Having trouble deploying NodeJS app on Azure platform

After successfully installing the SDK, I proceeded to try out the Hello World example. However, when I reached the Publish-AzureService command, it encountered an error: PS C:\code\node\tasklist\WebRole1> Publish-AzureService -name ...

Challenge with JSON Output Formatting in Azure Data Factory

I'm facing a problem with formatting the JSON output in Azure Data Factory. The structure I want for my JSON output is: { "AccessionNum": "12345", "test": [ { "orderunit": "JMJ", "Testname": "TVK" }, { "orderunit": "P ...

Running tests using Selenium and Maven works fine on a local machine, but encounters an issue in Azure Pipeline with the error message "unable to access org.testng.Assert."

Running TestNG or Maven tests locally shows that all test cases are working correctly. However, when running the tests in a pipeline, an error is encountered stating "cannot access org.testng.Assert". Attached below are error screenshots of Azure Pipeline: ...

What is the process for setting up the configuration to retrieve npm packages from Jfrog artifacts for a YAML-based Azure CI Pipeline?

I am looking to set up an Azure DevOps yaml CI pipeline for a front-end angular app, specifically needing to retrieve all npm packages from Jfrog Artifacts in a defined way. Could someone kindly assist me with how to specify endpoints for pulling Jfrog np ...

The process of incorporating user properties into the output of a Service Bus topic from a Javascript Azure Function

I'm currently developing a TypeScript Azure Function that utilizes an Azure Service Bus topic as its output. Although I am able to send messages successfully, I have encountered difficulties in setting custom metadata properties for the message. In my att ...

Having trouble installing npm packages after adding the private `.npmrc` file to Azure

Having some trouble installing npm packages due to a .npmrc file set up for a private library hosted on Azure workspace. After creating a new config file, everything works smoothly in localhost. How can I include two registries in the .npmrc file, one for ...

Evaluate software on a local environment for both Google Cloud and Azure

Is there a method to locally test applications designed for Google Cloud or Azure on a computer, comparable to the Localstack Docker image used for AWS? Your help is greatly appreciated! ...

Empty endpoint authorization for Azure Bot

Background : Currently, I am engaged in a project involving a bot on Azure. I have set up a "bot channel registration" to establish an endpoint for receiving messages from Skype for Business. This endpoint is hosted on our server, and while we are able to ...

Azure deployment encountering unsupported platform error for fsEvents in Npm

Whenever I try to run npm install, I encounter the following error message: npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7b1d081e0d1e150f083b4a5548457805040 ...

Using an SAS token to access Azure Blob storage in Python

UPDATE: I need to retrieve a blob from an Azure Storage Container and incorporate it into my Python script using a unique SAS Token specific to BLOB. from azure.storage.blob import BlobService sas_service = BlobService( account_name = "name", sas ...

Author: Facing difficulty in downloading dependency on Windows Azure platform

My composer.json file looks like this: 1 { 2 "require": { 3 "microsoft/windowsazure": "*" 4 }, 5 "repositories": [ 6 { 7 "type": "pear", 8 "url": "http://pear.php.net" ...

Writing to Json files in Azure Data Factory

Can I get your thoughts on this? So, working in Azure Data Factory, I have a series of activities that generate a JSON segment at the end of each run {"name":"myName", "email":"<a href="/cdn-cgi/l/email-protection" cla ...

Installing npm packages on Kudu doesn't seem to have any effect

Earlier today, I executed npm install and the node_modules directory was created with all the necessary files. However, a few hours later, when I ran the same command with the same package.json file, there were no errors, but the node_modules directory wa ...

Stop Azure function from repeating its execution recursively

A custom Azure function has been developed to respond to an EventGrid subscription event triggered by the uploading of a new blob into Blob Storage. This function is responsible for resizing the uploaded image and then re-uploading it back into the same c ...

Implementing strong security measures for Angular and .Net Core APIs using Azure AD authentication and defining specific application roles

My system is a combination of Angular front end and .Net Core API back end. Both are set up as distinct Active Directory apps in the Azure Portal. As a result, both applications are protected by Azure AD. The API is exposed and interacted with by authenti ...