azure

Azure App registeration vs Enterprise Applications

主宰稳场 提交于 2021-02-11 15:48:53
问题 I have seen that some Services can add an entry into my ActiveDirectory-> EnterpriseApplications page when i just enter my Azure Account UserId and Password on their page. Using this they can use Azure RestAPI and get List of my subscriptions and Resources etc. Even I have created a custom web Application(hosted on some public server) and I want to access Subscriptions and Resources of users using the REST API. But to do that it asks me to do the AppRegistration. But i do not want every user

Azure App registeration vs Enterprise Applications

为君一笑 提交于 2021-02-11 15:48:44
问题 I have seen that some Services can add an entry into my ActiveDirectory-> EnterpriseApplications page when i just enter my Azure Account UserId and Password on their page. Using this they can use Azure RestAPI and get List of my subscriptions and Resources etc. Even I have created a custom web Application(hosted on some public server) and I want to access Subscriptions and Resources of users using the REST API. But to do that it asks me to do the AppRegistration. But i do not want every user

Can I create an Azure Batch pool with a custom image that requires image plan?

梦想的初衷 提交于 2021-02-11 15:26:53
问题 I have created an Azure Batch pool that is configured to allocate VMs from a custom VM image that I have created. The custom VM image is based on "PyTorch from NVIDIA" which requires an image plan . When the pool tries to allocate nodes it fails on the following error: Deployment allocation failed due to missing image plan information in the request. You need to create custom image based on first party image which does not require image plan. It seems that it's possible to create Virtual

Can I create an Azure Batch pool with a custom image that requires image plan?

久未见 提交于 2021-02-11 15:26:46
问题 I have created an Azure Batch pool that is configured to allocate VMs from a custom VM image that I have created. The custom VM image is based on "PyTorch from NVIDIA" which requires an image plan . When the pool tries to allocate nodes it fails on the following error: Deployment allocation failed due to missing image plan information in the request. You need to create custom image based on first party image which does not require image plan. It seems that it's possible to create Virtual

Sharepoint online 'Unsupported app only token.'

拈花ヽ惹草 提交于 2021-02-11 15:25:13
问题 I got myself a bearer token by calling https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token with the scope https://{tenantName}.sharepoint.com/.default It's a token for a registered app in Azure AD. When I use that token to make an API call like https://infoinnobake.sharepoint.com/_api/search/query?querytext='contentclass:STS_Site contentclass:SP.Webb'&selectproperties='Title,Path'&rowlimit=500 I only reveice 401 Unsupported app only token. can some explain why? Is it possible to

Unable to fetch data using external data source

拜拜、爱过 提交于 2021-02-11 15:23:21
问题 I am trying to fetch values from azure using external data source in terraform. However, i dont understand what am i doing wrong when i try to export values using write-output, getting an error data.external.powershell_test: data.external.powershell_test: command "Powershell.exe" produced invalid JSON: invalid character 'l' looking for beginning of object key string" Below is my script $vm=(Get-AzureRmVM -ResourceGroupName MFA-RG -Name vm2).name | convertTo-json Write-Output "{""first"" : ""

Azure Function & Container Audit

点点圈 提交于 2021-02-11 15:22:39
问题 I have a file in an Azure container which is accessed via an Azure Function. When the function is invoked - it is first AuthD against Azure AD only then the file is loaded. What is the simplest way to identify "who" accessed my file ? Any user id is NOT passed as parameter. There are 1000+ users in that AD. Please guide. 回答1: App Service passes user claims to your application by using special headers. External requests aren't allowed to set these headers, so they are present only if set by

How to pass Json variable to command line task in Azure DevOps pipeline?

僤鯓⒐⒋嵵緔 提交于 2021-02-11 15:18:13
问题 I am populating a pipeline variable in Powershell task and it is getting populated successfully: $env:RESULTJSON=$json Write-host "##vso[task.setvariable variable=testJSON]$json" However, when I try to use it to pass the value in a command line task I am not able to do so: task: CmdLine@2 env: InputJSON: $(testJSON) inputs: script: echo %INPUTJSON% 'jsonProcessor.exe $(Build.BuildID),%INPUTJSON%' workingDirectory: './jsonProcExe/' I am getting just "{" in testJSON instead of the whole JSON

Code sync from Azure Scale Set VM To Azure Storage

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-11 15:17:07
问题 I need help to rectify one trouble which i am facing, am hosting my application through Azure auto scale set feature (virtual machine scale set) , when it get huge hit it will automatically scale up and an reverse when hit down, for that i need to maintain a azure storage location as well, so while push the code i need to push the similar code to azure storage from one of the VM , if we have fixed VM name we can use azcopy to push code to azure store but since its auto scale i don't have

Code sync from Azure Scale Set VM To Azure Storage

孤街浪徒 提交于 2021-02-11 15:16:19
问题 I need help to rectify one trouble which i am facing, am hosting my application through Azure auto scale set feature (virtual machine scale set) , when it get huge hit it will automatically scale up and an reverse when hit down, for that i need to maintain a azure storage location as well, so while push the code i need to push the similar code to azure storage from one of the VM , if we have fixed VM name we can use azcopy to push code to azure store but since its auto scale i don't have