Unable to connect remote VM

Unable to connect remote VM getting bellow error

connection {
host = “${azurerm_network_interface.example.private_ip_address}”
type = “winrm”
user = “xxxxxx”
password = “xxxxxx”
}
│ timeout - last error: unknown error Post “http://X.X.X.X:5985/wsman”: dial tcp X.X.X.X:5985: connectex: A connection attempt failed because the connected party did
│ not properly respond after a period of time, or established connection failed because connected host has failed to respond.