< Back
New-LinaAgent
Post
NAME New-LinaAgent
SYNOPSIS
Creates a new agent.
SYNTAX
New-LinaAgent [-Name] <String> [[-Tenant] <String>] [<CommonParameters>]
DESCRIPTION
Creates a new agent with the provided name.
PARAMETERS
-Name <String>
Name of the agent to create
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Tenant <String>
Optional : Name of the tenant where the agent should be created.
If not provided, agent will be created in the current tenant.
In global view (no tenant selected), agent will be created in the default tenant.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
LinaAgent Object
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-LinaAgent -Name "TEST-CREATE"
Creates a new agent in current tenant.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>New-LinaAgent -Name "TEST-CREATE2" -Tenant "MyTenant"
Creates a new agent in tenant MyTenant
RELATED LINKS
SYNOPSIS
Creates a new agent.
SYNTAX
New-LinaAgent [-Name] <String> [[-Tenant] <String>] [<CommonParameters>]
DESCRIPTION
Creates a new agent with the provided name.
PARAMETERS
-Name <String>
Name of the agent to create
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Tenant <String>
Optional : Name of the tenant where the agent should be created.
If not provided, agent will be created in the current tenant.
In global view (no tenant selected), agent will be created in the default tenant.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
LinaAgent Object
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-LinaAgent -Name "TEST-CREATE"
Creates a new agent in current tenant.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>New-LinaAgent -Name "TEST-CREATE2" -Tenant "MyTenant"
Creates a new agent in tenant MyTenant
RELATED LINKS