Discovery Virtual Instance Args
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 runningaz provider show --namespace "Microsoft.Workloads" --query "registrationState"
. Once this outputs "Registered" the Resource Provider is available for use.
Example Usage
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"],
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-sapvis",
location="West Europe")
example_discovery_virtual_instance = azure.workloadssap.DiscoveryVirtualInstance("example",
name="X01",
resource_group_name=example.name,
location=example.location,
environment="NonProd",
sap_product="S4HANA",
central_server_virtual_machine_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/csvm1",
managed_storage_account_name="managedsa",
identity={
"type": "UserAssigned",
"identity_ids": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1"],
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-sapvis",
Location = "West Europe",
});
var exampleDiscoveryVirtualInstance = new Azure.WorkloadsSAP.DiscoveryVirtualInstance("example", new()
{
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 = new Azure.WorkloadsSAP.Inputs.DiscoveryVirtualInstanceIdentityArgs
{
Type = "UserAssigned",
IdentityIds = new[]
{
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/workloadssap"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-sapvis"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = workloadssap.NewDiscoveryVirtualInstance(ctx, "example", &workloadssap.DiscoveryVirtualInstanceArgs{
Name: pulumi.String("X01"),
ResourceGroupName: example.Name,
Location: example.Location,
Environment: pulumi.String("NonProd"),
SapProduct: pulumi.String("S4HANA"),
CentralServerVirtualMachineId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/csvm1"),
ManagedStorageAccountName: pulumi.String("managedsa"),
Identity: &workloadssap.DiscoveryVirtualInstanceIdentityArgs{
Type: pulumi.String("UserAssigned"),
IdentityIds: pulumi.StringArray{
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.workloadssap.DiscoveryVirtualInstance;
import com.pulumi.azure.workloadssap.DiscoveryVirtualInstanceArgs;
import com.pulumi.azure.workloadssap.inputs.DiscoveryVirtualInstanceIdentityArgs;
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) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-sapvis")
.location("West Europe")
.build());
var exampleDiscoveryVirtualInstance = new DiscoveryVirtualInstance("exampleDiscoveryVirtualInstance", DiscoveryVirtualInstanceArgs.builder()
.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(DiscoveryVirtualInstanceIdentityArgs.builder()
.type("UserAssigned")
.identityIds("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1")
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-sapvis
location: West Europe
exampleDiscoveryVirtualInstance:
type: azure:workloadssap:DiscoveryVirtualInstance
name: example
properties:
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.
$ pulumi import azure:workloadssap/discoveryVirtualInstance:DiscoveryVirtualInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Workloads/sapVirtualInstances/vis1
Constructors
Properties
The ID of the Virtual Machine of the Central Server. Changing this forces a new resource to be created.
The environment type for the SAP Discovery Virtual Instance. Possible values are NonProd
and Prod
. Changing this forces a new resource to be created.
An identity
block as defined below.
The name of the managed Resource Group for the SAP Discovery Virtual Instance. Changing this forces a new resource to be created.
The network access type for managed resources. Possible values are Private
and Public
. Defaults to Public
.
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.
The name of the Resource Group where the SAP Discovery Virtual Instance should exist. Changing this forces a new resource to be created.
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.