-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing Azure and AzureRM 2.1.0 from hosted agent (#10787)
* Removing Azure and AzureRM 2.1.0 from hosted agent * adding PreJobExecutionAzurePowerShell.ps1 * Resolving ccheck * Resolving check * resolving check * resolving check * resolving check * resolving check * resolving test check * resolving check * checking * resolving check: * Increasing patch version * updating patch * Resolving comments * resolving check * resolving comments * resolving test check * resolving comments * correcting path * removing unnecessary space * changing minor and patch versions
- Loading branch information
1 parent
497023d
commit 245f88d
Showing
13 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Tasks/AzurePowerShellV4/PreJobExecutionAzurePowerShell.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
$azureRMModulePath = "C:\Modules\azurerm_2.1.0" | ||
$azureModulePath = "C:\Modules\azure_2.1.0" | ||
$azPSModulePath = $env:PSModulePath | ||
|
||
if ($azPSModulePath.split(";") -contains $azureRMModulePath) { | ||
$azPSModulePath = (($azPSModulePath).Split(";") | ? { $_ -ne $azureRMModulePath }) -join ";" | ||
write-verbose "$azureRMModulePath removed. Restart the prompt for the changes to take effect." | ||
} | ||
else { | ||
write-verbose "$azureRMModulePath is not present in $azPSModulePath" | ||
} | ||
|
||
if ($azPSModulePath.split(";") -contains $azureModulePath) { | ||
$azPSModulePath = (($azPSModulePath).Split(";") | ? { $_ -ne $azureModulePath }) -join ";" | ||
write-verbose "$azureModulePath removed. Restart the prompt for the changes to take effect." | ||
} | ||
else { | ||
write-verbose "$azureModulePath is not present in $azPSModulePath" | ||
} | ||
|
||
Set-VstsTaskVariable -Name 'AZ_PS_MODULE_PATH' -Value $azPSModulePath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters