Duplicate host on Azure

Problem:
Create new host on Azure results in 2 hosts being created in Foreman (with same hostname).

Expected outcome:
Only one host is created in Foreman.

Foreman and Proxy versions:
1.24.3-1.el7.noarch

Foreman and Proxy plugin versions:

katello-3.14.1-1.el7.noarch
tfm-rubygem-azure_mgmt_storage-0.17.10-1.el7.noarch
tfm-rubygem-azure_mgmt_network-0.19.0-1.el7.noarch
tfm-rubygem-azure_mgmt_compute-0.18.7-1.el7.noarch
tfm-rubygem-azure_mgmt_resources-0.17.6-1.el7.noarch
tfm-rubygem-foreman_azure_rm-2.0.8-1.fm1_24.el7.noarch
tfm-rubygem-ms_rest_azure-0.11.1-1.el7.noarch

Distribution and version:
CentOS Linux release 7.8.2003

Other relevant data:
The host register from user_data script before being created in Foreman. Adding sleep 60 in user_data script before subscription-manger register fixed it. However I’m wondering why it takes so long to bootstrap (>2 min to retrieve IP address):

2020-09-15T09:38:33 [I|app|741b5289] Adding Compute instance for myhost.net
2020-09-15T09:40:39 [I|app|741b5289] Waiting for  myhost.net to become ready
2020-09-15T09:40:39 [I|app|741b5289] waiting for instance to acquire ip address
2020-09-15T09:40:39 [I|app|741b5289] Add DNS A record for myhost.net/10.138.1.6
2020-09-15T09:40:39 [I|app|741b5289] Add DNS PTR record for 10.138.1.6/myhost.net

Is this code involved here?

Any workaround?