azure

msal in React SPA - use access token received from AcquireTokenRedirect

大憨熊 提交于 2021-02-19 08:04:21
问题 I have a React SPA and I'm using msal to authenticate Microsoft users using loginRedirect. After the login, I'm acquiring an access token silently using acquireTokenSilent to call a web API. When acquiring the access token fails and interaction is required, I'm using acquireTokenRedirect. When I use acquireTokenRedirect, what I see is: 1. The user is redirected to login.microsoftonline.com. 2. A 302 response is returned with Location header that contains the redirect url + the access token. 3

Azure Storage SAS AuthenticationFailed

倾然丶 夕夏残阳落幕 提交于 2021-02-19 07:54:05
问题 I have a private azure storage container and am trying out azure storage SAS, so that I can upload and download files. I am able to generate the signature, but it always throws me the Authentication Fail error AuthenticationFailed Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:a9dce486-0001-0021-23f7-d8f6dc000000 Time:2017-05-30T03:45:56.6617677Z Signature did not match. String to sign used was r

Kubernetes - “Mount Volume Failed” when trying to deploy

末鹿安然 提交于 2021-02-19 07:49:51
问题 I deployed my first container, I got info: deployment.apps/frontarena-ads-deployment created but then I saw my container creation is stuck in Waiting status. Then I saw the logs using kubectl describe pod frontarena-ads-deployment-5b475667dd-gzmlp and saw MountVolume error which I cannot figure out why it is thrown: Warning FailedMount 9m24s kubelet MountVolume.SetUp failed for volume "ads-filesharevolume" : mount failed: exit status 32 Mounting command: systemd-run Mounting arguments: -

How to demand multiple agent machines in Azure devops pipeline pool?

£可爱£侵袭症+ 提交于 2021-02-19 07:32:32
问题 I'm looking if I can specify a list of agents in Agent pool demands? In UI azure pipeline has only two options equals and exists. So, I tried adding two demands but pipeline takes only first demand The same in yaml is as follows, pool: name: AWS Pool demands: - Agent.Name -equals simLin02 - Agent.Name -equals ubuAgent01 I would like to know if there is any logical way of specifying the list of agent machines in yaml like following or any other alternatives where I can pass a list of agent

How to demand multiple agent machines in Azure devops pipeline pool?

走远了吗. 提交于 2021-02-19 07:32:26
问题 I'm looking if I can specify a list of agents in Agent pool demands? In UI azure pipeline has only two options equals and exists. So, I tried adding two demands but pipeline takes only first demand The same in yaml is as follows, pool: name: AWS Pool demands: - Agent.Name -equals simLin02 - Agent.Name -equals ubuAgent01 I would like to know if there is any logical way of specifying the list of agent machines in yaml like following or any other alternatives where I can pass a list of agent

Manifest icons in custom Azure DevOps extension hubs and hub groups

孤者浪人 提交于 2021-02-19 06:33:51
问题 I am developing an Azure DevOps extension. Experimenting with the DevOps UI extension sample raises a question for me. I enabled the Preview features in Azure DevOps having a more fancy UI. Azure default hubs and hub groups like Tests, Repos and so on do have a nice coloured icons in the menu bar. Whereas my custom Sample UI do not. They are just grey. And it looks like I cannot manifest icons for my custom hubs and hub groups. Anybody here who knows more about this issue? 回答1: Follow this

Azure Virtual Machine Scale Set VSTS Deployment Group

末鹿安然 提交于 2021-02-19 06:28:06
问题 Is it possible to have the vm's in a VMSS be in a deployment group inside of VSTS? Could I provision a vm with the deployment group, save its disk image, and use that as the image for the vm's in the scale set? That way when a new VM is created it will already have the vsts agent on it. But, will the authentication still work against VSTS? I know it uses a PAT, I feel like there could be issues there. Also, if new vm's "scale" up, how would they be able to get the latest version of the build?

Connect to Azure SQL DB from a Azure Functions in JS

这一生的挚爱 提交于 2021-02-19 06:00:29
问题 I am trying to connect to my Azure SQL DB from an azure function written in nodeJS. I have set the connection strings in the application settings and it still does not work. I used ODBC key for connection settings. Did anyone try this? Below is the sample code for my function var Connection = require('tedious').Connection; var Request = require('tedious').Request; // Create connection to database const config = process.env["sqldb_connection"]; var connection = new Connection(config); //

How to solve azure keyvault secrets (Unauthorized) AKV10032: Invalid issuer. error in Python

那年仲夏 提交于 2021-02-19 05:55:07
问题 I am using the azure-keyvault-secrets package to manage my resources secrets in Python 3.8, developping in PyCharm. But when I am running the following: import os from azure.keyvault.secrets import SecretClient from azure.identity import DefaultAzureCredential VAULT_URL = os.environ["VAULT_URL"] credential = DefaultAzureCredential() client = SecretClient( vault_url=VAULT_URL, credential=credential ) client.set_secret('my-secret-name', 'my-secret-value') I get the following error:

Cannot connect FTP to Azure virtual machine

笑着哭i 提交于 2021-02-19 05:48:11
问题 I provisioned a Windows Server 2012 vm in Azure. When I try to connect to it via FileZilla FTP client I get a Could not connect to server error . Here's what I have tried so far: Added inbound rule for FTP (TCP/21) in the Azure portal In IIS, configured FTP Firewall Support. Set Data Channel Port Range to 7000-7002 , External IP Address of Firewall to my vm's public IP , added 7000, 7001 and 7002 to inbound rules , did a net start/stop ftpsvc 回答1: The step I'm missing in your description, is