azure

Microsoft Graph API unable to Send Email C# Console

拥有回忆 提交于 2021-02-20 19:50:58
问题 I have created a small Console Ap p to send email using Microsoft Graph API . Tutorial Used https://docs.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=csharp Error ServiceException: Code: NoPermissionsInAccessToken Message: The token contains no permissions, or permissions can not be understood. Code using System; using System.Collections.Generic; using System.Linq; using System.IO; using Microsoft.Graph; using Microsoft.Graph.Auth; using Microsoft.Graph.Extensions;

B2B users cannot sign in to Tenant using v2.0 endpoint & MSAL Auth flow

不想你离开。 提交于 2021-02-20 18:54:11
问题 I am trying to create a B2B Management portal. I've started off with this sample since it uses MSAL and Graph API. user@live.se is in the tenant. It's been invited as a "guest user", i.e a B2B user. However, signing in with user@live.se does not work even though it's been added to the tenant. Following error after sign-in: AADSTS50020: User account 'user@live.se' from external identity provider 'live.com' is not supported for api version '2.0'. Microsoft account pass-thru users and guests are

B2B users cannot sign in to Tenant using v2.0 endpoint & MSAL Auth flow

喜夏-厌秋 提交于 2021-02-20 18:54:09
问题 I am trying to create a B2B Management portal. I've started off with this sample since it uses MSAL and Graph API. user@live.se is in the tenant. It's been invited as a "guest user", i.e a B2B user. However, signing in with user@live.se does not work even though it's been added to the tenant. Following error after sign-in: AADSTS50020: User account 'user@live.se' from external identity provider 'live.com' is not supported for api version '2.0'. Microsoft account pass-thru users and guests are

B2B users cannot sign in to Tenant using v2.0 endpoint & MSAL Auth flow

时光毁灭记忆、已成空白 提交于 2021-02-20 18:54:02
问题 I am trying to create a B2B Management portal. I've started off with this sample since it uses MSAL and Graph API. user@live.se is in the tenant. It's been invited as a "guest user", i.e a B2B user. However, signing in with user@live.se does not work even though it's been added to the tenant. Following error after sign-in: AADSTS50020: User account 'user@live.se' from external identity provider 'live.com' is not supported for api version '2.0'. Microsoft account pass-thru users and guests are

How to deploy Logic App with o365 Connector within ARM template

落爺英雄遲暮 提交于 2021-02-20 18:50:19
问题 Im trying to deploy an ARM template with a logic app and an (unauthenticated) o365 connection. This is my template: { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "location": { "type": "string", "defaultValue": "[resourceGroup().location]", "metadata": { "description": "Location for all resources." } } }, "variables": { "LogicAppName": "MyLogicApp" }, "resources": [ { "type": "Microsoft.Logic

ASP.NET Core API - Get 404 on Azure App Service, but works ok on Localhost

拥有回忆 提交于 2021-02-20 15:33:34
问题 I have an ASP.NET Core 2.1 app that I've hosted in an Azure app service. When executed locally I'm able to access the controller. But when I host in an Azure app I receive a 404. Here are the minimal steps to reproduce. In Visual Studio 2017 add a new project. Select ASP.NET Core Web Application. Select ASP.NET Core 2.1, API project template, no authentication, configure for HTTPS. Run the new app as a self hosted (not using IIS). Browse to https://localhost:5001/api/values. I get the

ASP.NET Core API - Get 404 on Azure App Service, but works ok on Localhost

佐手、 提交于 2021-02-20 15:29:58
问题 I have an ASP.NET Core 2.1 app that I've hosted in an Azure app service. When executed locally I'm able to access the controller. But when I host in an Azure app I receive a 404. Here are the minimal steps to reproduce. In Visual Studio 2017 add a new project. Select ASP.NET Core Web Application. Select ASP.NET Core 2.1, API project template, no authentication, configure for HTTPS. Run the new app as a self hosted (not using IIS). Browse to https://localhost:5001/api/values. I get the

Pass parameter to Azure CLI Task in DevOps

て烟熏妆下的殇ゞ 提交于 2021-02-20 13:26:49
问题 How do you pass a parameter to an Azure CLI Task in Azure DevOps? Take the very basic example of showing basic info about a VM. A basic CLI command would be: az vm show --name myVM --resource-group dev -o table Now if I wanted to parameterize that command, so that I could pass in the VM Name, who would i do it? I've tried creating a CLI Task as both an in-line script and a file, passing parameters using the Azure DevOps Argument builder, but nothing seems to work. The parameter looks like

What is the role of “MaxAutoRenewDuration” in azure service bus?

こ雲淡風輕ζ 提交于 2021-02-20 10:14:58
问题 I'm using Microsoft.Azure.ServiceBus . (doc) I was getting an exception of: The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue. By the help of these questions: 1, 2, 3, I am able to avoid the Exception by setting the AutoComplete to false and by increment the Azure's queue lock duration to its max (from 30 seconds to 5 minutes). _queueClient.RegisterMessageHandler(ProcessMessagesAsync, new MessageHandlerOptions

Deploy Blazor WebAssembly App ASP.NET Core hosted to Azure

怎甘沉沦 提交于 2021-02-20 05:20:08
问题 I have a 3-projects solution structure (Client,Server,Shared) in Visual Studio 2019. What I exactly did to create it can be described as: [GUI] BlazorApp -> Blazor WebAssembly App -> checbox ticked [v] ASP.NET Core hosted which is equal to: [CMD] dotnet new blazorwasm --hosted I would like to deploy this projects to Azure , but I am facing some problems: When I tried to use continous GitHub deploy and attached my branch to it, I got error which basically said that 3.1 version is not supported