Student
Student details. Uses Azure REST API version 2021-12-01-preview. In version 2.x of the Azure Native provider, it used API version 2021-12-01-preview.
Example Usage
Student
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var student = new AzureNative.Education.Student("student", new()
{
BillingAccountName = "{billingAccountName}",
BillingProfileName = "{billingProfileName}",
Budget = new AzureNative.Education.Inputs.AmountArgs
{
Currency = "USD",
Value = 100,
},
Email = "test@contoso.com",
ExpirationDate = "2021-11-09T22:13:21.795Z",
FirstName = "test",
InvoiceSectionName = "{invoiceSectionName}",
LastName = "user",
Role = AzureNative.Education.StudentRole.Student,
StudentAlias = "{studentAlias}",
});
});
Content copied to clipboard
package main
import (
education "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.NewStudent(ctx, "student", &education.StudentArgs{
BillingAccountName: pulumi.String("{billingAccountName}"),
BillingProfileName: pulumi.String("{billingProfileName}"),
Budget: &education.AmountArgs{
Currency: pulumi.String("USD"),
Value: pulumi.Float64(100),
},
Email: pulumi.String("test@contoso.com"),
ExpirationDate: pulumi.String("2021-11-09T22:13:21.795Z"),
FirstName: pulumi.String("test"),
InvoiceSectionName: pulumi.String("{invoiceSectionName}"),
LastName: pulumi.String("user"),
Role: pulumi.String(education.StudentRoleStudent),
StudentAlias: pulumi.String("{studentAlias}"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.education.Student;
import com.pulumi.azurenative.education.StudentArgs;
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 student = new Student("student", StudentArgs.builder()
.billingAccountName("{billingAccountName}")
.billingProfileName("{billingProfileName}")
.budget(AmountArgs.builder()
.currency("USD")
.value(100)
.build())
.email("test@contoso.com")
.expirationDate("2021-11-09T22:13:21.795Z")
.firstName("test")
.invoiceSectionName("{invoiceSectionName}")
.lastName("user")
.role("Student")
.studentAlias("{studentAlias}")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:education:Student {studentAlias} /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
Student Budget
Link copied to clipboard
Date student was added to the lab
Link copied to clipboard
Date this student is set to expire from the lab.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Subscription alias
Link copied to clipboard
Subscription Id
Link copied to clipboard
subscription invite last sent date
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.