Test-​Azure​Rm​Data​Lake​Analytics​Catalog​Item

Checks for the existence of a catalog item.

Syntax

Test-AzureRmDataLakeAnalyticsCatalogItem
    [-Account] <String>
    [-ItemType] <CatalogItemType>
    [-Path] <CatalogPathInstance>
    [<CommonParameters>]

Description

The Test-AzureRmDataLakeAnalyticsCatalogItem cmdlet checks for the existence of an Azure Data Lake Analytics catalog item.

Examples

Example 1: Test whether a catalog item exists

PS C:\>Test-AzureRmDataLakeAnalyticsCatalogItem -Account "ContosoAdlAccount" -ItemType Schema -Path "databaseName.schemaName"

This command tests whether a specified Schema item exists.

Required Parameters

-Account

Specifies the Data Lake Analytics account name.

Type:String
Aliases:AccountName
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ItemType

Specifies the catalog item type of the item to check. The acceptable values for this parameter are:

  • Database
  • Schema
  • Assembly
  • Table
  • TablePartition
  • TableValuedFunction
  • TableStatistics
  • ExternalDataSource
  • View
  • Procedure
  • Secret
  • Credential
  • Types
Type:CatalogItemType
Parameter Sets:Database, Schema, Assembly, Table, TablePartition, TableValuedFunction, TableStatistics, ExternalDataSource, View, Procedure, Secret, Credential, Types, Package
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Path

Specifies the path to the item to fetch, or the path to the parent item of the items to list.

Type:CatalogPathInstance
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Outputs

bool

True or false indicating if the specified catalog item exists or not.