Commit 28cccf8 1 parent 0aa240c commit 28cccf8 Copy full SHA for 28cccf8
File tree 3 files changed +70
-0
lines changed
3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,30 @@ resource "azapi_resource" "example" {
52
52
53
53
response_export_values = [" properties.loginServer" , " properties.policies.quarantinePolicy.status" ]
54
54
}
55
+
56
+ resource "azapi_resource" "example2" {
57
+ type = " Microsoft.ContainerRegistry/registries@2020-11-01-preview"
58
+ name = " registry2"
59
+ parent_id = azurerm_resource_group. example . id
60
+
61
+ location = azurerm_resource_group. example . location
62
+ identity {
63
+ type = " SystemAssigned, UserAssigned"
64
+ identity_ids = [azurerm_user_assigned_identity . example . id ]
65
+ }
66
+
67
+ body = {
68
+ sku = {
69
+ name = " Standard"
70
+ }
71
+ properties = {
72
+ adminUserEnabled = true
73
+ }
74
+ }
75
+
76
+ response_export_values = [" properties.loginServer" , " properties.policies.quarantinePolicy.status" ]
77
+ tags = local. terratag_added_main
78
+ }
55
79
56
80
locals {
57
81
terratag_added_main = {" env0_environment_id" =" 40907eff-cf7c-419a-8694-e1c6bf1d1168" ," env0_project_id" =" 43fd4ff1-8d37-4d9d-ac97-295bd850bf94" }
Original file line number Diff line number Diff line change @@ -50,3 +50,26 @@ resource "azapi_resource" "example" {
50
50
51
51
response_export_values = ["properties.loginServer", "properties.policies.quarantinePolicy.status"]
52
52
}
53
+
54
+ resource "azapi_resource" "example2" {
55
+ type = "Microsoft.ContainerRegistry/registries@2020-11-01-preview"
56
+ name = "registry2"
57
+ parent_id = azurerm_resource_group.example.id
58
+
59
+ location = azurerm_resource_group.example.location
60
+ identity {
61
+ type = "SystemAssigned, UserAssigned"
62
+ identity_ids = [azurerm_user_assigned_identity.example.id]
63
+ }
64
+
65
+ body = {
66
+ sku = {
67
+ name = "Standard"
68
+ }
69
+ properties = {
70
+ adminUserEnabled = true
71
+ }
72
+ }
73
+
74
+ response_export_values = ["properties.loginServer", "properties.policies.quarantinePolicy.status"]
75
+ }
Original file line number Diff line number Diff line change @@ -50,3 +50,26 @@ resource "azapi_resource" "example" {
50
50
51
51
response_export_values = [" properties.loginServer" , " properties.policies.quarantinePolicy.status" ]
52
52
}
53
+
54
+ resource "azapi_resource" "example2" {
55
+ type = " Microsoft.ContainerRegistry/registries@2020-11-01-preview"
56
+ name = " registry2"
57
+ parent_id = azurerm_resource_group. example . id
58
+
59
+ location = azurerm_resource_group. example . location
60
+ identity {
61
+ type = " SystemAssigned, UserAssigned"
62
+ identity_ids = [azurerm_user_assigned_identity . example . id ]
63
+ }
64
+
65
+ body = {
66
+ sku = {
67
+ name = " Standard"
68
+ }
69
+ properties = {
70
+ adminUserEnabled = true
71
+ }
72
+ }
73
+
74
+ response_export_values = [" properties.loginServer" , " properties.policies.quarantinePolicy.status" ]
75
+ }
You can’t perform that action at this time.
0 commit comments