1. Packages
  2. Azure Native
  3. API Docs
  4. education
  5. Lab
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.38.0 published on Monday, Apr 22, 2024 by Pulumi

azure-native.education.Lab

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.38.0 published on Monday, Apr 22, 2024 by Pulumi

    Lab details. Azure REST API version: 2021-12-01-preview. Prior API version in Azure Native 1.x: 2021-12-01-preview.

    Example Usage

    CreateLab

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var lab = new AzureNative.Education.Lab("lab", new()
        {
            BillingAccountName = "{billingAccountName}",
            BillingProfileName = "{billingProfileName}",
            BudgetPerStudent = new AzureNative.Education.Inputs.AmountArgs
            {
                Currency = "USD",
                Value = 100,
            },
            Description = "example lab description",
            DisplayName = "example lab",
            ExpirationDate = "2021-12-09T22:11:29.422Z",
            InvoiceSectionName = "{invoiceSectionName}",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/education/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := education.NewLab(ctx, "lab", &education.LabArgs{
    			BillingAccountName: pulumi.String("{billingAccountName}"),
    			BillingProfileName: pulumi.String("{billingProfileName}"),
    			BudgetPerStudent: &education.AmountArgs{
    				Currency: pulumi.String("USD"),
    				Value:    pulumi.Float64(100),
    			},
    			Description:        pulumi.String("example lab description"),
    			DisplayName:        pulumi.String("example lab"),
    			ExpirationDate:     pulumi.String("2021-12-09T22:11:29.422Z"),
    			InvoiceSectionName: pulumi.String("{invoiceSectionName}"),
    		})
    		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.education.Lab;
    import com.pulumi.azurenative.education.LabArgs;
    import com.pulumi.azurenative.education.inputs.AmountArgs;
    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 lab = new Lab("lab", LabArgs.builder()        
                .billingAccountName("{billingAccountName}")
                .billingProfileName("{billingProfileName}")
                .budgetPerStudent(AmountArgs.builder()
                    .currency("USD")
                    .value(100)
                    .build())
                .description("example lab description")
                .displayName("example lab")
                .expirationDate("2021-12-09T22:11:29.422Z")
                .invoiceSectionName("{invoiceSectionName}")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    lab = azure_native.education.Lab("lab",
        billing_account_name="{billingAccountName}",
        billing_profile_name="{billingProfileName}",
        budget_per_student=azure_native.education.AmountArgs(
            currency="USD",
            value=100,
        ),
        description="example lab description",
        display_name="example lab",
        expiration_date="2021-12-09T22:11:29.422Z",
        invoice_section_name="{invoiceSectionName}")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const lab = new azure_native.education.Lab("lab", {
        billingAccountName: "{billingAccountName}",
        billingProfileName: "{billingProfileName}",
        budgetPerStudent: {
            currency: "USD",
            value: 100,
        },
        description: "example lab description",
        displayName: "example lab",
        expirationDate: "2021-12-09T22:11:29.422Z",
        invoiceSectionName: "{invoiceSectionName}",
    });
    
    resources:
      lab:
        type: azure-native:education:Lab
        properties:
          billingAccountName: '{billingAccountName}'
          billingProfileName: '{billingProfileName}'
          budgetPerStudent:
            currency: USD
            value: 100
          description: example lab description
          displayName: example lab
          expirationDate: 2021-12-09T22:11:29.422Z
          invoiceSectionName: '{invoiceSectionName}'
    

    Create Lab Resource

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

    Constructor syntax

    new Lab(name: string, args: LabArgs, opts?: CustomResourceOptions);
    @overload
    def Lab(resource_name: str,
            args: LabArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Lab(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            billing_account_name: Optional[str] = None,
            billing_profile_name: Optional[str] = None,
            budget_per_student: Optional[AmountArgs] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            expiration_date: Optional[str] = None,
            invoice_section_name: Optional[str] = None,
            currency: Optional[str] = None,
            value: Optional[float] = None)
    func NewLab(ctx *Context, name string, args LabArgs, opts ...ResourceOption) (*Lab, error)
    public Lab(string name, LabArgs args, CustomResourceOptions? opts = null)
    public Lab(String name, LabArgs args)
    public Lab(String name, LabArgs args, CustomResourceOptions options)
    
    type: azure-native:education:Lab
    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 LabArgs
    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 LabArgs
    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 LabArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LabArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LabArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var azure_nativeLabResource = new AzureNative.Education.Lab("azure-nativeLabResource", new()
    {
        BillingAccountName = "string",
        BillingProfileName = "string",
        BudgetPerStudent = new AzureNative.Education.Inputs.AmountArgs
        {
            Currency = "string",
            Value = 0,
        },
        Description = "string",
        DisplayName = "string",
        ExpirationDate = "string",
        InvoiceSectionName = "string",
        Currency = "string",
        Value = 0,
    });
    
    example, err := education.NewLab(ctx, "azure-nativeLabResource", &education.LabArgs{
    BillingAccountName: pulumi.String("string"),
    BillingProfileName: pulumi.String("string"),
    BudgetPerStudent: &education.AmountArgs{
    Currency: pulumi.String("string"),
    Value: pulumi.Float64(0),
    },
    Description: pulumi.String("string"),
    DisplayName: pulumi.String("string"),
    ExpirationDate: pulumi.String("string"),
    InvoiceSectionName: pulumi.String("string"),
    Currency: pulumi.String("string"),
    Value: pulumi.Float64(0),
    })
    
    var azure_nativeLabResource = new Lab("azure-nativeLabResource", LabArgs.builder()        
        .billingAccountName("string")
        .billingProfileName("string")
        .budgetPerStudent(AmountArgs.builder()
            .currency("string")
            .value(0)
            .build())
        .description("string")
        .displayName("string")
        .expirationDate("string")
        .invoiceSectionName("string")
        .currency("string")
        .value(0)
        .build());
    
    azure_native_lab_resource = azure_native.education.Lab("azure-nativeLabResource",
        billing_account_name="string",
        billing_profile_name="string",
        budget_per_student=azure_native.education.AmountArgs(
            currency="string",
            value=0,
        ),
        description="string",
        display_name="string",
        expiration_date="string",
        invoice_section_name="string",
        currency="string",
        value=0)
    
    const azure_nativeLabResource = new azure_native.education.Lab("azure-nativeLabResource", {
        billingAccountName: "string",
        billingProfileName: "string",
        budgetPerStudent: {
            currency: "string",
            value: 0,
        },
        description: "string",
        displayName: "string",
        expirationDate: "string",
        invoiceSectionName: "string",
        currency: "string",
        value: 0,
    });
    
    type: azure-native:education:Lab
    properties:
        billingAccountName: string
        billingProfileName: string
        budgetPerStudent:
            currency: string
            value: 0
        currency: string
        description: string
        displayName: string
        expirationDate: string
        invoiceSectionName: string
        value: 0
    

    Lab Resource Properties

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

    Inputs

    The Lab resource accepts the following input properties:

    BillingAccountName string
    The ID that uniquely identifies a billing account.
    BillingProfileName string
    The ID that uniquely identifies a billing profile.
    BudgetPerStudent Pulumi.AzureNative.Education.Inputs.Amount
    Default monetary cap for each student in this lab
    Description string
    Detail description of this lab
    DisplayName string
    Lab Display Name
    ExpirationDate string
    Default expiration date for each student in this lab
    InvoiceSectionName string
    The ID that uniquely identifies an invoice section.
    Currency string
    The type of currency being used for the value.
    Value double
    Amount value.
    BillingAccountName string
    The ID that uniquely identifies a billing account.
    BillingProfileName string
    The ID that uniquely identifies a billing profile.
    BudgetPerStudent AmountArgs
    Default monetary cap for each student in this lab
    Description string
    Detail description of this lab
    DisplayName string
    Lab Display Name
    ExpirationDate string
    Default expiration date for each student in this lab
    InvoiceSectionName string
    The ID that uniquely identifies an invoice section.
    Currency string
    The type of currency being used for the value.
    Value float64
    Amount value.
    billingAccountName String
    The ID that uniquely identifies a billing account.
    billingProfileName String
    The ID that uniquely identifies a billing profile.
    budgetPerStudent Amount
    Default monetary cap for each student in this lab
    description String
    Detail description of this lab
    displayName String
    Lab Display Name
    expirationDate String
    Default expiration date for each student in this lab
    invoiceSectionName String
    The ID that uniquely identifies an invoice section.
    currency String
    The type of currency being used for the value.
    value Double
    Amount value.
    billingAccountName string
    The ID that uniquely identifies a billing account.
    billingProfileName string
    The ID that uniquely identifies a billing profile.
    budgetPerStudent Amount
    Default monetary cap for each student in this lab
    description string
    Detail description of this lab
    displayName string
    Lab Display Name
    expirationDate string
    Default expiration date for each student in this lab
    invoiceSectionName string
    The ID that uniquely identifies an invoice section.
    currency string
    The type of currency being used for the value.
    value number
    Amount value.
    billing_account_name str
    The ID that uniquely identifies a billing account.
    billing_profile_name str
    The ID that uniquely identifies a billing profile.
    budget_per_student AmountArgs
    Default monetary cap for each student in this lab
    description str
    Detail description of this lab
    display_name str
    Lab Display Name
    expiration_date str
    Default expiration date for each student in this lab
    invoice_section_name str
    The ID that uniquely identifies an invoice section.
    currency str
    The type of currency being used for the value.
    value float
    Amount value.
    billingAccountName String
    The ID that uniquely identifies a billing account.
    billingProfileName String
    The ID that uniquely identifies a billing profile.
    budgetPerStudent Property Map
    Default monetary cap for each student in this lab
    description String
    Detail description of this lab
    displayName String
    Lab Display Name
    expirationDate String
    Default expiration date for each student in this lab
    invoiceSectionName String
    The ID that uniquely identifies an invoice section.
    currency String
    The type of currency being used for the value.
    value Number
    Amount value.

    Outputs

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

    EffectiveDate string
    Lab creation date
    Id string
    The provider-assigned unique ID for this managed resource.
    InvitationCode string
    invitation code for redeemable lab
    MaxStudentCount double
    the total number of students that can be accepted to the lab.
    Name string
    The name of the resource
    Status string
    The status of this lab
    SystemData Pulumi.AzureNative.Education.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"
    EffectiveDate string
    Lab creation date
    Id string
    The provider-assigned unique ID for this managed resource.
    InvitationCode string
    invitation code for redeemable lab
    MaxStudentCount float64
    the total number of students that can be accepted to the lab.
    Name string
    The name of the resource
    Status string
    The status of this lab
    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"
    effectiveDate String
    Lab creation date
    id String
    The provider-assigned unique ID for this managed resource.
    invitationCode String
    invitation code for redeemable lab
    maxStudentCount Double
    the total number of students that can be accepted to the lab.
    name String
    The name of the resource
    status String
    The status of this lab
    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"
    effectiveDate string
    Lab creation date
    id string
    The provider-assigned unique ID for this managed resource.
    invitationCode string
    invitation code for redeemable lab
    maxStudentCount number
    the total number of students that can be accepted to the lab.
    name string
    The name of the resource
    status string
    The status of this lab
    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"
    effective_date str
    Lab creation date
    id str
    The provider-assigned unique ID for this managed resource.
    invitation_code str
    invitation code for redeemable lab
    max_student_count float
    the total number of students that can be accepted to the lab.
    name str
    The name of the resource
    status str
    The status of this lab
    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"
    effectiveDate String
    Lab creation date
    id String
    The provider-assigned unique ID for this managed resource.
    invitationCode String
    invitation code for redeemable lab
    maxStudentCount Number
    the total number of students that can be accepted to the lab.
    name String
    The name of the resource
    status String
    The status of this lab
    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

    Amount, AmountArgs

    Currency string
    The type of currency being used for the value.
    Value double
    Amount value.
    Currency string
    The type of currency being used for the value.
    Value float64
    Amount value.
    currency String
    The type of currency being used for the value.
    value Double
    Amount value.
    currency string
    The type of currency being used for the value.
    value number
    Amount value.
    currency str
    The type of currency being used for the value.
    value float
    Amount value.
    currency String
    The type of currency being used for the value.
    value Number
    Amount value.

    AmountResponse, AmountResponseArgs

    Currency string
    The type of currency being used for the value.
    Value double
    Amount value.
    Currency string
    The type of currency being used for the value.
    Value float64
    Amount value.
    currency String
    The type of currency being used for the value.
    value Double
    Amount value.
    currency string
    The type of currency being used for the value.
    value number
    Amount value.
    currency str
    The type of currency being used for the value.
    value float
    Amount value.
    currency String
    The type of currency being used for the value.
    value Number
    Amount value.

    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:education:Lab default /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default 
    

    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.38.0 published on Monday, Apr 22, 2024 by Pulumi