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]: Azure file copy version 6.* is displaying some warnings #20414

Open
4 of 7 tasks
luislhg opened this issue Sep 11, 2024 · 1 comment
Open
4 of 7 tasks

[BUG]: Azure file copy version 6.* is displaying some warnings #20414

luislhg opened this issue Sep 11, 2024 · 1 comment

Comments

@luislhg
Copy link

luislhg commented Sep 11, 2024

New issue checklist

Task name

Azure file copy

Task version

6.245.1 (6.*)

Issue Description

When using task Azure file copy version 6.* (6.245.1) it is always displaying 3 warnings to the pipeline output.

image
The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

You're using Az.Storage version 7.1.0. The latest version of Az.Storage is 7.3.1. Upgrade your Az modules using the following commands:

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

Relevant log output

Starting: AzureBlob File Copy Server
==============================================================================
Task         : Azure file copy
Description  : Copy files to Azure Blob Storage or virtual machines
Version      : 6.245.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-file-copy
==============================================================================
Added TLS 1.2 in session.
Import-Module -Name C:\Modules\az_12.1.0\Az.Accounts\3.0.3\Az.Accounts.psd1 -Global
Enable-AzureRmAlias -Scope Process
Clear-AzContext -Scope CurrentUser -Force -ErrorAction SilentlyContinue
Clear-AzContext -Scope Process
Clear-AzConfig -DefaultSubscriptionForLogin
Connect-AzAccount 


Import-Module -Name C:\Modules\az_12.1.0\Az.Resources\7.2.0\Az.Resources.psd1 -Global
Import-Module -Name C:\Modules\az_12.1.0\Az.Storage\7.1.0\Az.Storage.psd1 -Global
Import-Module -Name C:\Modules\az_12.1.0\Az.Compute\8.1.0\Az.Compute.psd1 -Global
Import-Module -Name C:\Modules\az_12.1.0\Az.Network\7.8.0\Az.Network.psd1 -Global
##[warning]The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
##[warning]The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
##[warning]You're using Az.Storage version 7.1.0. The latest version of Az.Storage is 7.3.1. Upgrade your Az modules using the following commands:
  Update-Module Az.* -WhatIf    -- Simulate updating your Az modules.
  Update-Module Az.*            -- Update your Az modules

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

No response

@mrebuffet
Copy link

mrebuffet commented Sep 17, 2024

Same issue here. Looking at the history, this has been an issue on and off since AzureFileCopy@4.
I have been able to remove the last warning by adding this env option:

- task: AzureFileCopy@6
  displayName: 'Copy files to storage'
  inputs:
     SourcePath: ....
     [Other options]: ...
  env:
     RETIRE_AZURERM_POWERSHELL_MODULE: true

I can't find a way to remove the other 2 about Network.

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

2 participants