Remove-CrmFlightAudience

Removes the environment as an audience to a particular flight.

Syntax

Default (Default)

Remove-CrmFlightAudience
    -FlightId <Guid>
    -InstanceId <Guid>
    [-ApiUrl] <Uri>
    [[-Credential] <PSCredential>]
    [-MaxCrmConnectionTimeOutMinutes <Int32>]
    [<CommonParameters>]

Description

The Remove-CrmFlightAudience cmdlet removes the environment as an audience to a particular flight.

Examples

Example 1

PS C:\> Remove-CrmFlightAudience -ApiUrl $connectionhost -Credential $cred -FlightId &lt;Guid&gt; -InstanceId &lt;Guid&gt;

Removes the flight as specifed by the FlightId parameter from the specified environment as specified by the InstanceId parameter.

Parameters

-ApiUrl

URL of the Dataverse root service endpoint. For information about this parameter see Establish your credentials and connection.

Parameter properties

Type:Uri
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Credential

User credential for signing in to Dataverse. For information about this parameter see Establish your credentials and connection.

Parameter properties

Type:PSCredential
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-FlightId

Uniquely identifies a particular flight. Use the Get-CrmFlights cmdlet to return all available flights.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-InstanceId

Id for the specific Dataverse environment. Use the Get-CrmInstances cmdlet to find all Ids within the same tenant.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-MaxCrmConnectionTimeOutMinutes

Maximum number in minutes to wait before quitting the operation.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.Guid

System.Uri

System.Management.Automation.PSCredential

System.Int32

Outputs

System.Object