Skip to content

Commit ea1dfec

Browse files
authored
Merge pull request #26720 from Azure/main
sync with main branch
2 parents 3413229 + 38c727b commit ea1dfec

File tree

4,014 files changed

+654184
-196338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,014 files changed

+654184
-196338
lines changed

.azure-pipelines/code-gen.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ jobs:
2121
pool: pool-windows-2019
2222
steps:
2323
- checkout: self
24-
persistCredentials: true
25-
- template: util/get-github-token-steps.yml
24+
- template: util/get-github-pat-steps.yml
2625
- task: NodeTool@0
2726
displayName: Use Node 14.15.5
2827
inputs:

.azure-pipelines/security-tools.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- checkout: self
2121
fetchTags: false
22-
- template: util/get-github-pat-steps.yml
22+
- template: util/get-pr-changed-files.yml
2323
- task: PowerShell@2
2424
displayName: Install platyPS
2525
inputs:
@@ -43,8 +43,6 @@ jobs:
4343
inputs:
4444
targetType: inline
4545
script: dotnet msbuild build.proj /t:"Build;GenerateHelp" /p:"PullRequestNumber=$(System.PullRequest.PullRequestNumber);IsSecurityCheck=true"
46-
env:
47-
OCTOKITPAT: $(GithubToken)
4846
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
4947
displayName: Run CredScan
5048
inputs:

.azure-pipelines/util/build-steps.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ parameters:
55

66
steps:
77
- checkout: self
8-
persistCredentials: true
9-
- template: get-github-token-steps.yml
8+
- template: get-pr-changed-files.yml
109
- task: NodeTool@0
1110
condition: eq(variables.IsGenerateBased, true)
1211
displayName: Install Autorest
@@ -39,7 +38,6 @@ steps:
3938
custom: msbuild
4039
arguments: 'build.proj /t:Build /p:Configuration=${{ parameters.configuration }};TestFramework=${{ parameters.testFramework }};PullRequestNumber=$(System.PullRequest.PullRequestNumber)'
4140
env:
42-
OCTOKITPAT: $(GithubToken)
4341
PowerShellPlatform: ${{ parameters.powerShellPlatform }}
4442

4543
- task: PowerShell@2

.azure-pipelines/util/get-github-token-steps.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
steps:
2+
- task: PowerShell@2
3+
displayName: List PR Changed Files
4+
inputs:
5+
targetType: inline
6+
pwsh: true
7+
script: |
8+
# refer to https://learn.microsoft.com/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#system-variables-devops-services
9+
# get the target branch name
10+
$targetBranch = "$(System.PullRequest.TargetBranch)"
11+
# fetch the targetBranch from origin to local branch and rename the branch to 'origin/base'
12+
git fetch --no-tags origin "${targetBranch}:origin/base"
13+
# refer to https://git-scm.com/docs/git-diff
14+
# compare the pr and targetBranch branch, get the changed file list
15+
# diff-filter options are ACDMRT, which are: Added, Copied, Deleted, Modified, Renamed, Changed
16+
$changedFiles = git --no-pager diff --name-only --diff-filter=ACDMRT origin/base -- .
17+
Write-Host "Total updated files:" $changedFiles.Count
18+
Write-Host "All Updated files:"
19+
$changedFiles | Foreach-Object {Write-Host $_}
20+
$RepoArtifacts = 'artifacts'
21+
if(-not (Test-Path $RepoArtifacts)){
22+
New-Item -ItemType Directory -Name $RepoArtifacts
23+
}
24+
$changedFiles | Out-File $RepoArtifacts/FilesChanged.txt

ChangeLog.md

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,111 @@
1+
## 13.0.0 - November 2024
2+
#### Az.Accounts 4.0.0
3+
* [Breaking Change] Removed alias 'Resolve-Error' for the cmdlet 'Resolve-AzError'.
4+
* Updated the 'Get-AzAccessToken' breaking change warning message.
5+
* Added Long Running Operation Support for Invoke-AzRest command.
6+
7+
#### Az.App 2.0.0
8+
* The parameters of the 'New-AzContainerApp', 'New-AzContainerAppJob', 'Update-AzContainerApp', 'Update-AzContainerAppJob' commands have changed.
9+
* 'IdentityType' has been removed. 'EnableSystemAssignedIdentity' is used to enable/disable system-assigned identities.
10+
* The type of 'UserAssignedIdentity' is simplified to an array of strings that is used to specify the user's assigned identity.
11+
12+
#### Az.Compute 9.0.0
13+
* Made '-PublicIpSku' parameter Standard by default in 'New-AzVM'
14+
15+
#### Az.ConnectedMachine 1.1.0
16+
* Updated preview version api of HybridCompute to 2024-07-31
17+
18+
#### Az.ContainerInstance 4.1.0
19+
* Added ContainerGroupProfileId ContainerGroupProfileRevision StandbyPoolProfileFailContainerGroupCreateOnReuseFailure StandbyPoolProfileId to Container Group properties.
20+
* Added ConfigMapKeyValuePair to Container object properties.
21+
* Added new cmdlet to define container without using the preset default properties New-AzContainerInstanceNoDefaultObject
22+
* Added new cmdlets for Container Group Profile - Get-AzContainerInstanceContainerGroupProfile, New-AzContainerInstanceContainerGroupProfile, Remove-AzContainerInstanceContainerGroupProfile, Update-AzContainerInstanceContainerGroupProfile, Get-AzContainerInstanceContainerGroupProfileRevision
23+
24+
#### Az.DesktopVirtualization 5.4.0
25+
* Added top level arm object for app attach packages
26+
27+
#### Az.DevCenter 2.0.0
28+
* Updated data plane to 2024-05-01-preview and removed deprecation warnings.
29+
30+
#### Az.Dns 1.3.0
31+
* Added 'NAPTR' record type support in cmdlets.
32+
33+
#### Az.DnsResolver 1.1.0
34+
* Added 4 new DNS Resolver Policy (DNS Security Policy) resources into the cmdlets
35+
- DNS Resolver Policy (DNS Security Policy)
36+
- DNS Security Rule
37+
- DNS Resolver Policy Link (DNS Security Policy Link)
38+
- DNS Resolver Domain List
39+
40+
#### Az.ElasticSan 1.2.0
41+
* Removed breaking change warnings for MI best practices
42+
- 'New-AzElasticSanVolumeGroup'
43+
- 'Update-AzElasticSanVolumeGroup'
44+
45+
#### Az.HDInsight 6.3.0
46+
* Changed the type of parameter '-IdentityId' in command 'Update-AzHDInsightCluster' from 'string' to 'string[]'.
47+
48+
#### Az.KeyVault 6.3.0
49+
* Added Secret URI Parameter to Key Vault Secret Cmdlets [#23053]
50+
51+
#### Az.Monitor 6.0.0
52+
* The parameters of the 'New-AzDataCollectionEndpoint', 'New-AzDataCollectionRule', 'Update-AzDataCollectionEndpoint', 'Update-AzDataCollectionRule' commands have changed.
53+
* 'IdentityType' has been removed. 'EnableSystemAssignedIdentity' is used to enable/disable system-assigned identities.
54+
* The type of 'UserAssignedIdentity' is simplified to an array of strings that is used to specify the user's assigned identity.
55+
56+
#### Az.Network 7.11.0
57+
* Updated Device Update Private Link provider configuration
58+
- Updated Microsoft.DeviceUpdate/accounts API version to 2023-07-01
59+
60+
#### Az.RecoveryServices 7.3.0
61+
* Added CRR support for southeastus, westus3 regions.
62+
* Added support for enabling Disk access settings for managed VM restores.
63+
64+
#### Az.Resources 7.7.0
65+
* Updated Resources SDK to 2024-07-01.
66+
67+
#### Az.Sql 6.0.0
68+
* Added 'Start-AzSqlInstanceLinkFailover' cmdlet for Managed Instance Link.
69+
* Updated 'New-AzSqlInstanceLink' with new input parameters
70+
- Added 'DistributedAvailabilityGroupName', 'FailoverMode', 'InstanceLinkRole', 'SeedingMode'
71+
- Renamed 'SecondaryAvailabilityGroupName' -> 'InstanceAvailabilityGroupName'
72+
'SourceEndpoint' -> 'PartnerEndpoint'
73+
'PrimaryAvailabilityGroupName' -> 'PartnerAvailabilityGroupName'
74+
- 'TargetDatabase' -> 'Database', parameter type is changed from string to string[].
75+
* Updated 'AzureSqlManagedInstanceLinkModel' that is a return type of 'New-AzSqlInstanceLink', 'Get-AzSqlInstanceLink', 'Update-AzSqlInstanceLink' ,'Remove-AzSqlInstanceLink'
76+
* Added new optional parameter for 'New-AzSqlDatabaseSecondary' to support cross-subscription geo-replication.
77+
78+
#### Az.Storage 8.0.0
79+
* When downloading blob with parameter AbsoluteUri (alias Uri, BlobUri), not allow input parameter Context together.
80+
- 'Get-AzStorageBlobContent'
81+
* Migrated following Azure Storage File dataplane cmdlets from 'Microsoft.Azure.Storage.File' to 'Azure.Storage.Files.Shares'
82+
- 'Close-AzStorageFileHandle'
83+
- 'Get-AzStorageFile'
84+
- 'Get-AzStorageFileContent'
85+
- 'Get-AzStorageFileCopyState'
86+
- 'Get-AzStorageFileHandle'
87+
- 'Get-AzStorageShare'
88+
- 'Get-AzStorageShareStoredAccessPolicy'
89+
- 'New-AzStorageDirectory'
90+
- 'New-AzStorageShare'
91+
- 'New-AzStorageFileSASToken'
92+
- 'New-AzStorageShareSASToken'
93+
- 'New-AzStorageShareStoredAccessPolicy'
94+
- 'Remove-AzStorageDirectory'
95+
- 'Remove-AzStorageFile'
96+
- 'Remove-AzStorageShare'
97+
- 'Remove-AzStorageShareStoredAccessPolicy'
98+
- 'Rename-AzStorageDirectory'
99+
- 'Rename-AzStorageFile'
100+
- 'Set-AzStorageFileContent'
101+
- 'Set-AzStorageShareQuota'
102+
- 'Set-AzStorageShareStoredAccessPolicy'
103+
- 'Start-AzStorageFileCopy'
104+
- 'Stop-AzStorageFileCopy'
105+
106+
### Thanks to our community contributors
107+
* @sidesw1pe, Update Copy-AzRecoveryServicesVault.md (#26570)
108+
1109
## 12.5.0 - October 2024
2110
#### Az.Accounts 3.0.5
3111
* Fixed the issue that 'Export-AzSshConfig' and 'Enter-AzVM' from Az.Ssh are not able to use when WAM is enabled.

NuGet.Config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
</configuration>
1414

1515

16+
17+
18+
19+

build.proj

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
<UsingTask Condition="$(OnPremiseBuild)" TaskName="CorporateValidation" AssemblyFile="$(CIToolsPath)/Microsoft.WindowsAzure.Tools.Build.Tasks.OnPremise.dll" />
107107
<Import Condition="$(OnPremiseBuild)" Project="$(CIToolsPath)/Microsoft.WindowsAzure.Build.OnPremise.msbuild" />
108108
<UsingTask TaskName="ESRPSignTask" AssemblyFile="$(CISignRepoPath)/tools/sdkbuildtools/tasks/MS.Az.Sdk.OnPremise.Build.Tasks.dll" />
109-
<UsingTask TaskName="FilesChangedTask" AssemblyFile="$(RepoArtifacts)Microsoft.Azure.Build.Tasks/Microsoft.Azure.Build.Tasks.dll" />
110109
<UsingTask TaskName="CIFilterTask" AssemblyFile="$(RepoArtifacts)Microsoft.Azure.Build.Tasks/Microsoft.Azure.Build.Tasks.dll" />
111110

112111
<Target Name="Clean">
@@ -131,16 +130,11 @@
131130
<!-- Build the Microsoft.Azure.Build.Tasks project -->
132131
<Exec Command="dotnet publish $(RepoTools)BuildPackagesTask/Microsoft.Azure.Build.Tasks/Microsoft.Azure.Build.Tasks.csproj -c $(Configuration)" />
133132

134-
<!-- Get all of the files changed in the given pull request -->
135-
<FilesChangedTask RepositoryOwner="Azure" RepositoryName="azure-powershell" PullRequestNumber="$(PullRequestNumber)" OutputFile="$(RepoArtifacts)FilesChanged.txt">
136-
<Output TaskParameter="FilesChanged" ItemName="FilesChanged" />
137-
</FilesChangedTask>
138-
139133
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;$(RepoTools)PrepareAutorestModule.ps1&quot;" Condition="'$(IsGenerateBased)' == 'true'"/>
140134
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;$(RepoTools)CreateFilterMappings.ps1&quot;" />
141135
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;$(RepoTools)PrepareForSecurityCheck.ps1&quot;" Condition="'$(IsSecurityCheck)' == 'true'"/>
142136

143-
<CIFilterTask FilesChanged="@(FilesChanged)" Mode="$(Configuration)" CsprojMapFilePath="./CsprojMappings.json">
137+
<CIFilterTask FilesChangedFile="$(RepoArtifacts)FilesChanged.txt" Mode="$(Configuration)" CsprojMapFilePath="./CsprojMappings.json">
144138
<Output TaskParameter="BuildCsprojList" ItemName="BuildCsprojList" />
145139
<Output TaskParameter="TestCsprojList" ItemName="TestCsprojList" />
146140
<Output TaskParameter="SubTasks" PropertyName="SubTasks" />
@@ -341,4 +335,4 @@ $(RepoArtifacts)$(Configuration)/**/Microsoft.Azure.PowerShell.Authenticators.dl
341335
<SetEnvVar EnvName="SignedMsiDir" EnvValue="$(SignedOutputRootDir)" />
342336
</Target>
343337

344-
</Project>
338+
</Project>

0 commit comments

Comments
 (0)