Skip to content

DryRun ignores stored hash file — reports all objects as changed #475

@pardhasaradhireddy

Description

@pardhasaradhireddy

Describe the bug
During a DryRun execution, the process does not appear to read or compare against the existing hash file in the storage account. As a result, every DryRun reports all objects as needing deployment, regardless of whether they've actually changed.
Actual Result:
All 440 objects are marked for deployment:

Number of objects marked as to be deployed: 440/440

To Reproduce
Run the following command:

Publish-AdfV2FromJson -RootFolder $RootFolder -ResourceGroupName $ResourceGroupName -DataFactoryName $DataFactoryName -Location $Location -Option $opt -Stage "qa" -DryRun

DryRun should compare the current state against the hash file stored in the storage account and only flag objects that have actually changed. For example:

Expected behaviour
DryRun should compare the current state against the hash file stored in the storage account and only flag objects that have actually changed. For example:

Found 27 unchanged object(s).
Number of objects marked as to be deployed: 20/440

Image

Screenshots:
Without DryRun:

Image

with DryRun:

Image

Version of PowerShell module of:
Module: azure.datafactory.tools v1.14.0

Metadata

Metadata

Labels

defectFlaw or imperfection, affecting functionality, but a function can be used

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions