Skip to content

Commit

Permalink
Merge pull request #4 from qbeyond/fix/versioning-default-changes
Browse files Browse the repository at this point in the history
Fixing issues caused by changed default value
  • Loading branch information
QBY-SvenHaas authored Jul 12, 2023
2 parents be5f810 + 9f12104 commit 0cc5fd0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_ignore_missing_property"></a> [ignore\_missing\_property](#input\_ignore\_missing\_property) | Whether ignore not returned properties like credentials in body to suppress plan-diff | `bool` | `false` | no |
| <a name="input_subscription_id"></a> [subscription\_id](#input\_subscription\_id) | The GUID of the subscription. | `string` | n/a | yes |
| <a name="input_tags"></a> [tags](#input\_tags) | Map of tag key and values to apply to subscription. | `map(string)` | n/a | yes |

Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resource "azapi_update_resource" "subscription_tags" {
type = "Microsoft.Resources/tags@2021-04-01"
parent_id = "/subscriptions/${var.subscription_id}"
name = "default"
ignore_missing_property = var.ignore_missing_property
body = jsonencode({
properties = {
tags = var.tags
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ variable "tags" {
description = "Map of tag key and values to apply to subscription."
type = map(string)
}

variable "ignore_missing_property" {
description = "Whether ignore not returned properties like credentials in body to suppress plan-diff"
type = bool
default = false
}

0 comments on commit 0cc5fd0

Please sign in to comment.