azure

Azure Information Protection | How to decrypt .EMLs coming from EWS API?

自闭症网瘾萝莉.ら 提交于 2021-02-07 04:33:06
问题 Given: We use EWS API to download email messages from Office 365 (Exchange Online) When emails are encrypted using AIP, body comes in encrypted Admin user is super-user - this user's creds are used to make requests against EWS Ask: In order to decrypt, it seems that we need to use https://docs.microsoft.com/en-us/information-protection/develop/concept-handler-protection-cpp . Is this the correct API to use? If so, above API is in C++. Is there anything available in C#? Simple samples of how

Azure DevOps create build definition via REST API given existing YAML

拈花ヽ惹草 提交于 2021-02-07 04:14:40
问题 I have over 100 YAML files within an existing Git repo, each defining their own build pipeline. I am trying to create a PowerShell script to create these build definitions so I don't have to spend hours using the web UI to manually add new build definitions and point to their respective YAML files. I've come across similar questions and resources, but haven't been able to get this script to work. How to create Build Definitions through VSTS REST API Create Build Definition using Azure Devops

How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API

為{幸葍}努か 提交于 2021-02-07 03:59:08
问题 I have implemented an Azure AD OAuth2 Daemon or Server to ASP.NET Web API. However I only receive an access token which is the property on the AuthenticationResult. See implementation below. public IHttpActionResult GetAccessToken(string clientId, string clientkey) { AuthenticationContext authContext = new AuthenticationContext(authority); ClientCredential clientCredential = new ClientCredential(clientId, clientkey); AuthenticationResult authenticationResult = authContext.AcquireTokenAsync

How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API

五迷三道 提交于 2021-02-07 03:57:32
问题 I have implemented an Azure AD OAuth2 Daemon or Server to ASP.NET Web API. However I only receive an access token which is the property on the AuthenticationResult. See implementation below. public IHttpActionResult GetAccessToken(string clientId, string clientkey) { AuthenticationContext authContext = new AuthenticationContext(authority); ClientCredential clientCredential = new ClientCredential(clientId, clientkey); AuthenticationResult authenticationResult = authContext.AcquireTokenAsync

How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API

前提是你 提交于 2021-02-07 03:57:22
问题 I have implemented an Azure AD OAuth2 Daemon or Server to ASP.NET Web API. However I only receive an access token which is the property on the AuthenticationResult. See implementation below. public IHttpActionResult GetAccessToken(string clientId, string clientkey) { AuthenticationContext authContext = new AuthenticationContext(authority); ClientCredential clientCredential = new ClientCredential(clientId, clientkey); AuthenticationResult authenticationResult = authContext.AcquireTokenAsync

How do I expose Kubernetes service to the internet?

守給你的承諾、 提交于 2021-02-07 03:44:01
问题 I am running a kubernetes cluster with 1 master (also a node) and 2 nodes on Azure. I am using Ubuntu with Flannel overlay network. So far everything is working well. The only problem I have is exposing the service to the internet. I am running the cluster on an azure subnet. The master has a NIC attached to it that has a public IP. This means if I run a simple server that listens on port 80, I can reach my server using a domain name (Azure gives an option to have a domain name for a public

How do I expose Kubernetes service to the internet?

£可爱£侵袭症+ 提交于 2021-02-07 03:41:15
问题 I am running a kubernetes cluster with 1 master (also a node) and 2 nodes on Azure. I am using Ubuntu with Flannel overlay network. So far everything is working well. The only problem I have is exposing the service to the internet. I am running the cluster on an azure subnet. The master has a NIC attached to it that has a public IP. This means if I run a simple server that listens on port 80, I can reach my server using a domain name (Azure gives an option to have a domain name for a public

Appropriate solution for long running computations in Azure App Service and .NET Core 3.1?

青春壹個敷衍的年華 提交于 2021-02-07 01:27:23
问题 What is an appropriate solution for long running computations in Azure App Service and .NET Core 3.1 in an application that has no need for a database and no IO to anything outside of this application ? It is a computation task. Specifically, the following is unreliable and needs a solution. [Route("service")] [HttpPost] public Outbound Post(Inbound inbound) { Debug.Assert(inbound.Message.Equals("Hello server.")); Outbound outbound = new Outbound(); long Billion = 1000000000; for (long i = 0;

Appropriate solution for long running computations in Azure App Service and .NET Core 3.1?

*爱你&永不变心* 提交于 2021-02-07 01:24:40
问题 What is an appropriate solution for long running computations in Azure App Service and .NET Core 3.1 in an application that has no need for a database and no IO to anything outside of this application ? It is a computation task. Specifically, the following is unreliable and needs a solution. [Route("service")] [HttpPost] public Outbound Post(Inbound inbound) { Debug.Assert(inbound.Message.Equals("Hello server.")); Outbound outbound = new Outbound(); long Billion = 1000000000; for (long i = 0;

How to debug Azure Web App memory leaks?

爱⌒轻易说出口 提交于 2021-02-06 20:06:46
问题 There is the excellent Start Profiling button in the SCM portal that works perfect for CPU. Then there are some sources that refer to a Download GC Dump button: https://stackoverflow.com/a/27987593/647845 But that doesn't seem to be available anymore. Then there is the Download memory dump button. But for now I can't figure out how/if I can see the Type / Refcount / Size stastistics that I'm used too. What is the recommended way to look for memory leaks in a C# Azure Web App? 回答1: Try using