1. Packages
  2. Azure Native
  3. API Docs
  4. testbase
  5. FavoriteProcess
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.testbase.FavoriteProcess

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

    A favorite process identifier. Azure REST API version: 2022-04-01-preview. Prior API version in Azure Native 1.x: 2022-04-01-preview.

    Other available API versions: 2023-11-01-preview.

    Example Usage

    FavoriteProcessCreate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var favoriteProcess = new AzureNative.TestBase.FavoriteProcess("favoriteProcess", new()
        {
            ActualProcessName = "testApp&.exe",
            FavoriteProcessResourceName = "testAppProcess",
            PackageName = "contoso-package2",
            ResourceGroupName = "contoso-rg1",
            TestBaseAccountName = "contoso-testBaseAccount1",
        });
    
    });
    
    package main
    
    import (
    	testbase "github.com/pulumi/pulumi-azure-native-sdk/testbase/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := testbase.NewFavoriteProcess(ctx, "favoriteProcess", &testbase.FavoriteProcessArgs{
    			ActualProcessName:           pulumi.String("testApp&.exe"),
    			FavoriteProcessResourceName: pulumi.String("testAppProcess"),
    			PackageName:                 pulumi.String("contoso-package2"),
    			ResourceGroupName:           pulumi.String("contoso-rg1"),
    			TestBaseAccountName:         pulumi.String("contoso-testBaseAccount1"),
    		})
    		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.testbase.FavoriteProcess;
    import com.pulumi.azurenative.testbase.FavoriteProcessArgs;
    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 favoriteProcess = new FavoriteProcess("favoriteProcess", FavoriteProcessArgs.builder()
                .actualProcessName("testApp&.exe")
                .favoriteProcessResourceName("testAppProcess")
                .packageName("contoso-package2")
                .resourceGroupName("contoso-rg1")
                .testBaseAccountName("contoso-testBaseAccount1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    favorite_process = azure_native.testbase.FavoriteProcess("favoriteProcess",
        actual_process_name="testApp&.exe",
        favorite_process_resource_name="testAppProcess",
        package_name="contoso-package2",
        resource_group_name="contoso-rg1",
        test_base_account_name="contoso-testBaseAccount1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const favoriteProcess = new azure_native.testbase.FavoriteProcess("favoriteProcess", {
        actualProcessName: "testApp&.exe",
        favoriteProcessResourceName: "testAppProcess",
        packageName: "contoso-package2",
        resourceGroupName: "contoso-rg1",
        testBaseAccountName: "contoso-testBaseAccount1",
    });
    
    resources:
      favoriteProcess:
        type: azure-native:testbase:FavoriteProcess
        properties:
          actualProcessName: testApp&.exe
          favoriteProcessResourceName: testAppProcess
          packageName: contoso-package2
          resourceGroupName: contoso-rg1
          testBaseAccountName: contoso-testBaseAccount1
    

    Create FavoriteProcess Resource

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

    Constructor syntax

    new FavoriteProcess(name: string, args: FavoriteProcessArgs, opts?: CustomResourceOptions);
    @overload
    def FavoriteProcess(resource_name: str,
                        args: FavoriteProcessArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def FavoriteProcess(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        actual_process_name: Optional[str] = None,
                        package_name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        test_base_account_name: Optional[str] = None,
                        favorite_process_resource_name: Optional[str] = None)
    func NewFavoriteProcess(ctx *Context, name string, args FavoriteProcessArgs, opts ...ResourceOption) (*FavoriteProcess, error)
    public FavoriteProcess(string name, FavoriteProcessArgs args, CustomResourceOptions? opts = null)
    public FavoriteProcess(String name, FavoriteProcessArgs args)
    public FavoriteProcess(String name, FavoriteProcessArgs args, CustomResourceOptions options)
    
    type: azure-native:testbase:FavoriteProcess
    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 FavoriteProcessArgs
    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 FavoriteProcessArgs
    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 FavoriteProcessArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FavoriteProcessArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FavoriteProcessArgs
    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 favoriteProcessResource = new AzureNative.TestBase.FavoriteProcess("favoriteProcessResource", new()
    {
        ActualProcessName = "string",
        PackageName = "string",
        ResourceGroupName = "string",
        TestBaseAccountName = "string",
        FavoriteProcessResourceName = "string",
    });
    
    example, err := testbase.NewFavoriteProcess(ctx, "favoriteProcessResource", &testbase.FavoriteProcessArgs{
    	ActualProcessName:           pulumi.String("string"),
    	PackageName:                 pulumi.String("string"),
    	ResourceGroupName:           pulumi.String("string"),
    	TestBaseAccountName:         pulumi.String("string"),
    	FavoriteProcessResourceName: pulumi.String("string"),
    })
    
    var favoriteProcessResource = new FavoriteProcess("favoriteProcessResource", FavoriteProcessArgs.builder()
        .actualProcessName("string")
        .packageName("string")
        .resourceGroupName("string")
        .testBaseAccountName("string")
        .favoriteProcessResourceName("string")
        .build());
    
    favorite_process_resource = azure_native.testbase.FavoriteProcess("favoriteProcessResource",
        actual_process_name="string",
        package_name="string",
        resource_group_name="string",
        test_base_account_name="string",
        favorite_process_resource_name="string")
    
    const favoriteProcessResource = new azure_native.testbase.FavoriteProcess("favoriteProcessResource", {
        actualProcessName: "string",
        packageName: "string",
        resourceGroupName: "string",
        testBaseAccountName: "string",
        favoriteProcessResourceName: "string",
    });
    
    type: azure-native:testbase:FavoriteProcess
    properties:
        actualProcessName: string
        favoriteProcessResourceName: string
        packageName: string
        resourceGroupName: string
        testBaseAccountName: string
    

    FavoriteProcess 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 FavoriteProcess resource accepts the following input properties:

    ActualProcessName string
    The actual name of the favorite process. It will be equal to resource name except for the scenario that the process name contains characters that are not allowed in the resource name.
    PackageName string
    The resource name of the Test Base Package.
    ResourceGroupName string
    The name of the resource group that contains the resource.
    TestBaseAccountName string
    The resource name of the Test Base Account.
    FavoriteProcessResourceName string
    The resource name of a favorite process in a package. If the process name contains characters that are not allowed in Azure Resource Name, we use 'actualProcessName' in request body to submit the name.
    ActualProcessName string
    The actual name of the favorite process. It will be equal to resource name except for the scenario that the process name contains characters that are not allowed in the resource name.
    PackageName string
    The resource name of the Test Base Package.
    ResourceGroupName string
    The name of the resource group that contains the resource.
    TestBaseAccountName string
    The resource name of the Test Base Account.
    FavoriteProcessResourceName string
    The resource name of a favorite process in a package. If the process name contains characters that are not allowed in Azure Resource Name, we use 'actualProcessName' in request body to submit the name.
    actualProcessName String
    The actual name of the favorite process. It will be equal to resource name except for the scenario that the process name contains characters that are not allowed in the resource name.
    packageName String
    The resource name of the Test Base Package.
    resourceGroupName String
    The name of the resource group that contains the resource.
    testBaseAccountName String
    The resource name of the Test Base Account.
    favoriteProcessResourceName String
    The resource name of a favorite process in a package. If the process name contains characters that are not allowed in Azure Resource Name, we use 'actualProcessName' in request body to submit the name.
    actualProcessName string
    The actual name of the favorite process. It will be equal to resource name except for the scenario that the process name contains characters that are not allowed in the resource name.
    packageName string
    The resource name of the Test Base Package.
    resourceGroupName string
    The name of the resource group that contains the resource.
    testBaseAccountName string
    The resource name of the Test Base Account.
    favoriteProcessResourceName string
    The resource name of a favorite process in a package. If the process name contains characters that are not allowed in Azure Resource Name, we use 'actualProcessName' in request body to submit the name.
    actual_process_name str
    The actual name of the favorite process. It will be equal to resource name except for the scenario that the process name contains characters that are not allowed in the resource name.
    package_name str
    The resource name of the Test Base Package.
    resource_group_name str
    The name of the resource group that contains the resource.
    test_base_account_name str
    The resource name of the Test Base Account.
    favorite_process_resource_name str
    The resource name of a favorite process in a package. If the process name contains characters that are not allowed in Azure Resource Name, we use 'actualProcessName' in request body to submit the name.
    actualProcessName String
    The actual name of the favorite process. It will be equal to resource name except for the scenario that the process name contains characters that are not allowed in the resource name.
    packageName String
    The resource name of the Test Base Package.
    resourceGroupName String
    The name of the resource group that contains the resource.
    testBaseAccountName String
    The resource name of the Test Base Account.
    favoriteProcessResourceName String
    The resource name of a favorite process in a package. If the process name contains characters that are not allowed in Azure Resource Name, we use 'actualProcessName' in request body to submit the name.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    SystemData Pulumi.AzureNative.TestBase.Outputs.SystemDataResponse
    The system metadata relating to this resource
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    SystemData SystemDataResponse
    The system metadata relating to this resource
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    systemData SystemDataResponse
    The system metadata relating to this resource
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    systemData SystemDataResponse
    The system metadata relating to this resource
    type string
    Resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    system_data SystemDataResponse
    The system metadata relating to this resource
    type str
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    systemData Property Map
    The system metadata relating to this resource
    type String
    Resource type.

    Supporting Types

    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 type of identity that last modified the resource.
    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 type of identity that last modified the resource.
    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 type of identity that last modified the resource.
    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 type of identity that last modified the resource.
    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 type of identity that last modified the resource.
    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 type of identity that last modified the resource.
    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:testbase:FavoriteProcess testAppProcess /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/packages/{packageName}/favoriteProcesses/{favoriteProcessResourceName} 
    

    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