< Back

New-vRAService

Sat Jan 18, 2020 10:03 pm

NAME New-vRAService



SYNOPSIS

Create a vRA Service for the current tenant





SYNTAX

New-vRAService -Name <String> [-Description <String>] [-Owner <String>] [-SupportTeam <String>] [-IconId <String>]

[-WhatIf] [-Confirm] [<CommonParameters>]



New-vRAService -JSON <String> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Create a vRA Service for the current tenant



Currently unsupported interactive actions:



* HoursStartTime

* HoursEndTime

* ChangeWindowDayOfWeek

* ChangeWindowStartTime

* ChangeWindowEndTime





PARAMETERS

-Name <String>

The name of the service



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Description <String>

A description of the service



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Owner <String>

The owner of the service



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SupportTeam <String>

The support team of the service



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-IconId <String>

The Icon Id of the service. This must already exist in the Service Catalog. Typically it would have already

been created via Import-vRAServiceIcon



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-JSON <String>

A json string of type service (catalog-service/api/docs/el_ns0_service.html)



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

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

System.String





OUTPUTS

System.Management.Automation.PSObject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>New-vRAService -Name "New Service"













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>New-vRAService -Name "New Service" -Description "A new service" -Owner user@vsphere.local -SupportTeam

customgroup@vsphere.local -IconId "cafe_icon_Service01"













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>$JSON = @"



{

"name": "New Service",

"description": "A new Service",

"status": "ACTIVE",

"statusName": "Active",

"version": 1,

"organization": {

"tenantRef": "Tenant01",

"tenantLabel": "Tenant01",

"subtenantRef": null,

"subtenantLabel": null

},

"newDuration": null,

"iconId": "cafe_default_icon_genericService"

}

"@



$JSON | New-vRAService











RELATED LINKS