skip to Main Content

Azure Container Apps environment creation fails due to error ManagedEnvironmentResourceGroupDisallowedByPolicy when adding a VNET integration

I'm trying to create an Azure Container Apps Environment through the AzAPI provider on Terraform. The configuration I'm using is the following: resource "azapi_resource" "aca_env" { type = "Microsoft.App/managedEnvironments@2022-03-01" parent_id = azurerm_resource_group.rg.id location = azurerm_resource_group.rg.location name = var.ACA_ENV_NAME body =…

VIEW QUESTION

Azure – AZ REST Command Forbidden

Service Principal does have Application.ReadWrite.OwnedBy API permission but it can't PATCH using the AZ REST commands. It can LIST/ GET using AZ REST command. az rest --method PATCH --uri "https://graph.microsoft.com/v1.0/applications/{OBJECT_ID}" --headers 'Content-Type=application/json' --body "{web:{redirectUris:['https://URL']}}" Error: Forbidden( { "error": { "code":"Authorization_RequestDenied",…

VIEW QUESTION

StackOverFlow Exception from WebJobsBuilderExtensions while running Azure function locally

I have written Azure function which is throwing StackOverFlow Exception in the below code from class WebJobsBuilderExtensions in the namespace ` Microsoft.Azure.WebJobs services.TryAddEnumerable(ServiceDescriptor.Singleton<IHostedService, JobHostService>()); Here is my Startup class [assembly: WebJobsStartup(typeof(Startup))] namespace FuncApp { public class Startup : IWebJobsStartup {…

VIEW QUESTION

How to assign Global Administrator role to a Service Principal in Azure?

I can assign the owner role to a service principal # Assign Owner Permission to the Service Principal resource "azurerm_role_assignment" "sp-tenant-global-admin-role-assignment" { scope = "subscriptions/${data.azurerm_client_config.current.subscription_id}" role_definition_name = "Owner" principal_id = azuread_service_principal.sp-tenant-global-admin.object_id } However, I want to assign the Global Administrator…

VIEW QUESTION
Back To Top
Search