import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an SAP Discovery Virtual Instance. * * > **Note:** Before using this resource, it's required to submit the request of registering the Resource Provider with Azure CLI `az provider register --namespace "Microsoft.Workloads"`. The Resource Provider can take a while to register, you can check the status by running `az provider show --namespace "Microsoft.Workloads" --query "registrationState"`. Once this outputs "Registered" the Resource Provider is available for use. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-sapvis", * location: "West Europe", * }); * const exampleDiscoveryVirtualInstance = new azure.workloadssap.DiscoveryVirtualInstance("example", { * name: "X01", * resourceGroupName: example.name, * location: example.location, * environment: "NonProd", * sapProduct: "S4HANA", * centralServerVirtualMachineId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/csvm1", * managedStorageAccountName: "managedsa", * identity: { * type: "UserAssigned", * identityIds: ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1"], * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Workloads` - 2024-09-01 * * ## Import * * SAP Discovery Virtual Instances can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:workloadssap/discoveryVirtualInstance:DiscoveryVirtualInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Workloads/sapVirtualInstances/vis1 * ``` */ export declare class DiscoveryVirtualInstance extends pulumi.CustomResource { /** * Get an existing DiscoveryVirtualInstance resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: DiscoveryVirtualInstanceState, opts?: pulumi.CustomResourceOptions): DiscoveryVirtualInstance; /** * Returns true if the given object is an instance of DiscoveryVirtualInstance. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DiscoveryVirtualInstance; /** * The ID of the Virtual Machine of the Central Server. Changing this forces a new resource to be created. */ readonly centralServerVirtualMachineId: pulumi.Output; /** * The environment type for the SAP Discovery Virtual Instance. Possible values are `NonProd` and `Prod`. Changing this forces a new resource to be created. */ readonly environment: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * The Azure Region where the SAP Discovery Virtual Instance should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The name of the managed Resource Group for the SAP Discovery Virtual Instance. Changing this forces a new resource to be created. */ readonly managedResourceGroupName: pulumi.Output; /** * The network access type for managed resources. Possible values are `Private` and `Public`. Defaults to `Public`. */ readonly managedResourcesNetworkAccessType: pulumi.Output; /** * The name of the custom Storage Account created by the service in the managed Resource Group. Changing this forces a new resource to be created. */ readonly managedStorageAccountName: pulumi.Output; /** * Specifies the name of the SAP Discovery Virtual Instance. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group where the SAP Discovery Virtual Instance should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The SAP Product type for the SAP Discovery Virtual Instance. Possible values are `ECC`, `Other` and `S4HANA`. Changing this forces a new resource to be created. */ readonly sapProduct: pulumi.Output; /** * A mapping of tags which should be assigned to the SAP Discovery Virtual Instance. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a DiscoveryVirtualInstance resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DiscoveryVirtualInstanceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DiscoveryVirtualInstance resources. */ export interface DiscoveryVirtualInstanceState { /** * The ID of the Virtual Machine of the Central Server. Changing this forces a new resource to be created. */ centralServerVirtualMachineId?: pulumi.Input; /** * The environment type for the SAP Discovery Virtual Instance. Possible values are `NonProd` and `Prod`. Changing this forces a new resource to be created. */ environment?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * The Azure Region where the SAP Discovery Virtual Instance should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name of the managed Resource Group for the SAP Discovery Virtual Instance. Changing this forces a new resource to be created. */ managedResourceGroupName?: pulumi.Input; /** * The network access type for managed resources. Possible values are `Private` and `Public`. Defaults to `Public`. */ managedResourcesNetworkAccessType?: pulumi.Input; /** * The name of the custom Storage Account created by the service in the managed Resource Group. Changing this forces a new resource to be created. */ managedStorageAccountName?: pulumi.Input; /** * Specifies the name of the SAP Discovery Virtual Instance. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the SAP Discovery Virtual Instance should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The SAP Product type for the SAP Discovery Virtual Instance. Possible values are `ECC`, `Other` and `S4HANA`. Changing this forces a new resource to be created. */ sapProduct?: pulumi.Input; /** * A mapping of tags which should be assigned to the SAP Discovery Virtual Instance. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a DiscoveryVirtualInstance resource. */ export interface DiscoveryVirtualInstanceArgs { /** * The ID of the Virtual Machine of the Central Server. Changing this forces a new resource to be created. */ centralServerVirtualMachineId: pulumi.Input; /** * The environment type for the SAP Discovery Virtual Instance. Possible values are `NonProd` and `Prod`. Changing this forces a new resource to be created. */ environment: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * The Azure Region where the SAP Discovery Virtual Instance should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name of the managed Resource Group for the SAP Discovery Virtual Instance. Changing this forces a new resource to be created. */ managedResourceGroupName?: pulumi.Input; /** * The network access type for managed resources. Possible values are `Private` and `Public`. Defaults to `Public`. */ managedResourcesNetworkAccessType?: pulumi.Input; /** * The name of the custom Storage Account created by the service in the managed Resource Group. Changing this forces a new resource to be created. */ managedStorageAccountName?: pulumi.Input; /** * Specifies the name of the SAP Discovery Virtual Instance. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the SAP Discovery Virtual Instance should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The SAP Product type for the SAP Discovery Virtual Instance. Possible values are `ECC`, `Other` and `S4HANA`. Changing this forces a new resource to be created. */ sapProduct: pulumi.Input; /** * A mapping of tags which should be assigned to the SAP Discovery Virtual Instance. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }