1. Packages
  2. Azure Native
  3. API Docs
  4. workloads
  5. SapDiscoverySite
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.workloads.SapDiscoverySite

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Define the SAP Migration discovery site resource. Azure REST API version: 2023-10-01-preview.

    Example Usage

    Create resource for Import based input.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var sapDiscoverySite = new AzureNative.Workloads.SapDiscoverySite("sapDiscoverySite", new()
        {
            Location = "eastus",
            MasterSiteId = "MasterSiteIdResourceId",
            MigrateProjectId = "MigrateProjectId",
            ResourceGroupName = "test-rg",
            SapDiscoverySiteName = "SampleSite",
            Tags = 
            {
                { "property1", "value1" },
                { "property2", "value2" },
            },
        });
    
    });
    
    package main
    
    import (
    	workloads "github.com/pulumi/pulumi-azure-native-sdk/workloads/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := workloads.NewSapDiscoverySite(ctx, "sapDiscoverySite", &workloads.SapDiscoverySiteArgs{
    			Location:             pulumi.String("eastus"),
    			MasterSiteId:         pulumi.String("MasterSiteIdResourceId"),
    			MigrateProjectId:     pulumi.String("MigrateProjectId"),
    			ResourceGroupName:    pulumi.String("test-rg"),
    			SapDiscoverySiteName: pulumi.String("SampleSite"),
    			Tags: pulumi.StringMap{
    				"property1": pulumi.String("value1"),
    				"property2": pulumi.String("value2"),
    			},
    		})
    		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.azurenative.workloads.SapDiscoverySite;
    import com.pulumi.azurenative.workloads.SapDiscoverySiteArgs;
    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 sapDiscoverySite = new SapDiscoverySite("sapDiscoverySite", SapDiscoverySiteArgs.builder()
                .location("eastus")
                .masterSiteId("MasterSiteIdResourceId")
                .migrateProjectId("MigrateProjectId")
                .resourceGroupName("test-rg")
                .sapDiscoverySiteName("SampleSite")
                .tags(Map.ofEntries(
                    Map.entry("property1", "value1"),
                    Map.entry("property2", "value2")
                ))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    sap_discovery_site = azure_native.workloads.SapDiscoverySite("sapDiscoverySite",
        location="eastus",
        master_site_id="MasterSiteIdResourceId",
        migrate_project_id="MigrateProjectId",
        resource_group_name="test-rg",
        sap_discovery_site_name="SampleSite",
        tags={
            "property1": "value1",
            "property2": "value2",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const sapDiscoverySite = new azure_native.workloads.SapDiscoverySite("sapDiscoverySite", {
        location: "eastus",
        masterSiteId: "MasterSiteIdResourceId",
        migrateProjectId: "MigrateProjectId",
        resourceGroupName: "test-rg",
        sapDiscoverySiteName: "SampleSite",
        tags: {
            property1: "value1",
            property2: "value2",
        },
    });
    
    resources:
      sapDiscoverySite:
        type: azure-native:workloads:SapDiscoverySite
        properties:
          location: eastus
          masterSiteId: MasterSiteIdResourceId
          migrateProjectId: MigrateProjectId
          resourceGroupName: test-rg
          sapDiscoverySiteName: SampleSite
          tags:
            property1: value1
            property2: value2
    

    Create SapDiscoverySite Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SapDiscoverySite(name: string, args: SapDiscoverySiteArgs, opts?: CustomResourceOptions);
    @overload
    def SapDiscoverySite(resource_name: str,
                         args: SapDiscoverySiteArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def SapDiscoverySite(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         resource_group_name: Optional[str] = None,
                         extended_location: Optional[ExtendedLocationArgs] = None,
                         location: Optional[str] = None,
                         master_site_id: Optional[str] = None,
                         migrate_project_id: Optional[str] = None,
                         sap_discovery_site_name: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None)
    func NewSapDiscoverySite(ctx *Context, name string, args SapDiscoverySiteArgs, opts ...ResourceOption) (*SapDiscoverySite, error)
    public SapDiscoverySite(string name, SapDiscoverySiteArgs args, CustomResourceOptions? opts = null)
    public SapDiscoverySite(String name, SapDiscoverySiteArgs args)
    public SapDiscoverySite(String name, SapDiscoverySiteArgs args, CustomResourceOptions options)
    
    type: azure-native:workloads:SapDiscoverySite
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SapDiscoverySiteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SapDiscoverySiteArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SapDiscoverySiteArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SapDiscoverySiteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SapDiscoverySiteArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var sapDiscoverySiteResource = new AzureNative.Workloads.SapDiscoverySite("sapDiscoverySiteResource", new()
    {
        ResourceGroupName = "string",
        ExtendedLocation = new AzureNative.Workloads.Inputs.ExtendedLocationArgs
        {
            Name = "string",
            Type = "string",
        },
        Location = "string",
        MasterSiteId = "string",
        MigrateProjectId = "string",
        SapDiscoverySiteName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := workloads.NewSapDiscoverySite(ctx, "sapDiscoverySiteResource", &workloads.SapDiscoverySiteArgs{
    	ResourceGroupName: pulumi.String("string"),
    	ExtendedLocation: &workloads.ExtendedLocationArgs{
    		Name: pulumi.String("string"),
    		Type: pulumi.String("string"),
    	},
    	Location:             pulumi.String("string"),
    	MasterSiteId:         pulumi.String("string"),
    	MigrateProjectId:     pulumi.String("string"),
    	SapDiscoverySiteName: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var sapDiscoverySiteResource = new SapDiscoverySite("sapDiscoverySiteResource", SapDiscoverySiteArgs.builder()
        .resourceGroupName("string")
        .extendedLocation(ExtendedLocationArgs.builder()
            .name("string")
            .type("string")
            .build())
        .location("string")
        .masterSiteId("string")
        .migrateProjectId("string")
        .sapDiscoverySiteName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    sap_discovery_site_resource = azure_native.workloads.SapDiscoverySite("sapDiscoverySiteResource",
        resource_group_name="string",
        extended_location={
            "name": "string",
            "type": "string",
        },
        location="string",
        master_site_id="string",
        migrate_project_id="string",
        sap_discovery_site_name="string",
        tags={
            "string": "string",
        })
    
    const sapDiscoverySiteResource = new azure_native.workloads.SapDiscoverySite("sapDiscoverySiteResource", {
        resourceGroupName: "string",
        extendedLocation: {
            name: "string",
            type: "string",
        },
        location: "string",
        masterSiteId: "string",
        migrateProjectId: "string",
        sapDiscoverySiteName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:workloads:SapDiscoverySite
    properties:
        extendedLocation:
            name: string
            type: string
        location: string
        masterSiteId: string
        migrateProjectId: string
        resourceGroupName: string
        sapDiscoverySiteName: string
        tags:
            string: string
    

    SapDiscoverySite Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SapDiscoverySite resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ExtendedLocation Pulumi.AzureNative.Workloads.Inputs.ExtendedLocation
    The extended location definition.
    Location string
    The geo-location where the resource lives
    MasterSiteId string
    The master site ID from Azure Migrate.
    MigrateProjectId string
    The migrate project ID from Azure Migrate.
    SapDiscoverySiteName string
    The name of the discovery site resource for SAP Migration.
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ExtendedLocation ExtendedLocationArgs
    The extended location definition.
    Location string
    The geo-location where the resource lives
    MasterSiteId string
    The master site ID from Azure Migrate.
    MigrateProjectId string
    The migrate project ID from Azure Migrate.
    SapDiscoverySiteName string
    The name of the discovery site resource for SAP Migration.
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    extendedLocation ExtendedLocation
    The extended location definition.
    location String
    The geo-location where the resource lives
    masterSiteId String
    The master site ID from Azure Migrate.
    migrateProjectId String
    The migrate project ID from Azure Migrate.
    sapDiscoverySiteName String
    The name of the discovery site resource for SAP Migration.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    extendedLocation ExtendedLocation
    The extended location definition.
    location string
    The geo-location where the resource lives
    masterSiteId string
    The master site ID from Azure Migrate.
    migrateProjectId string
    The migrate project ID from Azure Migrate.
    sapDiscoverySiteName string
    The name of the discovery site resource for SAP Migration.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    extended_location ExtendedLocationArgs
    The extended location definition.
    location str
    The geo-location where the resource lives
    master_site_id str
    The master site ID from Azure Migrate.
    migrate_project_id str
    The migrate project ID from Azure Migrate.
    sap_discovery_site_name str
    The name of the discovery site resource for SAP Migration.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    extendedLocation Property Map
    The extended location definition.
    location String
    The geo-location where the resource lives
    masterSiteId String
    The master site ID from Azure Migrate.
    migrateProjectId String
    The migrate project ID from Azure Migrate.
    sapDiscoverySiteName String
    The name of the discovery site resource for SAP Migration.
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SapDiscoverySite resource produces the following output properties:

    Errors Pulumi.AzureNative.Workloads.Outputs.SAPMigrateErrorResponse
    Indicates any errors on the SAP Migration discovery site resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Defines the provisioning states.
    SystemData Pulumi.AzureNative.Workloads.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Errors SAPMigrateErrorResponse
    Indicates any errors on the SAP Migration discovery site resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Defines the provisioning states.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    errors SAPMigrateErrorResponse
    Indicates any errors on the SAP Migration discovery site resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Defines the provisioning states.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    errors SAPMigrateErrorResponse
    Indicates any errors on the SAP Migration discovery site resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    Defines the provisioning states.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    errors SAPMigrateErrorResponse
    Indicates any errors on the SAP Migration discovery site resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    Defines the provisioning states.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    errors Property Map
    Indicates any errors on the SAP Migration discovery site resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Defines the provisioning states.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    ErrorDefinitionResponse, ErrorDefinitionResponseArgs

    Code string
    Service specific error code which serves as the substatus for the HTTP error code.
    Details List<Pulumi.AzureNative.Workloads.Inputs.ErrorDefinitionResponse>
    Internal error details.
    Message string
    Description of the error.
    Recommendation string
    Description of the recommendation.
    Code string
    Service specific error code which serves as the substatus for the HTTP error code.
    Details []ErrorDefinitionResponse
    Internal error details.
    Message string
    Description of the error.
    Recommendation string
    Description of the recommendation.
    code String
    Service specific error code which serves as the substatus for the HTTP error code.
    details List<ErrorDefinitionResponse>
    Internal error details.
    message String
    Description of the error.
    recommendation String
    Description of the recommendation.
    code string
    Service specific error code which serves as the substatus for the HTTP error code.
    details ErrorDefinitionResponse[]
    Internal error details.
    message string
    Description of the error.
    recommendation string
    Description of the recommendation.
    code str
    Service specific error code which serves as the substatus for the HTTP error code.
    details Sequence[ErrorDefinitionResponse]
    Internal error details.
    message str
    Description of the error.
    recommendation str
    Description of the recommendation.
    code String
    Service specific error code which serves as the substatus for the HTTP error code.
    details List<Property Map>
    Internal error details.
    message String
    Description of the error.
    recommendation String
    Description of the recommendation.

    ExtendedLocation, ExtendedLocationArgs

    Name string
    The extended location name.
    Type string
    The extended location type.
    Name string
    The extended location name.
    Type string
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.
    name string
    The extended location name.
    type string
    The extended location type.
    name str
    The extended location name.
    type str
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.

    ExtendedLocationResponse, ExtendedLocationResponseArgs

    Name string
    The extended location name.
    Type string
    The extended location type.
    Name string
    The extended location name.
    Type string
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.
    name string
    The extended location name.
    type string
    The extended location type.
    name str
    The extended location name.
    type str
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.

    SAPMigrateErrorResponse, SAPMigrateErrorResponseArgs

    Code string
    Service specific error code which serves as the substatus for the HTTP error code.
    Details List<Pulumi.AzureNative.Workloads.Inputs.ErrorDefinitionResponse>
    Internal error details.
    Message string
    Description of the error.
    Recommendation string
    Description of the recommendation.
    Code string
    Service specific error code which serves as the substatus for the HTTP error code.
    Details []ErrorDefinitionResponse
    Internal error details.
    Message string
    Description of the error.
    Recommendation string
    Description of the recommendation.
    code String
    Service specific error code which serves as the substatus for the HTTP error code.
    details List<ErrorDefinitionResponse>
    Internal error details.
    message String
    Description of the error.
    recommendation String
    Description of the recommendation.
    code string
    Service specific error code which serves as the substatus for the HTTP error code.
    details ErrorDefinitionResponse[]
    Internal error details.
    message string
    Description of the error.
    recommendation string
    Description of the recommendation.
    code str
    Service specific error code which serves as the substatus for the HTTP error code.
    details Sequence[ErrorDefinitionResponse]
    Internal error details.
    message str
    Description of the error.
    recommendation str
    Description of the recommendation.
    code String
    Service specific error code which serves as the substatus for the HTTP error code.
    details List<Property Map>
    Internal error details.
    message String
    Description of the error.
    recommendation String
    Description of the recommendation.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:workloads:SapDiscoverySite SampleSite /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapDiscoverySites/{sapDiscoverySiteName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi