dotnet add package Azure.Analytics.Purview.Scanning --version 1.0.0-beta.2
NuGet\Install-Package Azure.Analytics.Purview.Scanning -Version 1.0.0-beta.2
<PackageReference Include="Azure.Analytics.Purview.Scanning" Version="1.0.0-beta.2" />
paket add Azure.Analytics.Purview.Scanning --version 1.0.0-beta.2
#r "nuget: Azure.Analytics.Purview.Scanning, 1.0.0-beta.2"
// Install Azure.Analytics.Purview.Scanning as a Cake Addin #addin nuget:?package=Azure.Analytics.Purview.Scanning&version=1.0.0-beta.2&prerelease // Install Azure.Analytics.Purview.Scanning as a Cake Tool #tool nuget:?package=Azure.Analytics.Purview.Scanning&version=1.0.0-beta.2&prerelease
Azure Purview Scanning client library for .NET
Azure Purview Scanning is a fully managed cloud service whose users can scan your data into your data estate (also known as your catalog). Scanning is a process by which the catalog connects directly to a data source on a user-specified schedule.
- Scan your data into your catalog
- Examine your data
- Extract schemas from your data
Please rely heavily on the service's documentation and our protocol client docs to use this library
Source code | Package (NuGet) | Product documentation
Install the package
Install the Azure Purview Scanning client library for .NET with NuGet:
dotnet add package Azure.Analytics.Purview.Scanning --prerelease
- You must have an Azure subscription and a Purview resource to use this package.
Authenticate the client
Using Azure Active Directory
This document demonstrates using DefaultAzureCredential to authenticate via Azure Active Directory. However, any of the credentials offered by the Azure.Identity will be accepted. See the Azure.Identity documentation for more information about other credentials.
Once you have chosen and configured your credential, you can create instances of the
var credential = new DefaultAzureCredential(); var client = new PurviewScanningClient(new Url("https://<my-account-name>.scan.purview.azure.com"), credential);
Operations exposed by the Purview Scanning SDK for .NET use protocol methods to expose the underlying REST operations. You can learn more about how to use SDK Clients which use protocol methods in our documentation.
We guarantee that all client instance methods are thread-safe and independent of each other (guideline). This ensures that the recommendation of reusing client instances is always safe, even across threads.
Client options | Accessing the response | Long-running operations | Handling failures | Diagnostics | Mocking | Client lifetime
The following section shows you how to initialize and authenticate your client, then list all of your data sources.
List All Data Sources
var credential = new DefaultAzureCredential(); var client = new PurviewScanningServiceClient(new Uri("https://<my-account-name>.scan.purview.azure.com"), credential); var response = await client.GetDataSourcesAsync(); var responseDocument = JsonDocument.Parse(response.Content); Console.WriteLine(responseDocument.RootElement.GetProperty("value"));
Setting up console logging
The simplest way to see the logs is to enable the console logging. To create an Azure SDK log listener that outputs messages to console use AzureEventSourceListener.CreateConsoleLogger method.
// Setup a listener to monitor logged events. using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsoleLogger();
To learn more about other logging mechanisms see here.
This client SDK exposes operations using protocol methods, you can learn more about how to use SDK Clients which use protocol methods in our documentation.
See the CONTRIBUTING.md for details on building, testing, and contributing to this library.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact email@example.com with any additional questions or comments.
|.NET||net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows|
|.NET Core||netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1|
|.NET Standard||netstandard2.0 netstandard2.1|
|.NET Framework||net461 net462 net463 net47 net471 net472 net48 net481|
- Azure.Core (>= 1.20.0)
- Azure.Core.Experimental (>= 0.1.0-preview.17)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.