Citrix Virtual Apps and Desktops SDK

Get-ProvSchemeWarning

Gets a list of provisioning schemes warnings.

Syntax

Get-ProvSchemeWarning
   [-ProvisioningSchemeUid <Guid>]
   [-ProvisioningSchemeName <String>]
   [-WarningId <Int32>]
   [-ReturnTotalRecordCount]
   [-MaxRecordCount <Int32>]
   [-Skip <Int32>]
   [-SortBy <String>]
   [-Filter <String>]
   [-FilterScope <Guid>]
   [<CitrixCommonParameters>]
   [<CommonParameters>]
<!--NeedCopy-->

Description

Allows you to retrieve the list of provisioning scheme warnings.

Examples

EXAMPLE 1

Returns the warning with a warning Id of 42.

Get-ProvSchemeWarning -WarningId 42

ProvisioningSchemeName       : CatalogWindows11AWS
ProvisioningSchemeUid        : 7585f0de-192e-4847-a6d8-22713c3a2f42
WarningId                    : 42
WarningMessage               : Deprecated custom attribute
RecommendedAction            : Remove obsolete custom attribute
AdditionalData               : AwsCaptureInstanceProperties is now deprecated
WarningStateType             : New
OperationName                : New-ProvScheme
WarningReportingDateTime     : 17/05/2022 09:27:50
<!--NeedCopy-->

Parameters

-ProvisioningSchemeUid

The unique identifier of the provisioning scheme to get the warnings of.

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

-ProvisioningSchemeName

The name of the provisioning scheme to get the warnings of.

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

-WarningId

The id of the warning to retrieve.

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

-ReturnTotalRecordCount

See about_Prov_Filtering for details.

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

-MaxRecordCount

See about_Prov_Filtering for details.

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

-Skip

See about_Prov_Filtering for details.

Type: Int32
Position: Named
Default value: 0
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-SortBy

See about_Prov_Filtering for details.

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

-Filter

See about_Prov_Filtering for details.

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

-FilterScope

Gets only results allowed by the specified scope id.

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

CitrixCommonParameters

This cmdlet supports the common Citrix parameters: -AdminAddress, -AdminClientIP, -BearerToken, -TraceParent, -TraceState and -VirtualSiteId. For more information, see about_CitrixCommonParameters.

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.

Inputs

None

You can’t pipe objects to this cmdlet.

Outputs

Citrix.MachineCreation.Sdk.ProvWarning

This object provides details of the provisioning scheme warning and contains the following information:

WarningId <int> The Unique identifier of this warning.

ProvisioningSchemeUid <Guid> The unique identifier for this provisioning scheme this warning is associated with.

ProvisioningSchemeName <Guid> The name for this provisioning scheme this warning is associated with.

WarningMessage <string[]> The warning description.

RecommendedAction <string> The optional recommended action to take to help resolve the warning.

AdditionalData <string> Optional, additional data related to the warning.

WarningStateType <string> The warning state of this provisioning scheme warning, either New or Acknowledged.

OperationName <string> The operation which triggered the warning.

WarningReportingDateTime <DateTime> The date and time the warning was created (UTC).

Notes

In the case of failure, the following errors can result.

Error Codes


PartialData Only a subset of the available data was returned

CouldNotQueryDatabase The query to get the database was not defined.

PermissionDenied The user does not have administrative rights to perform this operation.

ConfigurationLoggingError The operation could not be performed because of a configuration logging error.

CommunicationError An error occurred while communicating with the service.

DatabaseNotConfigured The operation could not be completed because the database for the service is not configured.

InvalidFilter A filtering expression was supplied that could not be interpreted for this cmdlet.

ExceptionThrown An unexpected error occurred. For more details, see the Windows event logs on the controller being used, or Citrix Virtual Apps and Desktops logs.

Get-ProvSchemeWarning