-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force flag for parameters file path entry #308
Comments
Just after ticket creation I checked code internals and found this: azure.datafactory.tools/private/Update-PropertiesFromFile.ps1 Lines 122 to 136 in 467cd6e
Never mind. This only controls of deployment fails or prints warning. Maybe Also looks like Test-AdfCode cmdlet is hardcoded to fail with path errors: azure.datafactory.tools/public/Test-AdfCode.ps1 Lines 123 to 137 in 467cd6e
|
My workaround
|
Is your feature request related to a problem? Please describe.
We have configured dev environment to use SHIR on some environment and remaining are using default AzureIR.
JSON snippets from DEV:
I would like to set default integration runtime on test/prod on all linked services and then override setting if needed.
First try
Parameter file:
Result:
ERROR: ADFT0010: Wrong path defined in config for object(path): linkedService.*(properties.connectVia)
Second try
Parameter file(not sure if this is correct alternative for absent connectVia property):
Result:
ERROR: Cannot add a member with the name "connectVia" because a member with that name already exists. To overwrite the member anyway, add the Force parameter to your command.
Third try
Parameter file:
Result:
ERROR: ADFT0010: Wrong path defined in config for object(path): linkedService.*(properties.connectVia)
Fourth try
Parameters file:
Result: No errors
So it looks like I need to edit linked services one-by-one basis instead of setting default value for all.
Describe the solution you'd like
Support force modifier. E.g.
Remove all
properties.connectVia
properties from linked services and ignore errors ifproperties.connectVia
does not exist:Add
properties.connectVia
property to all linked services and ignore errors ifproperties.connectVia
already exists:Modify
properties.connectVia
property to all linked services and ignore errors ifproperties.connectVia
does not exists:Describe alternatives you've considered
AFAIK only other option is to handle resource one-by-one. That adds maintenance burden with parameter files.
For this particular use case we just probably need to edit parameter files every time we move a new linked service to use SHIR and make deployment process to remove
connectVia
propertyAdditional context
N/A
The text was updated successfully, but these errors were encountered: