azure

Azure web app tedious

允我心安 提交于 2021-02-08 09:50:18
问题 I want to use use tedious in my Azure web app to follow this tutorial https://docs.microsoft.com/en-us/azure/sql-database/sql-database-connect-query-nodejs I get the error "Uncaught Error: Module name "tedious" has not been loaded yet" with require('tedious').Connection. How do I load this module in Azure? The javascript code: var Connection = require('tedious').Connection; var Request = require('tedious').Request; // Create connection to database var config = { userName: '******', // update

ApplicationInsights OperationId is empty

佐手、 提交于 2021-02-08 09:40:11
问题 I'm implementing custom ApplicationInsights logger and able to write all logs in write places like traces, exceptions and request, but OperationId is empty in traces and exceptions. Yesterday I was using same code and getting OperationId in all tables. After that I was playing for multi-thread scenario which didn't work well. Now I started again with simple code but can't see OperationId. what is wrong in my code? public static class Function2 { private static TelemetryClient telemetryClient

Azure web job failing to execute after timeout

邮差的信 提交于 2021-02-08 09:35:11
问题 some of my continuous running web job function(random) show message of Timeout value of 00:30:00 exceeded by function '<myfunction>' (Id: '<id>'). Initiating cancellation . after this message this function will not execute itself until and unless manually stop and start the azure web job. Thanks in advance. 回答1: some of my continuous running web job function(random) show message of Timeout value of 00:30:00 exceeded by function '<myfunction>' (Id: '<id>'). Initiating cancellation . Based on

Shared Access Policy Programatic Creation for Azure Service Bus

时间秒杀一切 提交于 2021-02-08 09:15:28
问题 I need to create/update and delete Shared Access Policy programmatically from my application on an existing Service Bus. I can do that just fine from portal.azure.com but how do I do that programmatically? Is there a rest API for this? I've read through this document but can't seem to make it work. Any help will be highly appreciated, thanks! 回答1: It is possible to create Shared access policy for Azure bus Service queus or topics. Please refer the below link for programmatical implementation

Shared Access Policy Programatic Creation for Azure Service Bus

孤人 提交于 2021-02-08 09:15:23
问题 I need to create/update and delete Shared Access Policy programmatically from my application on an existing Service Bus. I can do that just fine from portal.azure.com but how do I do that programmatically? Is there a rest API for this? I've read through this document but can't seem to make it work. Any help will be highly appreciated, thanks! 回答1: It is possible to create Shared access policy for Azure bus Service queus or topics. Please refer the below link for programmatical implementation

Incremental scan of new/modified FTP files with C#

不想你离开。 提交于 2021-02-08 08:53:20
问题 I have an FTP server from which I need to upload files to a blob storage in Azure. I cannot touch or move any of the files. Is there anyway to do an incremental scan (through an id or similar), or do you have to save the modified date of the newest file and then scan all files newer than that? All input are welcome. 回答1: All you can do with FTP is to get a list of all files in a directory. Nothing else. Some FTP servers will allow you retrieving the list sorted by a timestamp. This is a

After upgrade to asp.net 5.2.3, CORS isn't working for “*” origins

徘徊边缘 提交于 2021-02-08 08:43:18
问题 I have a project using web api and one using asp.net mvc. They are configured using CORS module. The project using Web Api is configured to allow any origin because it's deployed on Azure and it's an OData endpoint, so we don't know who is going to consume it. OData endpoint configuration // inside configuration config.EnableCors(); // controllers [EnableCors(origins: "*", headers: "*", methods: "*")] [Authorize] [HttpPost] public void ... From my MVC client, using Angular $http we issue an

AZURE VMs on the same VNET, different subnet can not ping to port other then 3389

感情迁移 提交于 2021-02-08 08:39:18
问题 I am very new to the AZURE, and was trying to connect two VM (same network, separate Subset). I have enabled RDP on both the VM, So I can ping from VM-1 to VM-2 like this: PS C:\Users\AzureUser> Test-NetConnection 10.0.1.4 -port 3389 ComputerName : 10.0.1.4 RemoteAddress : 10.0.1.4 RemotePort : 3389 InterfaceAlias : Ethernet SourceAddress : 10.0.0.4 TcpTestSucceeded : True I guess this is because this port 3389 is used for RDP. Now in Inbound port rules I have added port 8080 but not able to

Outlook WEB Add-in execution of getAccessToken returns status code 302

送分小仙女□ 提交于 2021-02-08 08:22:30
问题 I strictly follow this article to build an Outlook WEB Add-in, but when I execute getAccessToken I receive 302: Missing grant for this add-in. with name: Preauthorization missing Why is that? My Add-in is well registered in the portal. Do I need to do anything else? What is the grant type for this request and where should I put it in? $("#getAccessTokenBtn").click(function () { Office.context.auth.getAccessTokenAsync(function (result) { if ("succeeded" === result.status) { // Use this token

Outlook WEB Add-in execution of getAccessToken returns status code 302

…衆ロ難τιáo~ 提交于 2021-02-08 08:21:30
问题 I strictly follow this article to build an Outlook WEB Add-in, but when I execute getAccessToken I receive 302: Missing grant for this add-in. with name: Preauthorization missing Why is that? My Add-in is well registered in the portal. Do I need to do anything else? What is the grant type for this request and where should I put it in? $("#getAccessTokenBtn").click(function () { Office.context.auth.getAccessTokenAsync(function (result) { if ("succeeded" === result.status) { // Use this token