Skip to content

isabella232/azure-data-share-dotnet-api-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

page_type languages products extensions description urlFragment
sample
csharp
azure
platforms
dotnet
service
Azure Data Share
This sample will give you an e2e experience of the whole work flow for data share. It should include creating data share, adding datasets, synchronizaition etc.
data-share

Azure Data Share API Sample

In this tutorial user will have an e2e experience of the whole work flow for data share. This should include creating data share, adding datasets, synchronizaition etc.

Prerequisites

  • Azure subscription. If you don't have a subscription, you can create a free trial account.
  • Azure Storage account. You use the blob storage as source data store. If you don't have an Azure storage account, see the Create a storage account article for steps to create one.
  • Azure Data Share account. You use the data share to perform data sharing operations. If you don't have an Azure Data Share account, see the Create an Azure Data Share Account article for steps to create one.
  • Permission to add role assignment to the storage account. This is present in the Microsoft.Authorization/role assignments/write permission. This permission exists in the owner role.
  • Visual Studio 2013, 2015, or 2017. The walkthrough in this article uses Visual Studio 2017.
  • Download and install Azure .NET SDK.
  • Create an application in Azure Active Directory following this instruction. Make note of the following values that you use in later steps: application ID, authentication key, and tenant ID. Assign application to "Contributor" role by following instructions in the same article.

Runnning the sample

  1. In the DataShareSample.csproj, update the version to the most recent one, you can refer this to this Azure Data Share Nuget package version:

    <PackageReference Include="Microsoft.Azure.Management.DataShare" Version="1.0.0" />
    
  2. Set values for variables in the AppSetting.json file, these values are supposed to be created following the patterns mentioned above in prerequisities:

    "configs": {
        "provider": {
            "tenantId": "",
            "clientId": "",
            "objectId": "",
            "secret": "",
            "subscriptionId": "",
    
            "dataShareResourceGroup": "",
            "dataShareAccountName": "",
            "dataShareShareName": "",
            "dataShareInvitation": "",
            "dataShareDataSetName": "",
            "dataShareDataSetMappingName": "",
    
            "storageResourceGroup": "",
            "storageAccountName": "",
            "storageContainerName": "",
            "storageBlobName": ""
          },
        "consumer": {
            "tenantId": "",
            "clientId": "",
            "objectId": "",
            "secret": "",
            "subscriptionId": "",
    
            "dataShareResourceGroup": "",
            "dataShareAccountName": "",
            "dataShareShareSubscriptionName": "",
            "dataShareInvitation": "",
            "dataShareDataSetName": "",
            "dataShareDataSetMappingName": "",
    
            "storageResourceGroup": "",
            "storageAccountName": "",
            "storageContainerName": "",
            "storageBlobName": ""
          }
      }
    

See Also

For the further information you can refer to this Tutorial.

About

api sample code for azure data share

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published