Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure public domain name for Azure hosts #11

Closed
wants to merge 1 commit into from

Conversation

karim20230
Copy link
Member

-Implemented the configuration of public domain names for Azure hosts using Terraform

@karim20230 karim20230 requested review from henrirosten and a team November 8, 2023 08:29
Copy link
Collaborator

@henrirosten henrirosten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting the following error trying to apply this change. @karim20230 did you try applying it? Does it apply for you?

$ terraform apply
data.sops_file.ghaf_infra: Reading...
data.sops_file.ghaf_infra: Read complete after 0s [id=-]
...
╷
│ Error: creating/updating DNS A Record "ghafinfratf" (Zone "swedencentral.cloudapp.azure.com" / Resource Group "ghaf-infra-tf-dev"): unexpected status 404 with error: ParentResourceNotFound: Failed to perform 'write' on resource(s) of type 'dnszones/A', because the parent resource '....' could not be found.
│ 
│   with azurerm_dns_a_record.ghafinfra_tf_dns,
│   on azure-ghaf-infra.tf line 94, in resource "azurerm_dns_a_record" "ghafinfra_tf_dns":
│   94: resource "azurerm_dns_a_record" "ghafinfra_tf_dns" {
│ 
╵

Signed-off-by: karim mdmirajul <karim.mdmirajul@unikie.com>
@karim20230
Copy link
Member Author

Fixed!

Copy link
Collaborator

@henrirosten henrirosten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the DNS name still isn't automatically assigned to the example VM after applying the configuration.
I would like to have domain name properly created and assigned to the specified VM, would it be possible to add that part also to this PR?

@karim20230
Copy link
Member Author

Adding automatically DNS names into vm not available Azure API , Created a issue
hashicorp/terraform-provider-azurerm#23876

@karim20230 karim20230 closed this Nov 15, 2023
@henrirosten henrirosten deleted the public-domian branch November 16, 2023 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants