Skip to content
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

[BUG]: issue on AZ module #20008

Closed
1 of 7 tasks
Varaprasad91 opened this issue Jun 13, 2024 · 7 comments
Closed
1 of 7 tasks

[BUG]: issue on AZ module #20008

Varaprasad91 opened this issue Jun 13, 2024 · 7 comments

Comments

@Varaprasad91
Copy link

Varaprasad91 commented Jun 13, 2024

New issue checklist

Task name

Azurepowershell5

Task version -3.1.0

No response

Issue Description

  • job: dev
    steps:
    • task: AzurePowerShell@5
      displayName: 'dev'
      inputs:
      azureSubscription: ''
      ScriptType: InlineScript
      Inline: "Install-Module Az.Accounts -Repository PSGallery\nWrite-host "Installing Nuget package provider"\nInstall-PackageProvider -Name NuGet -Force -Scope CurrentUser -ErrorAction Stop \nWrite-Host "Installing Databricks Tools"\nInstall-Module -Name azure.databricks.cicd.tools -AllowClobber -Force -Scope CurrentUser\nImport-Module azure.databricks.cicd.tools\nImport-DatabricksFolder -BearerToken $(PATToken) -Region $(region) -LocalPath $(inputFolderPath) -DatabricksPath $(destinationPath)\n"
      preferredAzurePowerShellVersion: 3.1.0
      workingDirectory: '$(System.DefaultWorkingDirectory)/'

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

windows- 2022 ms hosted agent

Relevant log output

[error]
This module requires Az.Accounts version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.
Additionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error

Full task logs with system.debug enabled

2024-06-12T13:01:00.7765432Z ##[section]Starting: dev
2024-06-12T13:01:01.0615845Z ##[section]Starting: Initialize job
2024-06-12T13:01:01.0620007Z Agent name: 'Azure Pipelines 2'
2024-06-12T13:01:01.0620388Z Agent machine name: 'fv-az760-165'
2024-06-12T13:01:01.0620553Z Current agent version: '3.240.1'
2024-06-12T13:01:01.0686401Z ##[group]Operating System
2024-06-12T13:01:01.0686607Z Microsoft Windows Server 2022
2024-06-12T13:01:01.0686760Z 10.0.20348
2024-06-12T13:01:01.0686859Z Datacenter
2024-06-12T13:01:01.0686985Z ##[endgroup]
2024-06-12T13:01:01.0687094Z ##[group]Runner Image
2024-06-12T13:01:01.0687237Z Image: windows-2022
2024-06-12T13:01:01.0687357Z Version: 20240610.1.0
2024-06-12T13:01:01.0687642Z Included Software: https://github.com/actions/runner-images/blob/win22/20240610.1/images/windows/Windows2022-Readme.md
2024-06-12T13:01:01.0687975Z Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20240610.1
2024-06-12T13:01:01.0688191Z ##[endgroup]
2024-06-12T13:01:01.0688492Z ##[group]Runner Image Provisioner
2024-06-12T13:01:01.0688662Z 2.0.370.1
2024-06-12T13:01:01.0688778Z ##[endgroup]
2024-06-12T13:01:01.0690232Z Current image version: '20240610.1.0'
2024-06-12T13:01:01.0698901Z Agent running as: 'VssAdministrator'
2024-06-12T13:01:01.0751179Z Prepare build directory.
2024-06-12T13:01:01.1167302Z Set build variables.
2024-06-12T13:01:01.1208029Z Download all required tasks.
2024-06-12T13:01:01.1398266Z Downloading task: AzurePowerShell (5.241.0)
2024-06-12T13:01:03.4123652Z Checking job knob settings.
2024-06-12T13:01:03.4135369Z Knob: DockerActionRetries = true Source: $(VSTSAGENT_DOCKER_ACTION_RETRIES)
2024-06-12T13:01:03.4136195Z Knob: AgentToolsDirectory = C:\hostedtoolcache\windows Source: ${AGENT_TOOLSDIRECTORY}
2024-06-12T13:01:03.4137375Z Knob: UseGitLongPaths = true Source: $(USE_GIT_LONG_PATHS)
2024-06-12T13:01:03.4137870Z Knob: UseLatestGitVersion = true Source: $(USE_LATEST_GIT_VERSION)
2024-06-12T13:01:03.4138644Z Knob: AgentPerflog = c:\vsts\perflog Source: ${VSTS_AGENT_PERFLOG}
2024-06-12T13:01:03.4140196Z Knob: AgentEnablePipelineArtifactLargeChunkSize = true Source: $(AGENT_ENABLE_PIPELINEARTIFACT_LARGE_CHUNK_SIZE)
2024-06-12T13:01:03.4142237Z Knob: ContinueAfterCancelProcessTreeKillAttempt = true Source: $(VSTSAGENT_CONTINUE_AFTER_CANCEL_PROCESSTREEKILL_ATTEMPT)
2024-06-12T13:01:03.4143152Z Knob: ProcessHandlerSecureArguments = false Source: $(AZP_75787_ENABLE_NEW_LOGIC)
2024-06-12T13:01:03.4143652Z Knob: ProcessHandlerSecureArguments = false Source: $(AZP_75787_ENABLE_NEW_LOGIC_LOG)
2024-06-12T13:01:03.4144189Z Knob: ProcessHandlerTelemetry = true Source: $(AZP_75787_ENABLE_COLLECT)
2024-06-12T13:01:03.4144666Z Knob: ProcessHandlerEnableNewLogic = true Source: $(AZP_75787_ENABLE_NEW_PH_LOGIC)
2024-06-12T13:01:03.4145594Z Knob: IgnoreVSTSTaskLib = true Source: $(AZP_AGENT_IGNORE_VSTSTASKLIB)
2024-06-12T13:01:03.4146030Z Knob: FailJobWhenAgentDies = true Source: $(FAIL_JOB_WHEN_AGENT_DIES)
2024-06-12T13:01:03.4146613Z Knob: CheckForTaskDeprecation = true Source: $(AZP_AGENT_CHECK_FOR_TASK_DEPRECATION)
2024-06-12T13:01:03.4147053Z Knob: MountWorkspace = true Source: $(AZP_AGENT_MOUNT_WORKSPACE)
2024-06-12T13:01:03.4147746Z Knob: LogTaskNameInUserAgent = true Source: $(AZP_AGENT_LOG_TASKNAME_IN_USERAGENT)
2024-06-12T13:01:03.4148584Z Knob: UseInteropToFindParentProcess = true Source: $(AZP_AGENT_USE_INTEROP_TO_FIND_PARENT_PROCESS)
2024-06-12T13:01:03.4149317Z Knob: Rosetta2Warning = true Source: $(ROSETTA2_WARNING)
2024-06-12T13:01:03.4149523Z Finished checking job knob settings.
2024-06-12T13:01:03.4501881Z Start tracking orphan processes.
2024-06-12T13:01:03.4583019Z ##[section]Finishing: Initialize job
2024-06-12T13:01:03.4825679Z ##[section]Async Command Start: DetectDockerContainer
2024-06-12T13:01:03.4826055Z ##[section]Async Command End: DetectDockerContainer
2024-06-12T13:01:03.4826917Z ##[section]Async Command Start: DetectDockerContainer
2024-06-12T13:01:03.4829195Z ##[section]Async Command End: DetectDockerContainer
2024-06-12T13:01:03.5067951Z ##[section]Starting: Checkout pmo_dataplat@features/ARM_Project to s
2024-06-12T13:01:03.5339057Z ==============================================================================
2024-06-12T13:01:03.5339782Z Task : Get sources
2024-06-12T13:01:03.5340155Z Description : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2024-06-12T13:01:03.5340386Z Version : 1.0.0
2024-06-12T13:01:03.5340693Z Author : Microsoft
2024-06-12T13:01:03.5341117Z Help : More Information
2024-06-12T13:01:03.5341416Z ==============================================================================
2024-06-12T13:01:04.4225167Z Syncing repository: pmo_dataplat (Git)
2024-06-12T13:01:04.5737772Z Prepending Path environment variable with directory containing 'git.exe'.
2024-06-12T13:01:04.5747999Z ##[command]git version
2024-06-12T13:01:04.9724197Z git version 2.43.0.windows.1
2024-06-12T13:01:04.9753636Z ##[command]git lfs version
2024-06-12T13:01:06.4875461Z git-lfs/3.3.0 (GitHub; windows amd64; go 1.19.3; git 77deabdf)
2024-06-12T13:01:06.5125779Z ##[command]git init "D:\a\1\s"
2024-06-12T13:01:06.7139324Z Initialized empty Git repository in D:/a/1/s/.git/
2024-06-12T13:01:06.7221013Z ##[command]git remote add origin

2024-06-12T13:01:06.8120886Z ##[command]git config gc.auto 0
2024-06-12T13:01:06.9030268Z ##[command]git config core.longpaths true
2024-06-12T13:01:06.9296785Z ##[command]git config --get-all
2024-06-12T13:01:06.9849195Z ##[command]git config --get-all http.extraheader
2024-06-12T13:01:07.0478778Z ##[command]git config --get-regexp .*extraheader
2024-06-12T13:01:07.1130767Z ##[command]git config --get-all http.proxy
2024-06-12T13:01:07.1898779Z ##[command]git config http.version HTTP/1.1
2024-06-12T13:01:07.2676606Z ##[command]git --config-env=http.extraheader=env_var_http.extraheader fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin --depth=1 +148265f672cc561f002b7d10852dd40c0c8caf1f:refs/remotes/origin/148265f672cc561f002b7d10852dd40c0c8caf1f
2024-06-12T13:01:09.1423913Z remote: Azure Repos
2024-06-12T13:01:09.2397882Z remote:
2024-06-12T13:01:09.2398299Z remote: Found 1842 objects to send. (99 ms)
2024-06-12T13:01:09.2971948Z Receiving objects: 0% (1/1842)
2024-06-12T13:01:09.2987423Z Receiving objects: 1% (19/1842)
2024-06-12T13:01:09.2997154Z Receiving objects: 2% (37/1842)
2024-06-12T13:01:09.3010328Z Receiving objects: 3% (56/1842)
2024-06-12T13:01:09.3028829Z Receiving objects: 4% (74/1842)
2024-06-12T13:01:09.3043298Z Receiving objects: 5% (93/1842)
2024-06-12T13:01:09.3149237Z Receiving objects: 6% (111/1842)
2024-06-12T13:01:09.3163653Z Receiving objects: 7% (129/1842)
2024-06-12T13:01:09.3172310Z Receiving objects: 8% (148/1842)
2024-06-12T13:01:09.3183134Z Receiving objects: 9% (166/1842)
2024-06-12T13:01:09.3188860Z Receiving objects: 10% (185/1842)
2024-06-12T13:01:09.3196183Z Receiving objects: 11% (203/1842)
2024-06-12T13:01:09.3200685Z Receiving objects: 12% (222/1842)
2024-06-12T13:01:09.3204847Z Receiving objects: 13% (240/1842)
2024-06-12T13:01:09.3208455Z Receiving objects: 14% (258/1842)
2024-06-12T13:01:09.3215802Z Receiving objects: 15% (277/1842)
2024-06-12T13:01:09.3220125Z Receiving objects: 16% (295/1842)
2024-06-12T13:01:09.3222702Z Receiving objects: 17% (314/1842)
2024-06-12T13:01:09.3226534Z Receiving objects: 18% (332/1842)
2024-06-12T13:01:09.3229964Z Receiving objects: 19% (350/1842)
2024-06-12T13:01:09.3233935Z Receiving objects: 20% (369/1842)
2024-06-12T13:01:09.3238491Z Receiving objects: 21% (387/1842)
2024-06-12T13:01:09.3240972Z Receiving objects: 22% (406/1842)
2024-06-12T13:01:09.3248485Z Receiving objects: 23% (424/1842)
2024-06-12T13:01:09.3249975Z Receiving objects: 24% (443/1842)
2024-06-12T13:01:09.3252136Z Receiving objects: 25% (461/1842)
2024-06-12T13:01:09.3255556Z Receiving objects: 26% (479/1842)
2024-06-12T13:01:09.3262503Z Receiving objects: 27% (498/1842)
2024-06-12T13:01:09.3266300Z Receiving objects: 28% (516/1842)
2024-06-12T13:01:09.3269119Z Receiving objects: 29% (535/1842)
2024-06-12T13:01:09.3272624Z Receiving objects: 30% (553/1842)
2024-06-12T13:01:09.3274220Z Receiving objects: 31% (572/1842)
2024-06-12T13:01:09.3278231Z Receiving objects: 32% (590/1842)
2024-06-12T13:01:09.3282852Z Receiving objects: 33% (608/1842)
2024-06-12T13:01:09.3285539Z Receiving objects: 34% (627/1842)
2024-06-12T13:01:09.3288150Z Receiving objects: 35% (645/1842)
2024-06-12T13:01:09.3290782Z Receiving objects: 36% (664/1842)
2024-06-12T13:01:09.3293661Z Receiving objects: 37% (682/1842)
2024-06-12T13:01:09.3296734Z Receiving objects: 38% (700/1842)
2024-06-12T13:01:09.3299934Z Receiving objects: 39% (719/1842)
2024-06-12T13:01:09.3303105Z Receiving objects: 40% (737/1842)
2024-06-12T13:01:09.3304935Z Receiving objects: 41% (756/1842)
2024-06-12T13:01:09.3309758Z Receiving objects: 42% (774/1842)
2024-06-12T13:01:09.3313130Z Receiving objects: 43% (793/1842)
2024-06-12T13:01:09.3314916Z Receiving objects: 44% (811/1842)
2024-06-12T13:01:09.3316828Z Receiving objects: 45% (829/1842)
2024-06-12T13:01:09.3321090Z Receiving objects: 46% (848/1842)
2024-06-12T13:01:09.3323971Z Receiving objects: 47% (866/1842)
2024-06-12T13:01:09.3326779Z Receiving objects: 48% (885/1842)
2024-06-12T13:01:09.3331491Z Receiving objects: 49% (903/1842)
2024-06-12T13:01:09.3335300Z Receiving objects: 50% (921/1842)
2024-06-12T13:01:09.3339112Z Receiving objects: 51% (940/1842)
2024-06-12T13:01:09.3342418Z Receiving objects: 52% (958/1842)
2024-06-12T13:01:09.3344883Z Receiving objects: 53% (977/1842)
2024-06-12T13:01:09.3346954Z Receiving objects: 54% (995/1842)
2024-06-12T13:01:09.3350464Z Receiving objects: 55% (1014/1842)
2024-06-12T13:01:09.3352672Z Receiving objects: 56% (1032/1842)
2024-06-12T13:01:09.3355662Z Receiving objects: 57% (1050/1842)
2024-06-12T13:01:09.3357682Z Receiving objects: 58% (1069/1842)
2024-06-12T13:01:09.3363818Z Receiving objects: 59% (1087/1842)
2024-06-12T13:01:09.3367085Z Receiving objects: 60% (1106/1842)
2024-06-12T13:01:09.3371733Z Receiving objects: 61% (1124/1842)
2024-06-12T13:01:09.3373777Z Receiving objects: 62% (1143/1842)
2024-06-12T13:01:09.3377461Z Receiving objects: 63% (1161/1842)
2024-06-12T13:01:09.3379893Z Receiving objects: 64% (1179/1842)
2024-06-12T13:01:09.3381683Z Receiving objects: 65% (1198/1842)
2024-06-12T13:01:09.3384882Z Receiving objects: 66% (1216/1842)
2024-06-12T13:01:09.3386589Z Receiving objects: 67% (1235/1842)
2024-06-12T13:01:09.3389964Z Receiving objects: 68% (1253/1842)
2024-06-12T13:01:09.3392775Z Receiving objects: 69% (1271/1842)
2024-06-12T13:01:09.3395571Z Receiving objects: 70% (1290/1842)
2024-06-12T13:01:09.3399313Z Receiving objects: 71% (1308/1842)
2024-06-12T13:01:09.3401973Z Receiving objects: 72% (1327/1842)
2024-06-12T13:01:09.3404375Z Receiving objects: 73% (1345/1842)
2024-06-12T13:01:09.3406650Z Receiving objects: 74% (1364/1842)
2024-06-12T13:01:09.3409714Z Receiving objects: 75% (1382/1842)
2024-06-12T13:01:09.3412897Z Receiving objects: 76% (1400/1842)
2024-06-12T13:01:09.3415177Z Receiving objects: 77% (1419/1842)
2024-06-12T13:01:09.3419646Z Receiving objects: 78% (1437/1842)
2024-06-12T13:01:09.3423422Z Receiving objects: 79% (1456/1842)
2024-06-12T13:01:09.3430690Z Receiving objects: 80% (1474/1842)
2024-06-12T13:01:09.3432480Z Receiving objects: 81% (1493/1842)
2024-06-12T13:01:09.3437238Z Receiving objects: 82% (1511/1842)
2024-06-12T13:01:09.3441212Z Receiving objects: 83% (1529/1842)
2024-06-12T13:01:09.3443699Z Receiving objects: 84% (1548/1842)
2024-06-12T13:01:09.3446373Z Receiving objects: 85% (1566/1842)
2024-06-12T13:01:09.3449262Z Receiving objects: 86% (1585/1842)
2024-06-12T13:01:09.3452809Z Receiving objects: 87% (1603/1842)
2024-06-12T13:01:09.3456201Z Receiving objects: 88% (1621/1842)
2024-06-12T13:01:09.3461296Z Receiving objects: 89% (1640/1842)
2024-06-12T13:01:09.3467016Z Receiving objects: 90% (1658/1842)
2024-06-12T13:01:09.3470957Z Receiving objects: 91% (1677/1842)
2024-06-12T13:01:09.3479316Z Receiving objects: 92% (1695/1842)
2024-06-12T13:01:09.3482301Z Receiving objects: 93% (1714/1842)
2024-06-12T13:01:09.3493574Z Receiving objects: 94% (1732/1842)
2024-06-12T13:01:09.3542224Z Receiving objects: 95% (1750/1842)
2024-06-12T13:01:09.3764381Z Receiving objects: 96% (1769/1842)
2024-06-12T13:01:09.3770020Z Receiving objects: 97% (1787/1842)
2024-06-12T13:01:09.3771686Z Receiving objects: 98% (1806/1842)
2024-06-12T13:01:09.3773237Z Receiving objects: 99% (1824/1842)
2024-06-12T13:01:09.3774126Z Receiving objects: 100% (1842/1842)
2024-06-12T13:01:09.3775318Z Receiving objects: 100% (1842/1842), 651.43 KiB | 9.05 MiB/s, done.
2024-06-12T13:01:09.3777685Z Resolving deltas: 0% (0/985)
2024-06-12T13:01:09.3779440Z Resolving deltas: 1% (10/985)
2024-06-12T13:01:09.3780709Z Resolving deltas: 2% (20/985)
2024-06-12T13:01:09.3781650Z Resolving deltas: 3% (30/985)
2024-06-12T13:01:09.3783197Z Resolving deltas: 4% (40/985)
2024-06-12T13:01:09.3784146Z Resolving deltas: 5% (50/985)
2024-06-12T13:01:09.3785083Z Resolving deltas: 6% (60/985)
2024-06-12T13:01:09.3786026Z Resolving deltas: 7% (69/985)
2024-06-12T13:01:09.3786964Z Resolving deltas: 8% (79/985)
2024-06-12T13:01:09.3787778Z Resolving deltas: 9% (89/985)
2024-06-12T13:01:09.3788649Z Resolving deltas: 10% (99/985)
2024-06-12T13:01:09.3789425Z Resolving deltas: 11% (109/985)
2024-06-12T13:01:09.3789875Z Resolving deltas: 12% (119/985)
2024-06-12T13:01:09.3790370Z Resolving deltas: 13% (129/985)
2024-06-12T13:01:09.3790553Z Resolving deltas: 14% (138/985)
2024-06-12T13:01:09.3790722Z Resolving deltas: 15% (148/985)
2024-06-12T13:01:09.3792013Z Resolving deltas: 16% (158/985)
2024-06-12T13:01:09.3792783Z Resolving deltas: 17% (168/985)
2024-06-12T13:01:09.3793319Z Resolving deltas: 18% (178/985)
2024-06-12T13:01:09.3793493Z Resolving deltas: 19% (188/985)
2024-06-12T13:01:09.3793943Z Resolving deltas: 20% (197/985)
2024-06-12T13:01:09.3794909Z Resolving deltas: 21% (207/985)
2024-06-12T13:01:09.3795269Z Resolving deltas: 22% (217/985)
2024-06-12T13:01:09.3795812Z Resolving deltas: 23% (227/985)
2024-06-12T13:01:09.3796634Z Resolving deltas: 24% (237/985)
2024-06-12T13:01:09.3797887Z Resolving deltas: 25% (247/985)
2024-06-12T13:01:09.3799392Z Resolving deltas: 26% (257/985)
2024-06-12T13:01:09.3800568Z Resolving deltas: 27% (266/985)
2024-06-12T13:01:09.3801382Z Resolving deltas: 28% (276/985)
2024-06-12T13:01:09.3802316Z Resolving deltas: 29% (286/985)
2024-06-12T13:01:09.3803162Z Resolving deltas: 30% (296/985)
2024-06-12T13:01:09.3804192Z Resolving deltas: 31% (306/985)
2024-06-12T13:01:09.3805229Z Resolving deltas: 32% (316/985)
2024-06-12T13:01:09.3806059Z Resolving deltas: 33% (326/985)
2024-06-12T13:01:09.3806892Z Resolving deltas: 34% (335/985)
2024-06-12T13:01:09.3807601Z Resolving deltas: 35% (345/985)
2024-06-12T13:01:09.3808234Z Resolving deltas: 36% (355/985)
2024-06-12T13:01:09.3808452Z Resolving deltas: 37% (365/985)
2024-06-12T13:01:09.3808612Z Resolving deltas: 38% (375/985)
2024-06-12T13:01:09.3809004Z Resolving deltas: 39% (385/985)
2024-06-12T13:01:09.3809309Z Resolving deltas: 40% (394/985)
2024-06-12T13:01:09.3809953Z Resolving deltas: 41% (404/985)
2024-06-12T13:01:09.3810660Z Resolving deltas: 42% (414/985)
2024-06-12T13:01:09.3811338Z Resolving deltas: 43% (425/985)
2024-06-12T13:01:09.3812673Z Resolving deltas: 44% (435/985)
2024-06-12T13:01:09.3812908Z Resolving deltas: 45% (444/985)
2024-06-12T13:01:09.3813692Z Resolving deltas: 46% (454/985)
2024-06-12T13:01:09.3814119Z Resolving deltas: 47% (463/985)
2024-06-12T13:01:09.3814701Z Resolving deltas: 48% (473/985)
2024-06-12T13:01:09.3815103Z Resolving deltas: 49% (483/985)
2024-06-12T13:01:09.3815658Z Resolving deltas: 50% (493/985)
2024-06-12T13:01:09.3816331Z Resolving deltas: 51% (503/985)
2024-06-12T13:01:09.3816753Z Resolving deltas: 52% (513/985)
2024-06-12T13:01:09.3817459Z Resolving deltas: 53% (523/985)
2024-06-12T13:01:09.3818467Z Resolving deltas: 54% (532/985)
2024-06-12T13:01:09.3819178Z Resolving deltas: 55% (542/985)
2024-06-12T13:01:09.3819961Z Resolving deltas: 56% (552/985)
2024-06-12T13:01:09.3821352Z Resolving deltas: 57% (562/985)
2024-06-12T13:01:09.3822246Z Resolving deltas: 58% (572/985)
2024-06-12T13:01:09.3822723Z Resolving deltas: 59% (582/985)
2024-06-12T13:01:09.3823421Z Resolving deltas: 60% (591/985)
2024-06-12T13:01:09.3823873Z Resolving deltas: 61% (601/985)
2024-06-12T13:01:09.3824608Z Resolving deltas: 62% (611/985)
2024-06-12T13:01:09.3825113Z Resolving deltas: 63% (621/985)
2024-06-12T13:01:09.3825745Z Resolving deltas: 64% (631/985)
2024-06-12T13:01:09.3826136Z Resolving deltas: 65% (641/985)
2024-06-12T13:01:09.3826890Z Resolving deltas: 66% (651/985)
2024-06-12T13:01:09.3827266Z Resolving deltas: 67% (660/985)
2024-06-12T13:01:09.3827781Z Resolving deltas: 68% (670/985)
2024-06-12T13:01:09.3828279Z Resolving deltas: 69% (680/985)
2024-06-12T13:01:09.3828451Z Resolving deltas: 70% (690/985)
2024-06-12T13:01:09.3829069Z Resolving deltas: 71% (700/985)
2024-06-12T13:01:09.3829433Z Resolving deltas: 72% (710/985)
2024-06-12T13:01:09.3829957Z Resolving deltas: 73% (720/985)
2024-06-12T13:01:09.3830138Z Resolving deltas: 74% (729/985)
2024-06-12T13:01:09.3830553Z Resolving deltas: 75% (739/985)
2024-06-12T13:01:09.3830991Z Resolving deltas: 76% (749/985)
2024-06-12T13:01:09.3831529Z Resolving deltas: 77% (759/985)
2024-06-12T13:01:09.3831963Z Resolving deltas: 78% (769/985)
2024-06-12T13:01:09.3832314Z Resolving deltas: 79% (779/985)
2024-06-12T13:01:09.3833188Z Resolving deltas: 80% (788/985)
2024-06-12T13:01:09.3833561Z Resolving deltas: 81% (798/985)
2024-06-12T13:01:09.3834230Z Resolving deltas: 82% (808/985)
2024-06-12T13:01:09.3834683Z Resolving deltas: 83% (818/985)
2024-06-12T13:01:09.3835014Z Resolving deltas: 84% (828/985)
2024-06-12T13:01:09.3835635Z Resolving deltas: 85% (838/985)
2024-06-12T13:01:09.3835952Z Resolving deltas: 86% (848/985)
2024-06-12T13:01:09.3836395Z Resolving deltas: 87% (857/985)
2024-06-12T13:01:09.3836966Z Resolving deltas: 88% (867/985)
2024-06-12T13:01:09.3838542Z Resolving deltas: 89% (877/985)
2024-06-12T13:01:09.3838876Z Resolving deltas: 90% (887/985)
2024-06-12T13:01:09.3839799Z Resolving deltas: 91% (897/985)
2024-06-12T13:01:09.3840268Z Resolving deltas: 92% (907/985)
2024-06-12T13:01:09.3840949Z Resolving deltas: 93% (917/985)
2024-06-12T13:01:09.3842389Z Resolving deltas: 94% (926/985)
2024-06-12T13:01:09.3842621Z Resolving deltas: 95% (936/985)
2024-06-12T13:01:09.3843026Z Resolving deltas: 96% (946/985)
2024-06-12T13:01:09.3844323Z Resolving deltas: 97% (956/985)
2024-06-12T13:01:09.3845083Z Resolving deltas: 98% (966/985)
2024-06-12T13:01:09.3845723Z Resolving deltas: 99% (976/985)
2024-06-12T13:01:09.3846302Z Resolving deltas: 100% (985/985)
2024-06-12T13:01:09.3846935Z Resolving deltas: 100% (985/985), done.
2024-06-12T13:01:09.4814843Z From

  • [new ref] 148265f672cc561f002b7d10852dd40c0c8caf1f -> origin/148265f672cc561f002b7d10852dd40c0c8caf1f
    2024-06-12T13:01:09.5296030Z ##[command]git --config-env=http.extraheader=env_var_http.extraheader fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin --depth=1 +148265f672cc561f002b7d10852dd40c0c8caf1f
    2024-06-12T13:01:09.9771084Z remote: Azure Repos
    2024-06-12T13:01:09.9937738Z remote:
    2024-06-12T13:01:09.9938661Z remote: Found 0 objects to send. (13 ms)
    2024-06-12T13:01:10.0683392Z From
    branch 148265f672cc561f002b7d10852dd40c0c8caf1f -> FETCH_HEAD
    2024-06-12T13:01:10.1318098Z ##[command]git checkout --progress --force refs/remotes/origin/148265f672cc561f002b7d10852dd40c0c8caf1f
    2024-06-12T13:01:10.6216272Z Note: switching to 'refs/remotes/origin/148265f672cc561f002b7d10852dd40c0c8caf1f'.
    2024-06-12T13:01:10.6221152Z
    2024-06-12T13:01:10.6224080Z You are in 'detached HEAD' state. You can look around, make experimental
    2024-06-12T13:01:10.6225196Z changes and commit them, and you can discard any commits you make in this
    2024-06-12T13:01:10.6226202Z state without impacting any branches by switching back to a branch.
    2024-06-12T13:01:10.6227038Z
    2024-06-12T13:01:10.6227710Z If you want to create a new branch to retain commits you create, you may
    2024-06-12T13:01:10.6228685Z do so (now or later) by using -c with the switch command. Example:
    2024-06-12T13:01:10.6229317Z
    2024-06-12T13:01:10.6230236Z git switch -c
    2024-06-12T13:01:10.6230799Z
    2024-06-12T13:01:10.6231641Z Or undo this operation with:
    2024-06-12T13:01:10.6232414Z
    2024-06-12T13:01:10.6233114Z git switch -
    2024-06-12T13:01:10.6234130Z
    2024-06-12T13:01:10.6234897Z Turn off this advice by setting config variable advice.detachedHead to false
    2024-06-12T13:01:10.6235426Z
    2024-06-12T13:01:10.6236363Z HEAD is now at 148265f Updated pmo_apps.yml
    2024-06-12T13:01:10.6441945Z ##[section]Finishing: Checkout pmo_dataplat@features/ARM_Project to s
    2024-06-12T13:01:10.6477485Z ##[section]Starting: publish_dev
    2024-06-12T13:01:10.6485838Z ==============================================================================
    2024-06-12T13:01:10.6485988Z Task : Azure PowerShell
    2024-06-12T13:01:10.6486084Z Description : Run a PowerShell script within an Azure environment
    2024-06-12T13:01:10.6486194Z Version : 5.241.0
    2024-06-12T13:01:10.6486267Z Author : Microsoft Corporation
    2024-06-12T13:01:10.6486375Z Help : https://aka.ms/azurepowershelltroubleshooting
    2024-06-12T13:01:10.6486479Z ==============================================================================
    2024-06-12T13:01:12.2101224Z Az version 3.1.0 not avaiable locally on the agent. Downloading dynamically.
    2024-06-12T13:01:13.2918562Z
    2024-06-12T13:01:13.2920210Z 7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
    2024-06-12T13:01:13.2920550Z
    2024-06-12T13:01:13.2920726Z Scanning the drive for archives:
    2024-06-12T13:01:13.2921135Z 1 file, 30900266 bytes (30 MiB)
    2024-06-12T13:01:13.2921211Z
    2024-06-12T13:01:13.2921367Z Extracting archive: C:\Modules\az_3.1.0.zip
    2024-06-12T13:01:15.8347342Z --
    2024-06-12T13:01:15.8348179Z Path = C:\Modules\az_3.1.0.zip
    2024-06-12T13:01:15.8348486Z Type = zip
    2024-06-12T13:01:15.8348730Z Physical Size = 30900266
    2024-06-12T13:01:15.8348886Z
    2024-06-12T13:01:15.8357796Z Everything is Ok
    2024-06-12T13:01:15.8358262Z
    2024-06-12T13:01:15.8358497Z Folders: 57
    2024-06-12T13:01:15.8358833Z Files: 617
    2024-06-12T13:01:15.8359059Z Size: 150619338
    2024-06-12T13:01:15.8359301Z Compressed: 30900266
    2024-06-12T13:01:15.9414720Z Generating script.
    2024-06-12T13:01:16.0053808Z ========================== Starting Command Output ===========================
    2024-06-12T13:01:16.0455898Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a_temp\c46e6a6e-e151-45f9-a635-23f4cc2105ee.ps1'"
    2024-06-12T13:01:17.6372485Z Added TLS 1.2 in session.
    2024-06-12T13:01:18.0391473Z ##[command]Import-Module -Name Az.Accounts -Global -PassThru -Force -RequiredVersion 2.2.5
    2024-06-12T13:01:18.9815117Z WARNING: Both Az and AzureRM modules were detected on this machine. Az and AzureRM modules cannot be imported in the
    2024-06-12T13:01:18.9816053Z same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can
    2024-06-12T13:01:18.9817851Z use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. If you are running in Azure
    2024-06-12T13:01:18.9818379Z Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found
    2024-06-12T13:01:18.9818851Z here: https://aka.ms/azps-migration-guide
    2024-06-12T13:01:20.1825822Z Imported module Az.Accounts, version: 2.2.5
    2024-06-12T13:01:20.2750733Z ##[command]Enable-AzureRmAlias -Scope Process
    2024-06-12T13:01:22.6862826Z ##[warning]Failed to Initialize Existing Az modules, fallback to installation
    2024-06-12T13:01:22.7760591Z ##[command]Import-Module -Name Az.Accounts -Global -PassThru -Force -RequiredVersion 2.2.5
    2024-06-12T13:01:22.9669485Z WARNING: Both Az and AzureRM modules were detected on this machine. Az and AzureRM modules cannot be imported in the
    2024-06-12T13:01:22.9670837Z same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can
    2024-06-12T13:01:22.9672211Z use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. If you are running in Azure
    2024-06-12T13:01:22.9673192Z Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found
    2024-06-12T13:01:22.9673766Z here: https://aka.ms/azps-migration-guide
    2024-06-12T13:01:23.1885846Z Imported module Az.Accounts, version: 2.2.5
    2024-06-12T13:01:23.2872850Z ##[command]Enable-AzureRmAlias -Scope Process
    2024-06-12T13:01:24.7754702Z ##[command]Install-Module -Name Az.Resources -RequiredVersion 6.15.1 -Force -AllowClobber -ErrorAction Stop -SkipPublisherCheck
    2024-06-12T13:01:45.5690389Z ##[command]Import-Module -Name Az.Resources -Global -PassThru -Force -RequiredVersion 6.15.1
    2024-06-12T13:01:46.0180585Z ##[error]
    This module requires Az.Accounts version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.
    Additionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error
    2024-06-12T13:01:46.0944251Z ##[error]Failed to Install Az modules
    2024-06-12T13:01:46.3037830Z ##[error]PowerShell exited with code '1'.
    2024-06-12T13:01:46.5348566Z Added TLS 1.2 in session.
    2024-06-12T13:01:56.9726973Z ##[command]Disconnect-AzAccount -Scope CurrentUser -ErrorAction Stop
    2024-06-12T13:01:57.3851946Z ##[command]Disconnect-AzAccount -Scope Process -ErrorAction Stop
    2024-06-12T13:01:57.4090578Z ##[command]Clear-AzContext -Scope Process -ErrorAction Stop
    2024-06-12T13:01:57.6873197Z ##[section]Finishing: publish_dev
    2024-06-12T13:01:57.6911968Z ##[section]Starting: Checkout pmo_dataplat@features/ARM_Project to s
    2024-06-12T13:01:57.6915803Z ==============================================================================
    2024-06-12T13:01:57.6916000Z Task : Get sources
    2024-06-12T13:01:57.6916072Z Description : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
    2024-06-12T13:01:57.6916199Z Version : 1.0.0
    2024-06-12T13:01:57.6916282Z Author : Microsoft
    2024-06-12T13:01:57.6916350Z Help : More Information
    2024-06-12T13:01:57.6916467Z ==============================================================================
    2024-06-12T13:01:58.1454203Z Cleaning any cached credential from repository: pmo_dataplat (Git)
    2024-06-12T13:01:58.1572791Z ##[section]Finishing: Checkout pmo_dataplat@features/ARM_Project to s
    2024-06-12T13:01:58.1705408Z ##[section]Starting: Finalize Job
    2024-06-12T13:01:58.1742467Z Cleaning up task key
    2024-06-12T13:01:58.1743897Z Start cleaning up orphan processes.
    2024-06-12T13:01:58.1762489Z ##[section]Finishing: Finalize Job
    2024-06-12T13:01:58.1834867Z ##[section]Finishing: publish_dev

Repro steps

No response

@v-schhabra
Copy link
Contributor

@Varaprasad91 Thanks! for reporting this issue. We are checking on it and will post the latest updates soon.

@v-schhabra
Copy link
Contributor

Hi @Varaprasad91
Could you please specify the latest version of AzurePowerShell in the task?
image

@kulkarnisuraj92
Copy link

Got same error with 3.1.0. Its now working with azurePowerShellVersion: LatestVersion.

@v-schhabra v-schhabra added the Area:RM RM task team label Jun 20, 2024
@v-schhabra
Copy link
Contributor

v-schhabra commented Jun 24, 2024

  • Install-Module Az.Accounts -Repository PSGallery

@kulkarnisuraj92 Could you please share the debug logs of the failed pipeline at v-schhabra@microsoft.com?

@yeonghunki
Copy link

2024-06-12T13:01:24.7754702Z ##[command]Install-Module -Name Az.Resources -RequiredVersion 6.15.1 -Force -AllowClobber -ErrorAction Stop -SkipPublisherCheck

I had a similar issue, before your task is called, Install old version of Az.Resources (e.g.3.2.1) which works with your Az.Accounts 2.2.5 version. This will keep AzurePowershell@5 from installing 6.15.1 version on the machine.

@v-schhabra
Copy link
Contributor

#20079
This is the PR created for the above issue. Will update here once the fixes are deployed to all the cx.

@v-schhabra
Copy link
Contributor

@kulkarnisuraj92 @Varaprasad91 Fix is deployed to all the rings with task version 5.242.0. Could you all please check and update if you are still facing the issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants