本記事では CData サポート担当からこんなことを聞かれたらどこを確認すべきか?という観点で、よく頂くお問合せ内容をご紹介します。
記事はこちら →CData Cmdlets Module for AzureDataCatalog は、直感的なAzure Data Catalog データ連携を提供する標準cmdlet です。 本記事では、AzureDataCatalog Cmdlets を使ったサンプルを提供します。
You can optionally set the following to read the different catalog data returned from Azure Data Catalog.
You must use OAuth to authenticate with Azure Data Catalog. OAuth requires the authenticating user to interact with Azure Data Catalog using the browser. For more information, refer to the OAuth section in the help documentation.
$conn = Connect-AzureDataCatalog
次の手順で、Tables テーブルデータを取得して、結果をCSV ファイルにエクスポートします:
Select-AzureDataCatalog -Connection $conn -Table Tables | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myTablesData.csv -NoTypeInformation
このように、Select-AzureDataCatalog から取得した結果を、Select-Object cmdlet に流し、Export-Csv cmdlet に渡す前にいくつかのプロパティを除外しています。これは、CData Cmdlets が接続情報、テーブル、およびカラム情報が結果セットのそれぞれの"行"に挿入されるためです。それらの情報を表示したくない場合に、Export-Csv cmdlet に渡す前に除外を先に行い、それからCSV ファイルにエクスポートします。。
CData Cmdlets から、次のCmdlets にデータをパイプラインするところでは、接続、テーブル、カラムの情報が必要です。このように、CData Cmdlets でデータ連携をシンプルに構成できます。Cmdlets では、モジュールのインストール、接続プロパティの設定だけで、データ連携の構築を始めることができます。是非、CData PowerShell Cmdlets の無償試用版をダウンロードして、シンプルかつパワフルなデータ連携を体感してください。