Skip to content

Commit 859af6b

Browse files
committed
Merge branch 'main' into sync-main
2 parents cbb2a2d + 63a6804 commit 859af6b

File tree

9 files changed

+26
-42
lines changed

9 files changed

+26
-42
lines changed

.azure-pipelines/test-coverage.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,10 @@ jobs:
111111
pwsh: true
112112
targetType: inline
113113
script: |
114+
git checkout -b testcoverage-baseline
114115
$blDir = "./tools/TestFx/Coverage"
115116
$blCsv = Join-Path -Path $blDir -ChildPath "Baseline.csv"
116-
if (Test-Path -Path $blCsv) {
117-
Remove-Item -Path $blCsv -Force
118-
}
119-
120-
git checkout -b testcoverage-baseline
121-
Copy-Item -Path "$(Pipeline.Workspace)/artifacts/TestCoverageAnalysis/Results/Baseline.csv" -Destination $blDir
117+
Copy-Item -Path "$(Pipeline.Workspace)/artifacts/TestCoverageAnalysis/Results/Baseline.csv" -Destination $blDir -Force
122118
git config user.email "[email protected]"
123119
git config user.name "azure-powershell-bot"
124120
git add $blCsv

src/Aks/Aks.Test/LiveTests/TestLiveScenarios.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ Invoke-LiveTestScenario -Name "Test_AKS_CURD" -Description "Test AKS Cluster CRU
9191
Write-Host "##[section]Finished updating Aks cluster : Set-AzAksCluster"
9292

9393
Assert-AreEqual 4 $cluster.AgentPoolProfiles[0].Count
94-
Assert-AreEqual "Basic" $cluster.Sku.Name
95-
Assert-AreEqual "Paid" $cluster.Sku.Tier
94+
#Assert-AreEqual "Basic" $cluster.Sku.Name
95+
#Assert-AreEqual "Paid" $cluster.Sku.Tier
9696

9797
# step 3: create the second node pool
9898
$pool1Name = "default"

src/Compute/Compute/help/New-AzGalleryImageVersion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ $galleryImageDefinitionName = "myImage"
112112
$galleryImageVersionName = "1.0.0"
113113
$location = "eastus"
114114
$osSnapshot = @{Source = @{Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mySnapshotRG/providers/Microsoft.Compute/snapshots/myOSSnapshot" }}
115-
New-AzGalleryImageVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryImageDefinitionName $galleryImageDefinitionName -Name $galleryImageVersionName -Location $location -OSDiskImage $osDisk
115+
New-AzGalleryImageVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryImageDefinitionName $galleryImageDefinitionName -Name $galleryImageVersionName -Location $location -OSDiskImage $osSnapshot
116116
```
117117

118118
Create an image version from a disk snapshot

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added warning messages for an upcoming cmdlet breaking change
22+
- `New-AzStorageAccount`
23+
- `Set-AzStorageAccount`
2124

2225
## Version 5.5.0
2326
* Supported create storage account with DnsEndpointType

src/Storage/Storage.Management/StorageAccount/NewAzureStorageAccount.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System.Collections;
16-
using System.Management.Automation;
15+
using Microsoft.Azure.Commands.Management.Storage.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1818
using Microsoft.Azure.Management.Storage;
1919
using Microsoft.Azure.Management.Storage.Models;
20-
using StorageModels = Microsoft.Azure.Management.Storage.Models;
21-
using Microsoft.Azure.Commands.Management.Storage.Models;
22-
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2321
using System;
22+
using System.Collections;
2423
using System.Collections.Generic;
25-
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
24+
using System.Management.Automation;
25+
using StorageModels = Microsoft.Azure.Management.Storage.Models;
2626

2727
namespace Microsoft.Azure.Commands.Management.Storage
2828
{
@@ -286,6 +286,7 @@ public bool EnableAzureActiveDirectoryDomainServicesForFile
286286
}
287287
private bool? enableAzureActiveDirectoryDomainServicesForFile = null;
288288

289+
[CmdletParameterBreakingChange("EnableLargeFileShare", ChangeDescription = "EnableLargeFileShare parameter will be deprecated in a future release.")]
289290
[Parameter(Mandatory = false, HelpMessage = "Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047")]
290291
public SwitchParameter EnableLargeFileShare { get; set; }
291292

src/Storage/Storage.Management/StorageAccount/SetAzureStorageAccount.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System.Collections;
16-
using System.Collections.Generic;
17-
using System.Management.Automation;
15+
using Microsoft.Azure.Commands.Management.Storage.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1817
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1918
using Microsoft.Azure.Management.Storage;
2019
using Microsoft.Azure.Management.Storage.Models;
21-
using StorageModels = Microsoft.Azure.Management.Storage.Models;
22-
using Microsoft.Azure.Commands.Management.Storage.Models;
23-
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2421
using System;
22+
using System.Collections;
23+
using System.Collections.Generic;
24+
using System.Management.Automation;
25+
using StorageModels = Microsoft.Azure.Management.Storage.Models;
2526

2627
namespace Microsoft.Azure.Commands.Management.Storage
2728
{
@@ -245,6 +246,7 @@ public bool EnableAzureActiveDirectoryDomainServicesForFile
245246
}
246247
private bool? enableAzureActiveDirectoryDomainServicesForFile = null;
247248

249+
[CmdletParameterBreakingChange("EnableLargeFileShare", ChangeDescription = "EnableLargeFileShare parameter will be deprecated in a future release.")]
248250
[Parameter(Mandatory = false, HelpMessage = "Indicates whether or not the storage account can support large file shares with more than 5 TiB capacity. Once the account is enabled, the feature cannot be disabled. Currently only supported for LRS and ZRS replication types, hence account conversions to geo-redundant accounts would not be possible. Learn more in https://go.microsoft.com/fwlink/?linkid=2086047")]
249251
public SwitchParameter EnableLargeFileShare { get; set; }
250252

src/Websites/Websites/Cmdlets/DeploymentSlots/SetAzureWebAppSlot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class SetAzureWebAppSlotCmdlet : WebAppSlotBaseCmdlet
6565
[ValidateNotNullOrEmpty]
6666
public Hashtable AppSettings { get; set; }
6767

68-
[Parameter(Position = 11, Mandatory = false, HelpMessage = "Web app connection strings")]
68+
[Parameter(Position = 11, Mandatory = false, HelpMessage = "Web app connection strings, Example: $connStrings = @{ConnectionStringName = @{ Type = \"MySql\"; Value = \"TestValue\"}}")]
6969
[ValidateNotNullOrEmpty]
7070
public Hashtable ConnectionStrings { get; set; }
7171

src/Websites/Websites/help/Set-AzWebAppSlot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Accept wildcard characters: False
180180
```
181181
182182
### -ConnectionStrings
183-
Connection Strings HashTable
183+
Connection Strings HashTable. Example: `$connStrings = @{ConnectionStringName = @{ Type = "MySql"; Value = "TestValue"}}`
184184

185185
```yaml
186186
Type: System.Collections.Hashtable

tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/CIFilterTask.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -452,25 +452,7 @@ public override bool Execute()
452452
{
453453
return false;
454454
}
455-
else if (FilesChanged.Length >= OCTOKIT_CHANGED_FILE_LIMIT)
456-
{
457-
var selectedModuleList = GetSelectedModuleList();
458-
Dictionary<string, HashSet<string>> influencedModuleInfo = new Dictionary<string, HashSet<string>>
459-
{
460-
[BUILD_PHASE] = new HashSet<string>(selectedModuleList),
461-
[TEST_PHASE] = new HashSet<string>(selectedModuleList)
462-
};
463-
foreach (var analysisPhase in ANALYSIS_PHASE_LIST)
464-
{
465-
influencedModuleInfo.Add(analysisPhase, new HashSet<string>(selectedModuleList));
466-
}
467-
FilterTaskResult.PhaseInfo = CalculateCsprojForBuildAndTest(influencedModuleInfo, csprojMap);
468-
return true;
469-
}
470-
else
471-
{
472-
return ProcessFileChanged(csprojMap);
473-
}
455+
return ProcessFileChanged(csprojMap);
474456
}
475457
return true;
476458
}

0 commit comments

Comments
 (0)