Skip to content

Corrupt file DeployProcFwkComponents.ps1? #103

Description

@gkwittrock

Describe the bug
After downloading and extracting the current zip file (Code => Download Zip) on running DeployProcFwkComponents.ps1 the deployment fails with this message:
"Publish-procfwkadf : The term 'New-AdfPublishOption' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\Bluetooth\Repos\procfwk-master\procfwk-master\DeploymentTools\DataFactory\DeployProcFwkComponents.ps1:76 char:1

  • Publish-procfwkadf -resourceGroupName 'rg-pademo' -dataFactoryName ' ...
  •   + CategoryInfo          : ObjectNotFound: (New-AdfPublishOption:String) [Publish-procfwkadf], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException,Publish-procfwkadf "
    
    

Taking a closer look at the referenced section of the code (uploaded snapshot) has me wondering if there is a problem with that file as it basically hardcodes resourceGroupName, dataFactoryName, and region:

Publish-procfwkadf -resourceGroupName 'rg-pademo' -dataFactoryName 'adf-metadata-driven-proc' -region 'uksouth' `
-adfPath "$AdfPath" -scriptPath "$scriptPath"

image

Affected services
Which resource within the processing framework does this affect?

  • Data Factory/Synapse

To Reproduce
Steps to reproduce the behavior:

  1. unzip procfwk-master.zip
  2. open solution file
  3. right-click on DeploymentTools/DataFactory/DeployProcFwkComponents.ps1 -> open with PowerShell ISE
  4. update parameter values with your own
  5. save file
  6. run from PowerShell ISE

Expected behavior
I expect the script to complete successfully and update the DataFactory portion of the Synapse instance referenced for attributes passed into the script

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions