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

Migrate tasks from deprecated AzureRM powershell functions to AZ powershell functions #19801

Merged

Conversation

DmitriiBobreshev
Copy link
Contributor

@DmitriiBobreshev DmitriiBobreshev commented Apr 22, 2024

Task name:
"AzureCloudPowerShellDeploymentV1",
"AzureCloudPowerShellDeploymentV2",
"AzureFileCopyV1",
"AzureFileCopyV2",
"AzureFileCopyV3",
"AzureFileCopyV4",
"AzureFileCopyV5",
"AzureFileCopyV6",
"AzurePowerShellV2",
"AzurePowerShellV3",
"AzurePowerShellV4",
"AzurePowerShellV5",
"SqlAzureDacpacDeploymentV1",

Description:

  • Try to use current az, otherwise fallback to installation
  • Fixed package's unit-tests with enabled FF
  • Fixed tasks unit tests with enabled FF

Documentation changes required: N

Added unit tests: N

Attached related issue: WI 2073813

Checklist:

  • Task version was bumped - please check instruction how to do it
  • Checked that applied changes work as expected

@DmitriiBobreshev DmitriiBobreshev marked this pull request as ready for review April 23, 2024 11:22
@DmitriiBobreshev DmitriiBobreshev requested review from manolerazvan and a team as code owners April 23, 2024 11:22
@DmitriiBobreshev DmitriiBobreshev merged commit 36174ec into master Apr 23, 2024
11 checks passed
@DmitriiBobreshev DmitriiBobreshev deleted the user/v-bobreshev/add-fallback-for-azure-modules branch April 23, 2024 14:54
@Aaqibshaikh20
Copy link

Hello Team,
Did you please tell me how to resolve this issue.
Starting: Setup Azure AD App for SupportUsers

Task : Azure PowerShell
Description : Run a PowerShell script within an Azure environment
Version : 5.239.5
Author : Microsoft Corporation
Help : https://aka.ms/azurepowershelltroubleshooting

Generating script.
========================== Starting Command Output ===========================
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\a_temp\ac342356-0e48-44e1-8df4-84abbf833bb7.ps1'"
Added TLS 1.2 in session.
Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\Az.Accounts\2.17.0\Az.Accounts.psd1 -Global
##[warning]You're using AzureRM which will be retired soon, please schedule an update.
Clear-AzContext -Scope CurrentUser -Force -ErrorAction SilentlyContinue

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

Successfully merging this pull request may close these issues.

6 participants