New-vRAOnboardingResource
SYNOPSIS
Create a vRA Onboarding Resource
SYNTAX
Standard (Default)
New-vRAOnboardingResource -Name <String> -VMId <String> -DeploymentLink <String> -PlanLink <String>
-RuleLinks <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]
JSON
New-vRAOnboardingResource -JSON <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Create a vRA Onboarding Resource
EXAMPLES
EXAMPLE 1
$OnboardingResourceArguments = @{
Name = 'TestOnboardingResource' VMId = 'ee7eeed1-b4e4-4143-a437-d3c0622bf9df' DeploymentLink = '/relocation/onboarding/deployment/5bc7eb75-r2d2-4c24-93ac-8c3p0d02f7f1' PlanLink = '/relocation/onboarding/plan/ecaak2s0-r5d4-4a79-b17b-27f13c7d3ff7' RuleLinks = '/relocation/onboarding/rule/include' }
New-vRAOnboardingResource @OnboardingResourceArguments
EXAMPLE 2
$JSON = @"
{ "deploymentLink": "/relocation/onboarding/deployment/5bc7eb75-r2d2-4c24-93ac-8c3p0d02f7f1", "planLink": "/relocation/onboarding/plan/ecaak2s0-r5d4-4a79-b17b-27f13c7d3ff7", "resourceLink": "/resources/compute/ee7eeed1-b4e4-4143-a437-d3c0622bf9df", "resourceName": "TestOnboardingResource", "ruleLinks": [ "/relocation/onboarding/rule/include" ] } "@
$JSON | New-vRAOnboardingResource
PARAMETERS
-Name
The name of the Onboarding Resource
Type: String
Parameter Sets: Standard
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-VMId
The Id of the IaaS VM to associate the Onboarding Resource with
Type: String
Parameter Sets: Standard
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DeploymentLink
Link to the Onboarding Deployment to associate the Onboarding Resource with
Type: String
Parameter Sets: Standard
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PlanLink
Link to the Onboarding Plan to associate the Onboarding Resource with
Type: String
Parameter Sets: Standard
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RuleLinks
Link(s) to the Onboarding Rule(s) to associate the Onboarding Resource with
Type: String[]
Parameter Sets: Standard
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-JSON
A JSON string with the body payload
Type: String
Parameter Sets: JSON
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.