encrypted file is showing blank while using SQL Server as Source and Azure BLob Storage as Destination.

Abhishek Jain 1 Reputation point
2022-10-06T16:18:21.457+00:00

Encrypted file is showing blank while using SQL Server as Source and Azure BLob Storage as Destination.

PS C:\ADFv2Tutorial> New-AzDataFactoryV2LinkedServiceEncryptedCredential -DataFactoryName $dataFactoryName -ResourceGroupName $ResourceGroupName -IntegrationRuntimeName $integrationRuntimeName -File ".\SqlServerLinkedService.json" > encryptedSQLServerLinkedService.json

Confirm
Are you sure you want to encrypt the connection string of the linked service?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
New-AzDataFactoryV2LinkedServiceEncryptedCredential:
PS C:\ADFv2Tutorial>

PS C:\ADFv2Tutorial> Set-AzDataFactoryV2LinkedService -DataFactoryName $dataFactoryName -ResourceGroupName $ResourceGroupName -Name "EncryptedSqlServerLinkedService" -File ".\encryptedSqlServerLinkedService.json"
Set-AzDataFactoryV2LinkedService: Value cannot be null. (Parameter 'rawJsonContent')
PS C:\ADFv2Tutorial>

248185-screenshot-2022-10-06-215349.png

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,378 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,639 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2022-10-10T16:56:20.757+00:00

    Hello @Abhishek Jain ,

    I was able to encrypt credentials by enabling "Remote access from Intranet" on the local integration runtime. Please update this setting and try from your end.

    249104-image.png

    This is pointed out on the documentation page as well.

    https://learn.microsoft.com/en-us/powershell/module/az.datafactory/New-AzDataFactoryV2LinkedServiceEncryptedCredential?view=azps-8.3.0

    249062-image.png

    ------------------------------

    • Please don't forget to click on 130616-image.png and upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.