I have VM in azure but not able to provide host name correctly under null resource block

sns 9,241 Reputation points
2023-01-31T12:00:30.67+00:00

I have VM in azure but not able to provide host name correctly under null resource block of that VM. Please see below code and help. How I should provide correct value in the host argument

User's image

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
734 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bjoern Peters 8,901 Reputation points
    2023-01-31T12:09:54.9166667+00:00

    Hi sns,

    Maybe you are getting that error because there is no attribute called "primary_private_ip_address"

    https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/network_interface

    What I could image/suggest is, that you might want to change the first underscore to a point... "primary.private_ip_address"

    I hope my answer is helpful to you,

    Your

    Bjoern Peters

    If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.