1. Packages
  2. Azure Classic
  3. API Docs
  4. systemcenter
  5. getVirtualMachineManagerInventoryItems

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.systemcenter.getVirtualMachineManagerInventoryItems

Explore with Pulumi AI

Use this data source to access information about existing System Center Virtual Machine Manager Inventory Items.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.systemcenter.getVirtualMachineManagerInventoryItems({
    inventoryType: "Cloud",
    systemCenterVirtualMachineManagerServerId: exampleAzurermSystemCenterVirtualMachineManagerServer.id,
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.systemcenter.get_virtual_machine_manager_inventory_items(inventory_type="Cloud",
    system_center_virtual_machine_manager_server_id=example_azurerm_system_center_virtual_machine_manager_server["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/systemcenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := systemcenter.GetVirtualMachineManagerInventoryItems(ctx, &systemcenter.GetVirtualMachineManagerInventoryItemsArgs{
			InventoryType: "Cloud",
			SystemCenterVirtualMachineManagerServerId: exampleAzurermSystemCenterVirtualMachineManagerServer.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.SystemCenter.GetVirtualMachineManagerInventoryItems.Invoke(new()
    {
        InventoryType = "Cloud",
        SystemCenterVirtualMachineManagerServerId = exampleAzurermSystemCenterVirtualMachineManagerServer.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.systemcenter.SystemcenterFunctions;
import com.pulumi.azure.systemcenter.inputs.GetVirtualMachineManagerInventoryItemsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = SystemcenterFunctions.getVirtualMachineManagerInventoryItems(GetVirtualMachineManagerInventoryItemsArgs.builder()
            .inventoryType("Cloud")
            .systemCenterVirtualMachineManagerServerId(exampleAzurermSystemCenterVirtualMachineManagerServer.id())
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:systemcenter:getVirtualMachineManagerInventoryItems
      arguments:
        inventoryType: Cloud
        systemCenterVirtualMachineManagerServerId: ${exampleAzurermSystemCenterVirtualMachineManagerServer.id}
Copy

Using getVirtualMachineManagerInventoryItems

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getVirtualMachineManagerInventoryItems(args: GetVirtualMachineManagerInventoryItemsArgs, opts?: InvokeOptions): Promise<GetVirtualMachineManagerInventoryItemsResult>
function getVirtualMachineManagerInventoryItemsOutput(args: GetVirtualMachineManagerInventoryItemsOutputArgs, opts?: InvokeOptions): Output<GetVirtualMachineManagerInventoryItemsResult>
Copy
def get_virtual_machine_manager_inventory_items(inventory_type: Optional[str] = None,
                                                system_center_virtual_machine_manager_server_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetVirtualMachineManagerInventoryItemsResult
def get_virtual_machine_manager_inventory_items_output(inventory_type: Optional[pulumi.Input[str]] = None,
                                                system_center_virtual_machine_manager_server_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetVirtualMachineManagerInventoryItemsResult]
Copy
func GetVirtualMachineManagerInventoryItems(ctx *Context, args *GetVirtualMachineManagerInventoryItemsArgs, opts ...InvokeOption) (*GetVirtualMachineManagerInventoryItemsResult, error)
func GetVirtualMachineManagerInventoryItemsOutput(ctx *Context, args *GetVirtualMachineManagerInventoryItemsOutputArgs, opts ...InvokeOption) GetVirtualMachineManagerInventoryItemsResultOutput
Copy

> Note: This function is named GetVirtualMachineManagerInventoryItems in the Go SDK.

public static class GetVirtualMachineManagerInventoryItems 
{
    public static Task<GetVirtualMachineManagerInventoryItemsResult> InvokeAsync(GetVirtualMachineManagerInventoryItemsArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualMachineManagerInventoryItemsResult> Invoke(GetVirtualMachineManagerInventoryItemsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVirtualMachineManagerInventoryItemsResult> getVirtualMachineManagerInventoryItems(GetVirtualMachineManagerInventoryItemsArgs args, InvokeOptions options)
public static Output<GetVirtualMachineManagerInventoryItemsResult> getVirtualMachineManagerInventoryItems(GetVirtualMachineManagerInventoryItemsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:systemcenter/getVirtualMachineManagerInventoryItems:getVirtualMachineManagerInventoryItems
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InventoryType This property is required. string
The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
SystemCenterVirtualMachineManagerServerId This property is required. string
The ID of the System Center Virtual Machine Manager Server.
InventoryType This property is required. string
The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
SystemCenterVirtualMachineManagerServerId This property is required. string
The ID of the System Center Virtual Machine Manager Server.
inventoryType This property is required. String
The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
systemCenterVirtualMachineManagerServerId This property is required. String
The ID of the System Center Virtual Machine Manager Server.
inventoryType This property is required. string
The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
systemCenterVirtualMachineManagerServerId This property is required. string
The ID of the System Center Virtual Machine Manager Server.
inventory_type This property is required. str
The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
system_center_virtual_machine_manager_server_id This property is required. str
The ID of the System Center Virtual Machine Manager Server.
inventoryType This property is required. String
The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
systemCenterVirtualMachineManagerServerId This property is required. String
The ID of the System Center Virtual Machine Manager Server.

getVirtualMachineManagerInventoryItems Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
InventoryItems List<GetVirtualMachineManagerInventoryItemsInventoryItem>
One or more inventory_items blocks as defined below.
InventoryType string
SystemCenterVirtualMachineManagerServerId string
Id string
The provider-assigned unique ID for this managed resource.
InventoryItems []GetVirtualMachineManagerInventoryItemsInventoryItem
One or more inventory_items blocks as defined below.
InventoryType string
SystemCenterVirtualMachineManagerServerId string
id String
The provider-assigned unique ID for this managed resource.
inventoryItems List<GetVirtualMachineManagerInventoryItemsInventoryItem>
One or more inventory_items blocks as defined below.
inventoryType String
systemCenterVirtualMachineManagerServerId String
id string
The provider-assigned unique ID for this managed resource.
inventoryItems GetVirtualMachineManagerInventoryItemsInventoryItem[]
One or more inventory_items blocks as defined below.
inventoryType string
systemCenterVirtualMachineManagerServerId string
id str
The provider-assigned unique ID for this managed resource.
inventory_items Sequence[GetVirtualMachineManagerInventoryItemsInventoryItem]
One or more inventory_items blocks as defined below.
inventory_type str
system_center_virtual_machine_manager_server_id str
id String
The provider-assigned unique ID for this managed resource.
inventoryItems List<Property Map>
One or more inventory_items blocks as defined below.
inventoryType String
systemCenterVirtualMachineManagerServerId String

Supporting Types

GetVirtualMachineManagerInventoryItemsInventoryItem

Id This property is required. string
The ID of the System Center Virtual Machine Manager Inventory Item.
Name This property is required. string
The name of the System Center Virtual Machine Manager Inventory Item.
Uuid This property is required. string
The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.
Id This property is required. string
The ID of the System Center Virtual Machine Manager Inventory Item.
Name This property is required. string
The name of the System Center Virtual Machine Manager Inventory Item.
Uuid This property is required. string
The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.
id This property is required. String
The ID of the System Center Virtual Machine Manager Inventory Item.
name This property is required. String
The name of the System Center Virtual Machine Manager Inventory Item.
uuid This property is required. String
The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.
id This property is required. string
The ID of the System Center Virtual Machine Manager Inventory Item.
name This property is required. string
The name of the System Center Virtual Machine Manager Inventory Item.
uuid This property is required. string
The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.
id This property is required. str
The ID of the System Center Virtual Machine Manager Inventory Item.
name This property is required. str
The name of the System Center Virtual Machine Manager Inventory Item.
uuid This property is required. str
The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.
id This property is required. String
The ID of the System Center Virtual Machine Manager Inventory Item.
name This property is required. String
The name of the System Center Virtual Machine Manager Inventory Item.
uuid This property is required. String
The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.