Here's the definition json:
{
"name": "LSLocalFileServer",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"annotations": [],
"type": "FileServer",
"typeProperties": {
"host": "C:\\DataFolder",
"userId": "MyUser",
"passwword":
{"value" :"MyPassword",
"type": "SecureString"}
},
"connectVia": {
"referenceName": "TheWorkingIR",
"type": "IntegrationRuntimeReference"
}
}
}
Here's the PS command:
New-AzDataFactoryV2LinkedServiceEncryptedCredential -DataFactoryName 'DFMREDemo' -File './LSHoratiuLocal.json' -IntegrationRuntimeName 'TheWorkingIR' -ResourceGroupName 'HoratiuRipa'> 'encrypted.json'
Tried with -File, -DefinitionFile and so on.
It asks for confirmation for encrypting than it doesn't simply work, it doesn't throw an error, just writes "New-AzDataFactoryV2LinkedServiceEncryptedCredential:" in red. Is the .json definition ok?
Set-AzDataFactoryV2LinkedService -ResourceGroupName "HoratiuRipa" -DataFactoryName "DFMREdemo" -Name "LSLocalFileServer" -DefinitionFile "./LSHoratiuLocal.json"
Works, but the password is incorrect