The policy definition name length must not exceed '64' characters #106
Unanswered
ashokkumarraya
asked this question in
Q&A
Replies: 1 comment
-
This is unfortunately a strict Resource API limitation and cannot be increased, the modules just perform these checks for a quicker feedback loop. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I changed the length(var.policy_name) to <= 100 in place of 64 in variables.tf files but still getting the below error. can you please provide the solution to increase the name length to 100 char?
Error: checking for presence of existing Policy Definition "Config diag settings for Queue Services to LogAnalytics workspace": policy.DefinitionsClient#GetAtManagementGroup: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidPolicyDefinitionName" Message="The policy definition name 'Config diag settings for Queue Services to LogAnalytics workspace' is invalid. The policy definition name length must not exceed '64' characters."
│
│ with module.configure_asc5["Config diag settings for Queue Services to LogAnalytics workspace"].azurerm_policy_definition.def,
│ on ..\modules\definition\main.tf line 1, in resource "azurerm_policy_definition" "def":
│ 1: resource "azurerm_policy_definition" "def" {
Beta Was this translation helpful? Give feedback.
All reactions