Import cloud service provider data for Microsoft Azure virtual machines

IT Asset Management version 2019 R1

A new Microsoft Azure inventory connector partially automates the process of gathering Microsoft Azure virtual machine inventory data, managed by Azure Resource Manager.

Microsoft Azure virtual machine inventory must still be collected using the FlexNet Inventory Agent (recommended) or third party inventory tools. Supplementary information is retrieved by calling Azure PowerShell modules, and then mapped to inventory devices using the universal unique identifier (UUID) of the virtual machine (also known as the Azure VM Unique ID or vmId). The imported properties of matched inventory devices are then displayed on the Cloud hosting tab of the inventory device properties page.

All data imported using the new Microsoft Azure adapter is displayed on the Cloud Service Provider Inventory page. From here you can find any gaps between the cloud inventory and inventory collected by FlexNet Inventory Agent or third party inventory tools. For example, if someone stands up a VM in the cloud without an installed FlexNet Inventory Agent, the missing inventory is highlighted on this page.

As of IT Asset Management 2018 R2, cloud instance properties are available in business import, inventory spreadsheet upload, and in custom reports, and can be used with data related to Microsoft Azure VMs.

Tip: If you are using the Microsoft Azure adapter, matching inventory can be collected with FlexNet Inventory Agent release 2018 R1 (13.0.0) or later. The 2019 R1 version of FlexNet Inventory Agent(13.2.0) has been further enhanced to collect the full set of Microsoft Azure VM data, and this version does not require use of the Microsoft Azure adapter to provide complete inventory. (However, the Microsoft Azure adapter is still required to identify inventory gaps in the Cloud Service Provider Inventory page.) It is best practice to deploy the current version of FlexNet Inventory Agent whenever possible.
After June 30, 2019, Microsoft is retiring the APIs for its classic deployment model. The Microsoft Azure inventory connector does not collect virtual machine inventory for virtual machines managed by this model. The latest FlexNet Inventory Agent may be installed on these virtual machines to collect inventory, but because of the classic deployment model, it cannot differentiate between Azure in the cloud and Azure on-premises. For these VMs, we recommend you use an alternative such as the inventory spreadsheet upload, or simply modify records manually, to correct any missing information.

Additional Information

The minimum version of PowerShell required is 5.1.

The Microsoft Azure adapter requires the Azure PowerShell module to be installed. This can be any version between AzureRM 6.8.1 to AzureRM 6.13.1

The new Microsoft Azure adapter requires a service principal account to operate. This account can be setup using the following Microsoft guides:

The service principal account needs to have access to "Microsoft.Compute/VirtualMachines" with "read" permission. Microsoft now has a built-in role that is a fit for our purpose: "Virtual machine contributor".

After the installation, you will need to add "%ProgramFiles%\WindowsPowerShell\Modules" to the Environment Variable: PSModulePath

IT Asset Management (Cloud)