Skip to content

Commit 12523d0

Browse files
committed
fix/try run the test without an identity
1 parent 8564711 commit 12523d0

File tree

3 files changed

+10
-17
lines changed

3 files changed

+10
-17
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -328,14 +328,6 @@ Type: `map(string)`
328328

329329
Default: `{}`
330330

331-
### <a name="input_user_identity_resource_id"></a> [user\_identity\_resource\_id](#input\_user\_identity\_resource\_id)
332-
333-
Description: The managed identity definition for this resource.
334-
335-
Type: `string`
336-
337-
Default: `""`
338-
339331
### <a name="input_workload_profile_name"></a> [workload\_profile\_name](#input\_workload\_profile\_name)
340332

341333
Description: Workload profile name to pin for container app execution. If not set, workload profiles are not used.

main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ resource "azapi_resource" "container_app" {
1010
parent_id = data.azurerm_resource_group.rg.id
1111
location = local.location
1212
tags = var.tags
13-
identity {
14-
type = var.user_identity_resource_id == "" ? "SystemAssigned" : "SystemAssigned, UserAssigned"
15-
identity_ids = var.user_identity_resource_id == "" ? [] : [var.user_identity_resource_id]
16-
}
13+
# identity {
14+
# type = var.user_identity_resource_id == "" ? "SystemAssigned" : "SystemAssigned, UserAssigned"
15+
# identity_ids = var.user_identity_resource_id == "" ? [] : [var.user_identity_resource_id]
16+
# }
1717

1818
body = jsonencode({
1919
properties = {

variables.containerapps.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ variable "tags" {
1515
default = {}
1616
}
1717

18-
variable "user_identity_resource_id" {
19-
type = string
20-
description = "The managed identity definition for this resource."
21-
default = ""
22-
}
18+
# # fails - might be related to https://github.com/Azure/ResourceModules/issues/2391 ?
19+
# variable "user_identity_resource_id" {
20+
# type = string
21+
# description = "The managed identity definition for this resource."
22+
# default = ""
23+
# }
2324

2425
variable "container_app_environment_resource_id" {
2526
type = string

0 commit comments

Comments
 (0)