azure

MSAL for Android fails performing B2C login

那年仲夏 提交于 2021-02-07 12:16:32
问题 I'm using 0.2.2 version of Microsoft Authentication Library (MSAL) Preview for Android library to perform Azure AD B2C login in my native Android app. The library opens the browser to start login process. Afterwards I log in successfully and it navigates me back to the app. Inside AuthenticationCallback , I get the following error: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference at com.microsoft.identity

MSAL for Android fails performing B2C login

会有一股神秘感。 提交于 2021-02-07 12:15:22
问题 I'm using 0.2.2 version of Microsoft Authentication Library (MSAL) Preview for Android library to perform Azure AD B2C login in my native Android app. The library opens the browser to start login process. Afterwards I log in successfully and it navigates me back to the app. Inside AuthenticationCallback , I get the following error: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference at com.microsoft.identity

Node.js upload to Azure Blob Storage issues

北战南征 提交于 2021-02-07 10:54:36
问题 I am newer to Node.js/Express and am attempting a simple file upload to Azure blob storage. I am using AngularJS for the front end form. When I attempt to upload a file I receive the following error: TypeError: Cannot read property 'myfile' of undefined I have seen some examples where they are leveraging a node module named multiparty but am unsure if it applies to this basic upload need. Coming from the jQuery/front end JavaScript world, I would need to base64 encode my file for upload in

Azure Function App use latest version of Key Vault Secret via Application Settings

北战南征 提交于 2021-02-07 10:50:22
问题 I have a Linux Function App running on Consumption Plan that is using a Key Vault Reference in the Application Settings to retrieve and use a secret stored in an Azure Key Vault. This works fine so far. However, we have to change that secret every day (i.e. create a new version of that secret in the Key Vault and set an activation date for that secret) and would like to have the Function App automatically retrieve and use the new version as soon as its activated without having to manually

Conditional Stage Execution in Azure DevOps Pipelines

大兔子大兔子 提交于 2021-02-07 10:44:07
问题 I want a stage in an Azure DevOps pipeline to be executed depending on the content of a variable set in a previous stage. Here is my pipeline: stages: - stage: plan_dev jobs: - job: terraform_plan_dev steps: - bash: echo '##vso[task.setvariable variable=terraform_plan_exitcode;isOutput=true]2' name: terraform_plan - stage: apply_dev dependsOn: plan_dev condition: eq(stageDependencies.plan_dev.terraform_plan_dev.outputs['terraform_plan.terraform_plan_exitcode'], '2') jobs: - deployment: "apply

How To Share object state across all Azure Function Instances

为君一笑 提交于 2021-02-07 10:34:20
问题 We have a C# Azure Function App (consumption plan) which scales dynamically i.e new instances are added depending on the load, now we have an object which needs to be used across all instances of this Azure Function, as the object is complex (has delegates) I cannot serialize to put on an external cache so that all instances can access it from there, please suggest the best way to handle this scenario. 回答1: Azure Function instances are running on different servers, they do not share the same

Blobs downloading from azure blob container's folder

纵然是瞬间 提交于 2021-02-07 10:25:52
问题 When I am downloading blobs from Azure: $BlobName = "20171019/fac/file.jpg" Get-AzureStorageBlob -Container $ContainerName -Blob $BlobName By using above command I am getting only single file. Get-AzureStorageBlob -Container $ContainerName By using this I am getting all blobs from container. 20171019 is folder name in container, then sub folder fac . My requirement is to download all blobs from Fac folder. 回答1: We should use this command Get-AzureStorageBlobContent to download Azure storage

How to disable websocket on Shiny?

吃可爱长大的小学妹 提交于 2021-02-07 09:59:47
问题 I have a Shiny application in a Docker container hosted on Microsoft Azure WebApp. The application doesn't work anymore when log in with Azure Active Directory is activated. The application page is accessible but a error 500 is returned on websocket content as shown on the Firefox network trace. This error is not present without log in with AAD. I've tried adding the following options to /etc/shiny-server/shiny-server.conf : sanitize_errors off; disable_protocols websocket xdr-polling; This

Azure Key Vault Config Builder in 4.7.1

倖福魔咒の 提交于 2021-02-07 09:46:45
问题 We can't go to .net core yet in my company. I'm trying to investigate how to best use the azure key vault to store configuration items for our api app services. I have a simple webapi project with this global.asax file: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Http.WebHost; using System.Web.Routing; using Microsoft.Azure.KeyVault; using Microsoft.Azure.Services.AppAuthentication; using Microsoft.Extensions

IIS document root in subfolder

旧城冷巷雨未停 提交于 2021-02-07 09:16:13
问题 Hey, I have a PHP Windows Azure project but I am new to IIS. I have my PHP libs in root folder and client files like index.php, style sheets or javascripts in a subfolder called document_root. How can I set up IIS 7 (probably using Web.config) to use the document_root as the default folder for the site (making the root invisible) so i can call mydomain.tld/ instead of mydomain.tld/document_root/ I have used: <defaultDocument> <files> <clear /> <add value="document_root/index.php" /> </files>