[0m[1m[31mPlanning failed.[0m[1m Terraform encountered an error while generating this plan.[0m
[0m[31mâ•·[0m[0m
[31m│[0m [0m[1m[31mError: [0m[0m[1mparsing "/applications/{redacted_saml_app_id}/identifierUris/aHR0cHM6Ly9tZXRoZW53ZWdveW91dXNlLm15d2Vic2l0Lm5ldC9zb21lLXRoaW5nL2F1dGgvc2FtbC1lbmRwb2ludC5jZ2k/cD1zcDQ=": unexpected segment "cD1zcDQ=" present at the end of the URI (input "/applications/{redacted_saml_app_id}/identifierUris/aHR0cHM6Ly9tZXRoZW53ZWdveW91dXNlLm15d2Vic2l0Lm5ldC9zb21lLXRoaW5nL2F1dGgvc2FtbC1lbmRwb2ludC5jZ2k/cD1zcDQ=")[0m
[31m│[0m [0m
[31m│[0m [0m[0m with azuread_application_identifier_uri.example,
[31m│[0m [0m on main.tf line 18, in resource "azuread_application_identifier_uri" "example":
[31m│[0m [0m 18: resource "azuread_application_identifier_uri" "example" [4m{[0m[0m
[31m│[0m [0m
[31m│[0m [0mparsing
[31m│[0m [0m"/applications/{redacted_saml_app_id}/identifierUris/aHR0cHM6Ly9tZXRoZW53ZWdveW91dXNlLm15d2Vic2l0Lm5ldC9zb21lLXRoaW5nL2F1dGgvc2FtbC1lbmRwb2ludC5jZ2k/cD1zcDQ=":
[31m│[0m [0munexpected segment "cD1zcDQ=" present at the end of the URI (input
[31m│[0m [0m"/applications/{redacted_saml_app_id}/identifierUris/aHR0cHM6Ly9tZXRoZW53ZWdveW91dXNlLm15d2Vic2l0Lm5ldC9zb21lLXRoaW5nL2F1dGgvc2FtbC1lbmRwb2ludC5jZ2k/cD1zcDQ=")
[31m╵[0m[0m
Panic Output
Expected Behavior
The Identifier URI should be registered correctly in Azure Entra ID.
Actual Behavior
The encoding of a 10 character host name is generating a forward slash / which causes a parsing error.
Steps to Reproduce
terraform apply
Important Factoids
References
Is it possible that the encoding in the provider code is being done through StdEncoding vs URLEncoding?
Community Note
Terraform (and AzureAD Provider) Version
terraform 1.7.4
Affected Resource(s)
hashicorp/terraform-provider-azuread
azuread_application_identifier_uri
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
The Identifier URI should be registered correctly in Azure Entra ID.
Actual Behavior
The encoding of a 10 character host name is generating a forward slash
/
which causes a parsing error.Steps to Reproduce
terraform apply
Important Factoids
References
Is it possible that the encoding in the provider code is being done through
StdEncoding
vsURLEncoding
?