New-AzMLWorkspaceComputeInstanceObject

Create an in-memory object for ComputeInstance.

Syntax

New-AzMLWorkspaceComputeInstanceObject
   [-Description <String>]
   [-DisableLocalAuth <Boolean>]
   [-ResourceId <String>]
   [-ApplicationSharingPolicy <ApplicationSharingPolicy>]
   [-AssignedUserObjectId <String>]
   [-AssignedUserTenantId <String>]
   [-AuthorizationType <ComputeInstanceAuthorizationType>]
   [-CreationScriptArgument <String>]
   [-CreationScriptData <String>]
   [-CreationScriptSource <String>]
   [-CreationScriptTimeout <String>]
   [-EnableNodePublicIP <Boolean>]
   [-LastOperationName <OperationName>]
   [-LastOperationStatus <OperationStatus>]
   [-LastOperationTime <DateTime>]
   [-LastOperationTrigger <OperationTrigger>]
   [-ScheduleComputeStartStop <IComputeStartStopSchedule[]>]
   [-SshSettingAdminPublicKey <String>]
   [-SshSettingSshPublicAccess <SshPublicAccess>]
   [-StartupScriptArgument <String>]
   [-StartupScriptData <String>]
   [-StartupScriptSource <String>]
   [-StartupScriptTimeout <String>]
   [-SubnetId <String>]
   [-VMSize <String>]
   [-VersionRuntime <String>]
   [<CommonParameters>]

Description

Create an in-memory object for ComputeInstance.

Examples

Example 1: Create an in-memory object for ComputeInstance

New-AzMLWorkspaceComputeInstanceObject

Create an in-memory object for ComputeInstance

Parameters

-ApplicationSharingPolicy

Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role.

Type:ApplicationSharingPolicy
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AssignedUserObjectId

User's AAD Object Id.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AssignedUserTenantId

User's AAD Tenant Id.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AuthorizationType

The Compute Instance Authorization type. Available values are personal (default).

Type:ComputeInstanceAuthorizationType
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CreationScriptArgument

Optional command line arguments passed to the script to run.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CreationScriptData

The location of scripts in the mounted volume.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CreationScriptSource

The storage source of the script: inline, workspace.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CreationScriptTimeout

Optional time period passed to timeout command.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Description

The description of the Machine Learning compute.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisableLocalAuth

Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication.

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EnableNodePublicIP

Enable or disable node public IP address provisioning. Possible values are: Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs.

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-LastOperationName

Name of the last operation.

Type:OperationName
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-LastOperationStatus

Operation status.

Type:OperationStatus
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-LastOperationTime

Time of the last operation.

Type:DateTime
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-LastOperationTrigger

Trigger of operation.

Type:OperationTrigger
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

ARM resource id of the underlying compute.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ScheduleComputeStartStop

The list of compute start stop schedules to be applied. To construct, see NOTES section for SCHEDULECOMPUTESTARTSTOP properties and create a hash table.

Type:IComputeStartStopSchedule[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SshSettingAdminPublicKey

Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SshSettingSshPublicAccess

State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.

Type:SshPublicAccess
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StartupScriptArgument

Optional command line arguments passed to the script to run.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StartupScriptData

The location of scripts in the mounted volume.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StartupScriptSource

The storage source of the script: inline, workspace.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StartupScriptTimeout

Optional time period passed to timeout command.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubnetId

The ID of the resource.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VersionRuntime

Runtime of compute instance.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VMSize

Virtual Machine Size.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

ComputeInstance