Skip to content

Commit

Permalink
Sync tools folder from main branch to generation branch (#25822)
Browse files Browse the repository at this point in the history
Co-authored-by: azurepowershell <[email protected]>
  • Loading branch information
azure-powershell-bot and azurepowershell authored Aug 15, 2024
1 parent 1cfb527 commit 5e7e471
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/Az/Az.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.3'; },
@{ModuleName = 'Az.Nginx'; RequiredVersion = '1.1.0'; },
@{ModuleName = 'Az.NotificationHubs'; RequiredVersion = '1.1.2'; },
@{ModuleName = 'Az.OperationalInsights'; RequiredVersion = '3.2.1'; },
@{ModuleName = 'Az.Oracle'; RequiredVersion = '0.1.0'; },
@{ModuleName = 'Az.PolicyInsights'; RequiredVersion = '1.6.5'; },
@{ModuleName = 'Az.PostgreSql'; RequiredVersion = '1.1.1'; },
@{ModuleName = 'Az.PowerBIEmbedded'; RequiredVersion = '2.0.0'; },
Expand Down
11 changes: 11 additions & 0 deletions tools/NugetAuth/OneBranchNuget.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<!-- Do not add any additional feeds if new packages are needed they need to come from nuget.org or our azure-sdk-for-net DevOps feed -->
<add key="azure-powershell-onebranch" value="https://pkgs.dev.azure.com/azclitools/public/_packaging/azure-powershell-onebranch/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
</disabledPackageSources>
</configuration>
4 changes: 4 additions & 0 deletions tools/NugetAuth/ReplaceOneBranchConfig.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$oneBranchConfigPath = Join-Path $PSScriptRoot 'OneBranchNuget.Config'
$devConfigPath = Join-Path ($PSScriptRoot | Split-path -Parent | Split-path -Parent) 'Nuget.Config'

Get-Content $oneBranchConfigPath -Raw | Set-Content $devConfigPath -Force
10 changes: 10 additions & 0 deletions tools/NugetAuth/SetNugetCredentialProvider.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$scriptPath = Join-Path $PSScriptRoot installcredprovider.ps1
New-Item -ItemType File -Path $scriptPath
(Invoke-WebRequest -Uri "https://raw.githubusercontent.com/microsoft/artifacts-credprovider/master/helpers/installcredprovider.ps1").Content | Set-Content $scriptPath -force

. $scriptPath -AddNetfx -Force

Remove-Item $scriptPath -Force

$configScriptPath = Join-Path $PSScriptRoot 'ReplaceOneBranchConfig.ps1'
. $configScriptPath
1 change: 1 addition & 0 deletions tools/VersionController/MinimalVersion.csv
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
"Module","Minimal Version"
"Az.Oracle","1.0.0"

0 comments on commit 5e7e471

Please sign in to comment.