azure

How can I create a Azure Web Application to authenticate User and acquire its Access Token?

ぃ、小莉子 提交于 2021-02-11 13:18:18
问题 I want to create an Azure Web Application that can authenticate an external/internal (from any Organization) user upon opening the Web Application link through Azure AD Credentials and acquire its Access token in return. I want to use that Access Token to programmatically create an application registration in User's tenant. 回答1: First, you need to register an application and set it as a multi-tenant application, then use the auth code flow to authenticate the user and obtain an access token.

Creating Azure AD B2C Social Account using graph API

◇◆丶佛笑我妖孽 提交于 2021-02-11 13:01:47
问题 I have added google and facebook as Identity Provider for my Azure AD B2C tenant . Now I want to create social users for both google and facebook using azure ad graph api . In api documentation it is mentioned that "userIdentities" is required attribute which is having to sub attributes "issuer" and "issuerUserId" . for "issuer" it is quite clear what should be the value , but am not able to find how to get "issuerUserId" for identityProvider. It is described as "The unique user identifier

Update existing app service with Terraform

有些话、适合烂在心里 提交于 2021-02-11 13:01:44
问题 in my Azure account a have some resources. Resource groups, app services, storage accounts... I've created these resources by using the Azure portal or Powershell. Then i've written a terraform script to add other resources and update some of the existing ones. In particular i'm interested in updating the app service. I want to add some settings and a managed identity to it. What happens is that terraform says: "look, there is already an app service with the name you specified". I tried to

Deploying Postgres database on azure Container Instance?

99封情书 提交于 2021-02-11 12:57:59
问题 I am trying to deploy PostgresDatabase on azure container instance. To deploy on docker using bind mount(since Azure container Instance only support bind mount) i am using the below command, and it is deployed on docker. docker run -d -p 5434:5432 --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -e PGDATA=/var/lib/postgresql/data/pgdata -v /home/ubuntu/volum:/var/lib/postgresql/data postgres If i do something similar for deploying on Azure container Instance az container create \ -

Deploying Postgres database on azure Container Instance?

江枫思渺然 提交于 2021-02-11 12:57:47
问题 I am trying to deploy PostgresDatabase on azure container instance. To deploy on docker using bind mount(since Azure container Instance only support bind mount) i am using the below command, and it is deployed on docker. docker run -d -p 5434:5432 --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -e PGDATA=/var/lib/postgresql/data/pgdata -v /home/ubuntu/volum:/var/lib/postgresql/data postgres If i do something similar for deploying on Azure container Instance az container create \ -

Django: Module not Found on Azure App Service - Azure DevOps CD

谁都会走 提交于 2021-02-11 12:51:53
问题 I am looking to set up a simple Django application on Azure App Service (Linux OS) by running an Azure Devops Build and Release pipeline. The application builds and creates a release without a problem. However when the application has been released it runs into runtime errors. 2019-10-15T09:48:16.161816610Z ModuleNotFoundError: No module named 'django' I run pip3 install -r requirements.txt as part of the bash post deployment script, and requirements.txt contains Django but it claims the

Unable to send Email using Graph API (C# Console) by creating GraphServiceClient through AccessToken as well as ClientCredentialProvider

♀尐吖头ヾ 提交于 2021-02-11 12:50:15
问题 I get the following error Code: OrganizationFromTenantGuidNotFound Message: The tenant for tenant guid 'tenantId' does not exist. I created a .Net Core console app to send emails using the following 2 functions I used the following namespaces using Microsoft.Graph; using Microsoft.Graph.Auth; //In .Net Core this is in preview only using Microsoft.Identity.Client; using Microsoft.IdentityModel.Clients.ActiveDirectory; Common Email Message to be sent in both the functions var message = new

What is the authentication/authorization scenario for web app that calls API without signed in user in azure AD?

久未见 提交于 2021-02-11 12:41:19
问题 I have web app written in react which is Single Page Application. Then I have back end API written in .NET core 3.1. As I mentioned earlier I have web app written in react so this react web app has to call one more API to read some configs. This third application is also a API application written in .NET core 3.1. As soon as web app spins up, it will call this third APP and read configs like API URL of second application and other azure related details. Now this third API app should be

Azure Container Instances - from where to execute “docker login” before we execute “az container create” command

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-11 12:40:25
问题 we need to deploy ACI - Azure Container Instance in private virtual network. We followed the example and prepared YAML file from this link. https://docs.microsoft.com/en-us/azure/container-instances/container-instances-vnet So now we need to execute before that our command: az container create --resource-group myResourceGroup --file vnet-deploy-aci.yaml in that yaml we are referencing our image, similarly like from the above example (just we are using our private repo ) image: mcr.microsoft

Azure Container Instances - from where to execute “docker login” before we execute “az container create” command

一曲冷凌霜 提交于 2021-02-11 12:39:39
问题 we need to deploy ACI - Azure Container Instance in private virtual network. We followed the example and prepared YAML file from this link. https://docs.microsoft.com/en-us/azure/container-instances/container-instances-vnet So now we need to execute before that our command: az container create --resource-group myResourceGroup --file vnet-deploy-aci.yaml in that yaml we are referencing our image, similarly like from the above example (just we are using our private repo ) image: mcr.microsoft