We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  example:
    fn::invoke:
      function: azure:systemcenter:getVirtualMachineManagerInventoryItems
      arguments:
        inventoryType: Cloud
        systemCenterVirtualMachineManagerServerId: ${exampleAzurermSystemCenterVirtualMachineManagerServer.id}
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>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]func GetVirtualMachineManagerInventoryItems(ctx *Context, args *GetVirtualMachineManagerInventoryItemsArgs, opts ...InvokeOption) (*GetVirtualMachineManagerInventoryItemsResult, error)
func GetVirtualMachineManagerInventoryItemsOutput(ctx *Context, args *GetVirtualMachineManagerInventoryItemsOutputArgs, opts ...InvokeOption) GetVirtualMachineManagerInventoryItemsResultOutput> 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)
}public static CompletableFuture<GetVirtualMachineManagerInventoryItemsResult> getVirtualMachineManagerInventoryItems(GetVirtualMachineManagerInventoryItemsArgs args, InvokeOptions options)
public static Output<GetVirtualMachineManagerInventoryItemsResult> getVirtualMachineManagerInventoryItems(GetVirtualMachineManagerInventoryItemsArgs args, InvokeOptions options)
fn::invoke:
  function: azure:systemcenter/getVirtualMachineManagerInventoryItems:getVirtualMachineManagerInventoryItems
  arguments:
    # arguments dictionaryThe following arguments are supported:
- InventoryType string
- The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud,VirtualMachine,VirtualMachineTemplateandVirtualNetwork.
- SystemCenter stringVirtual Machine Manager Server Id 
- The ID of the System Center Virtual Machine Manager Server.
- InventoryType string
- The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud,VirtualMachine,VirtualMachineTemplateandVirtualNetwork.
- SystemCenter stringVirtual Machine Manager Server Id 
- The ID of the System Center Virtual Machine Manager Server.
- inventoryType String
- The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud,VirtualMachine,VirtualMachineTemplateandVirtualNetwork.
- systemCenter StringVirtual Machine Manager Server Id 
- The ID of the System Center Virtual Machine Manager Server.
- inventoryType string
- The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud,VirtualMachine,VirtualMachineTemplateandVirtualNetwork.
- systemCenter stringVirtual Machine Manager Server Id 
- The ID of the System Center Virtual Machine Manager Server.
- inventory_type str
- The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud,VirtualMachine,VirtualMachineTemplateandVirtualNetwork.
- system_center_ strvirtual_ machine_ manager_ server_ id 
- The ID of the System Center Virtual Machine Manager Server.
- inventoryType String
- The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud,VirtualMachine,VirtualMachineTemplateandVirtualNetwork.
- systemCenter StringVirtual Machine Manager Server Id 
- 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<GetVirtual Machine Manager Inventory Items Inventory Item> 
- One or more inventory_itemsblocks as defined below.
- InventoryType string
- SystemCenter stringVirtual Machine Manager Server Id 
- Id string
- The provider-assigned unique ID for this managed resource.
- InventoryItems []GetVirtual Machine Manager Inventory Items Inventory Item 
- One or more inventory_itemsblocks as defined below.
- InventoryType string
- SystemCenter stringVirtual Machine Manager Server Id 
- id String
- The provider-assigned unique ID for this managed resource.
- inventoryItems List<GetVirtual Machine Manager Inventory Items Inventory Item> 
- One or more inventory_itemsblocks as defined below.
- inventoryType String
- systemCenter StringVirtual Machine Manager Server Id 
- id string
- The provider-assigned unique ID for this managed resource.
- inventoryItems GetVirtual Machine Manager Inventory Items Inventory Item[] 
- One or more inventory_itemsblocks as defined below.
- inventoryType string
- systemCenter stringVirtual Machine Manager Server Id 
- id str
- The provider-assigned unique ID for this managed resource.
- inventory_items Sequence[GetVirtual Machine Manager Inventory Items Inventory Item] 
- One or more inventory_itemsblocks as defined below.
- inventory_type str
- system_center_ strvirtual_ machine_ manager_ server_ id 
- id String
- The provider-assigned unique ID for this managed resource.
- inventoryItems List<Property Map>
- One or more inventory_itemsblocks as defined below.
- inventoryType String
- systemCenter StringVirtual Machine Manager Server Id 
Supporting Types
GetVirtualMachineManagerInventoryItemsInventoryItem       
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.