From f03992cbfdfd2e9cb39e14bbd3fdc2bcd2663de9 Mon Sep 17 00:00:00 2001 From: Jared Holgate Date: Fri, 28 Jun 2024 14:01:05 +0100 Subject: [PATCH] Remove schema valdation for rg (#154) ## Overview/Summary Replace this with a brief description of what this Pull Request fixes, changes, etc. ## This PR fixes/adds/changes/removes 1. *Replace me* 2. *Replace me* 3. *Replace me* ### Breaking Changes 1. *Replace me* 2. *Replace me* ## Testing Evidence Please provide any testing evidence to show that your Pull Request works/fixes as described and planned (include screenshots, if appropriate). ## As part of this Pull Request I have - [ ] Checked for duplicate [Pull Requests](https://github.com/Azure/alz-terraform-accelerator/pulls) - [ ] Associated it with relevant [issues](https://github.com/Azure/alz-terraform-accelerator/issues), for tracking and closure. - [ ] Ensured my code/branch is up-to-date with the latest changes in the `main` [branch](https://github.com/Azure/alz-terraform-accelerator/tree/main) - [ ] Performed testing and provided evidence. - [ ] Updated relevant and associated documentation. --- templates/test/main.tf | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/templates/test/main.tf b/templates/test/main.tf index e342bbf7..e9eb7ed8 100644 --- a/templates/test/main.tf +++ b/templates/test/main.tf @@ -41,7 +41,10 @@ resource "azapi_resource" "resource_group_management" { type = "Microsoft.Resources/resourceGroups@2021-04-01" name = "e2e-test-management-azapi-${random_string.example.result}" location = var.resource_group_location - body = {} + body = { + properties = {} + } + schema_validation_enabled = false } resource "azapi_resource" "resource_group_connectivity" { @@ -49,7 +52,10 @@ resource "azapi_resource" "resource_group_connectivity" { type = "Microsoft.Resources/resourceGroups@2021-04-01" name = "e2e-test-connectivity-azapi-${random_string.example.result}" location = var.resource_group_location - body = {} + body = { + properties = {} + } + schema_validation_enabled = false } resource "azapi_resource" "resource_group_identity" { @@ -57,5 +63,8 @@ resource "azapi_resource" "resource_group_identity" { type = "Microsoft.Resources/resourceGroups@2021-04-01" name = "e2e-test-identity-azapi-${random_string.example.result}" location = var.resource_group_location - body = {} + body = { + properties = {} + } + schema_validation_enabled = false }