skip to Main Content

Task.Run in C# Azure Functions

I'm using the following logic that seems to run in parallel when running locally, but when deployed on azure functions, it's running sequencially: var allRecordTasks = new List<Task<DataRecord>>(); for (int i = 0; i < 100; i++) { allRecordTasks.Add(Task.Run(() =>…

VIEW QUESTION

Azure bicep get application id of service principal

Bicep can be used to create a role assignment as follows: resource RoleAssignment 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = { name: guid(managementGroup().id, RoleDefinitionId, principalId) properties: { roleDefinitionId: roleDefinition.id principalId: principalId principalType: principalType } } Where the principal type is 'ServicePrincipal', it seems the application…

VIEW QUESTION
Back To Top
Search