Azure-Player / azure.datafactory.devops

Azure DevOps Deployment Tasks for Azure Data Factory objects
MIT License
39 stars 21 forks source link

Publish Azure Data Factory task fails because of import error #98

Closed jo3p closed 2 years ago

jo3p commented 2 years ago

When trying to deploy my ADF I am suddenly experiencing the following error message.

Screenshot 2022-08-05 150020

I already tried upgrading from version 0.90.792 to version 1.12.1145, to no effect.

sauravrout commented 2 years ago

Did you find any solution? I have the same issue. We didn't make any changes to our codebase.

sauravrout commented 2 years ago

I see a new version of Az.Account was released 5 days back and I guess that is breaking the pipeline. I tried to use 2.9.0, but by default it takes 2.9.1. @NowinskiK

image

jo3p commented 2 years ago

I'm also trying to use 2.9.0 in my pipeline right now, but I'm running into some problems there as well. Did reverting to version 2.9.0 solve the issue for you?

sauravrout commented 2 years ago

i dont know how to revert it back?

jo3p commented 2 years ago

For me this worked

# Install-Module -Name Az.Tools.Installer -Scope CurrentUser -Force
# Uninstall-AzModule -Name Accounts -Repository PSGallery -AllVersion
Remove-Item 'C:\Program Files\WindowsPowerShell\Modules\Az.Accounts' -Recurse
Install-Module -Name Az.Accounts -RequiredVersion 2.9.0 -Force -AllowClobber

Since Uninstall-Module could somehow not find the installed package, I manually deleted the folder.

NowinskiK commented 2 years ago

Guys, my default task for tests uses (by default) version 2.9.0 from Az module version 7.5. Turn on System.Debug mode to see more information - perhaps it will give some hints. I can't see any error in the ADF module.

image

sauravrout commented 2 years ago

I would have tried this, but I switched to az command line, with adftools commands . That way we don’t have to maintain a windows machine just for this.

On Mon, 8 Aug 2022 at 8:00 PM, Joep Sterk @.***> wrote:

For me this worked

Install-Module -Name Az.Tools.Installer -Scope CurrentUser -Force

Uninstall-AzModule -Name Accounts -Repository PSGallery -AllVersion

Remove-Item 'C:\Program Files\WindowsPowerShell\Modules\Az.Accounts' -Recurse Install-Module -Name Az.Accounts -RequiredVersion 2.9.0 -Force -AllowClobber

Since Uninstall-Module could somehow not find the installed package, I manually deleted the folder.

— Reply to this email directly, view it on GitHub https://github.com/SQLPlayer/azure.datafactory.devops/issues/98#issuecomment-1208207341, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEJFKDY72UDOCQZJTLN3QSDVYEKY3ANCNFSM55WAO66A . You are receiving this because you commented.Message ID: <SQLPlayer/azure. @.***>

-- Sent from mobile.