azure

Upload Zip Chunks and Join them on Azure Platform

故事扮演 提交于 2021-02-11 14:29:58
问题 I want to know that.. If I make chunks of a big Zip file and upload all chunks on Azure Cloud Storage in Container Blobs. Can i Join these chunks on Azure Platform.? for chunking i am using this code which is also generating .bat file for rejoining the chunks.. public void SplitFile(){ int numericUpDown = 100;//in MB string PathToCopyChunks = ""; // path to store chunks and ( .bat ) file string FilePathMakeChunks = DirectoryNameToPutScannedData; //the path of file to make chunks. try{ int kbs

Can't execute .net 5 program as Azure WebJob

≡放荡痞女 提交于 2021-02-11 14:22:07
问题 I have a .net 5 command line programm which I try to execute on a schedule as webjob on Azure. I can execute it without issues locally, but when execute on Azure I get: [12/14/2020 21:28:03 > 83e1e9: SYS INFO] Status changed to Initializing [12/14/2020 21:28:10 > 83e1e9: SYS INFO] Run script 'ApplySupportTool.ServerTasks.exe' with script host - 'WindowsScriptHost' [12/14/2020 21:28:11 > 83e1e9: SYS INFO] Status changed to Running [12/14/2020 21:28:11 > 83e1e9: ERR ] It was not possible to

What is the best parameters to integrate Azure Functions with Event hubs chain

女生的网名这么多〃 提交于 2021-02-11 14:21:42
问题 we need to setup 4 EventHub and 3 Azure Functions. So what is the best way to have high throughput and Scalable parameters that we can set to have a system that can handle 75k message/sec? Local.settings.json hosts.json prefetch Count max batch side 回答1: This article is definitely worth a read and is something I based some of my work on, I needed to achieve 50k p/sec. https://azure.microsoft.com/en-gb/blog/processing-100-000-events-per-second-on-azure-functions/ An important consideration is

.NET Service System.Net.Sockets.SocketException: 'No such host is known'

风流意气都作罢 提交于 2021-02-11 14:19:29
问题 I deployed a .NET Windows Service on Azure Virtual Machine running Windows Server with an opened port that allow me to connect to it, this service is like a server using socket. The problem is that when I try to connect from my PC to that hosted server it doesn't work and I get this exception: System.Net.Sockets.SocketException: 'No such host is known' . The port is opened and visible from my PC. Can someone tell me why I get that exception? If I run locally all works ok. 回答1: The Exception

How to acquire a token with Azure AD and MSAL in ASP.NET

两盒软妹~` 提交于 2021-02-11 14:18:29
问题 I'm trying to authenticate a token using Azure AD. In a console application , I have no problem with this thanks to IConfidentialClientApplication: static void Main(string[] args) { Console.WriteLine("Making the call..."); RunAsync().GetAwaiter().GetResult(); } private static async Task RunAsync() { AuthConfig config = AuthConfig.ReadJsonFromFile("appsettings.json"); IConfidentialClientApplication app; app = ConfidentialClientApplicationBuilder.Create(config.ClientId) .WithClientSecret(config

How to handle authentication between API and Client in Azure

白昼怎懂夜的黑 提交于 2021-02-11 14:13:54
问题 I'm not really sure what to call this but basically I have a service app that just serves up an API while occasional calling external APIs in the background to keep the data updated. Aside from authenticating to the external APIs there is no other authentication on this app. Then, I have a front end app that uses the API of the service app to get data and display it to the user, and optionally modify some of the data. This app is setup to authenticate against Azure AD and has app roles setup

Is it possible to create a policy that will conditionally expose an api management endpoint in azure even when a opim-subscription key is required?

不问归期 提交于 2021-02-11 14:02:43
问题 An example of what I am looking for is as follows but the allow-access element does not exist. What can I replace with so that the subscription key is not checked. i.e. in this case it would allow all callers access to the controller as long as they are making GET requests. <policies> <inbound> <base /> <choose> <when condition="@(context.Request.Method.Equals("GET"))"> <allow-access /> </when> </choose> </inbound> <backend> <base /> </backend> <outbound> <base /> </outbound> <on-error> <base

Service worker Angular 5

情到浓时终转凉″ 提交于 2021-02-11 13:54:00
问题 Service worker doesn't work after deploy to Azure. My json: { "index": "/index.html", "assetGroups": [ { "name": "app", "installMode": "prefetch", "resources": { "files": [ "/index.html" ], "versionedFiles": [ "/*.bundle.css", "/*.bundle.js", "/*.chunk.js" ] } }, { "name": "assets", "installMode": "lazy", "updateMode": "prefetch", "resources": { "files": [ "/assets/**", "favicon.ico" ] } }]} In .angular-cli.json added "serviceWorker": true In app.module.ts added ServiceWorkerModule.register('

How do I iterate CloudBlobDirectory to copy the data?

送分小仙女□ 提交于 2021-02-11 13:46:31
问题 I have written below code to iterate through the Gen2 storage blob CloudStorageAccount sourceAccount = CloudStorageAccount.Parse(sourceConnection); CloudStorageAccount destAccount = CloudStorageAccount.Parse(destConnection); CloudBlobClient sourceClient = sourceAccount.CreateCloudBlobClient(); CloudBlobClient destClient = destAccount.CreateCloudBlobClient(); CloudBlobContainer sourceBlobContainer = sourceClient.GetContainerReference(sourceContainer); // Find all blobs that haven't changed

How do I iterate CloudBlobDirectory to copy the data?

爷,独闯天下 提交于 2021-02-11 13:44:35
问题 I have written below code to iterate through the Gen2 storage blob CloudStorageAccount sourceAccount = CloudStorageAccount.Parse(sourceConnection); CloudStorageAccount destAccount = CloudStorageAccount.Parse(destConnection); CloudBlobClient sourceClient = sourceAccount.CreateCloudBlobClient(); CloudBlobClient destClient = destAccount.CreateCloudBlobClient(); CloudBlobContainer sourceBlobContainer = sourceClient.GetContainerReference(sourceContainer); // Find all blobs that haven't changed