Skip to content

Commit 56cf5ca

Browse files
authored
Merge pull request #25946 from yifanz7/mergestorage
[Storage][Do Not Squash] Merge recent changes from main to Az.Storage-preview
2 parents 23c384f + 905231c commit 56cf5ca

File tree

2,398 files changed

+237705
-37464
lines changed

Some content is hidden

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

2,398 files changed

+237705
-37464
lines changed

.azure-pipelines/daily-build.yml

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
script: |
5959
$command = "`$PSVersionTable `
6060
Get-PSRepository `
61-
./tools/RunVersionController.ps1 -Release 'Daily Build $(today)' `
61+
./tools/RunVersionController.ps1 -Release 'Daily Build $(today)' -ReleaseType $(ReleaseType)`
6262
Exit"
6363
dotnet tool run pwsh -c $command
6464
@@ -77,20 +77,15 @@ jobs:
7777
arguments: 'build.proj /t:Build /p:Configuration=Release;TurnOnTestCoverage=true;ModifiedModuleBuild=true'
7878

7979
- task: EsrpCodeSigning@4
80+
displayName: "Sign Dll [Authenticode + Strong Name]"
8081
inputs:
8182
ConnectedServiceName: '$(signServiceConnection)'
8283
FolderPath: 'artifacts'
8384
Pattern: |
84-
Release/**/Microsoft*Azure*PowerShell*Cmdlets*.dll
85-
Release/**/Microsoft.Azure.PowerShell.*.Sdk.dll
85+
Release/**/Microsoft*Azure*PowerShell*.dll
8686
Release/**/Az.*.private.dll
87-
Release/**/Microsoft.Azure.PowerShell.AssemblyLoading.dll
88-
Release/**/Microsoft.Azure.PowerShell.Authentication.dll
89-
Release/**/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll
90-
Release/**/Microsoft.Azure.PowerShell.Authenticators.dll
91-
Release/**/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll
9287
Release/**/Microsoft.Azure.Commands.*.AlcWrapper.dll
93-
!Release/**/Microsoft*Azure*PowerShell*Cmdlets*.Test.dll
88+
InstallerChecks.dll
9489
UseMinimatch: true
9590
signConfigType: 'inlineSignParams'
9691
inlineOperation: |
@@ -133,7 +128,42 @@ jobs:
133128
SessionTimeout: '60'
134129
MaxConcurrency: '50'
135130
MaxRetryAttempts: '5'
136-
131+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@4
132+
displayName: "Sign Scripts [Authenticode]"
133+
inputs:
134+
ConnectedServiceName: '$(signServiceConnection)'
135+
FolderPath: 'artifacts'
136+
Pattern: |
137+
Release/**/*.ps1
138+
Release/**/*.psm1
139+
Release/**/*.ps1xml
140+
Release/**/*.js
141+
InstallModule.ps1
142+
UseMinimatch: true
143+
signConfigType: inlineSignParams
144+
inlineOperation: |
145+
[
146+
{
147+
"KeyCode": "CP-230012",
148+
"OperationCode": "SigntoolSign",
149+
"Parameters": {
150+
"OpusName": "Microsoft",
151+
"OpusInfo": "http://www.microsoft.com",
152+
"FileDigest": "/fd \"SHA256\"",
153+
"PageHash": "/NPH",
154+
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
155+
},
156+
"ToolName": "sign",
157+
"ToolVersion": "1.0"
158+
},
159+
{
160+
"KeyCode": "CP-230012",
161+
"OperationCode": "SigntoolVerify",
162+
"Parameters": {},
163+
"ToolName": "sign",
164+
"ToolVersion": "1.0"
165+
}
166+
]
137167
- task: EsrpCodeSigning@4
138168
displayName: 'Sign 3rd Party [Strong Name]'
139169
inputs:

.github/policies/resourceManagement.yml

Lines changed: 76 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,24 @@ configuration:
483483
- amanohar
484484
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
485485
assignMentionees: False
486+
- if:
487+
- or:
488+
- labelAdded:
489+
label: Service Attention
490+
- labelAdded:
491+
label: ASTRO
492+
- hasLabel:
493+
label: Service Attention
494+
- hasLabel:
495+
label: ASTRO
496+
then:
497+
- mentionUsers:
498+
mentionees:
499+
- Reshmi-Sriram
500+
- banggaurav
501+
- charanjeet2008
502+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
503+
assignMentionees: False
486504
- if:
487505
- or:
488506
- labelAdded:
@@ -1204,6 +1222,22 @@ configuration:
12041222
- akashkeshari
12051223
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
12061224
assignMentionees: False
1225+
- if:
1226+
- or:
1227+
- labelAdded:
1228+
label: Service Attention
1229+
- labelAdded:
1230+
label: ConnectedMachine
1231+
- hasLabel:
1232+
label: Service Attention
1233+
- hasLabel:
1234+
label: ConnectedMachine
1235+
then:
1236+
- mentionUsers:
1237+
mentionees:
1238+
- raghushantha
1239+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
1240+
assignMentionees: False
12071241
- if:
12081242
- or:
12091243
- labelAdded:
@@ -1565,6 +1599,8 @@ configuration:
15651599
- mentionUsers:
15661600
mentionees:
15671601
- edwinc
1602+
- mvvsubbu
1603+
- v-vyedavelly
15681604
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
15691605
assignMentionees: False
15701606
- if:
@@ -1901,6 +1937,22 @@ configuration:
19011937
- arpit-gagneja
19021938
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
19031939
assignMentionees: False
1940+
- if:
1941+
- or:
1942+
- labelAdded:
1943+
label: Service Attention
1944+
- labelAdded:
1945+
label: ElasticSan
1946+
- hasLabel:
1947+
label: Service Attention
1948+
- hasLabel:
1949+
label: ElasticSan
1950+
then:
1951+
- mentionUsers:
1952+
mentionees:
1953+
- blueww
1954+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
1955+
assignMentionees: False
19041956
- if:
19051957
- or:
19061958
- labelAdded:
@@ -2642,22 +2694,6 @@ configuration:
26422694
- rastala
26432695
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
26442696
assignMentionees: False
2645-
- if:
2646-
- or:
2647-
- labelAdded:
2648-
label: Service Attention
2649-
- labelAdded:
2650-
label: Mobile Engagement
2651-
- hasLabel:
2652-
label: Service Attention
2653-
- hasLabel:
2654-
label: Mobile Engagement
2655-
then:
2656-
- mentionUsers:
2657-
mentionees:
2658-
- kpiteira
2659-
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
2660-
assignMentionees: False
26612697
- if:
26622698
- or:
26632699
- labelAdded:
@@ -3218,6 +3254,25 @@ configuration:
32183254
- AzmonLogA
32193255
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
32203256
assignMentionees: False
3257+
- if:
3258+
- or:
3259+
- labelAdded:
3260+
label: Service Attention
3261+
- labelAdded:
3262+
label: Oracle
3263+
- hasLabel:
3264+
label: Service Attention
3265+
- hasLabel:
3266+
label: Oracle
3267+
then:
3268+
- mentionUsers:
3269+
mentionees:
3270+
- v-rvilathurs
3271+
- v-jamcheung
3272+
- v-eelhomsi
3273+
- v-adhenry
3274+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
3275+
assignMentionees: False
32213276
- if:
32223277
- or:
32233278
- labelAdded:
@@ -3265,8 +3320,8 @@ configuration:
32653320
- mentionUsers:
32663321
mentionees:
32673322
- gbowerman
3268-
- sr-msft
3269-
- niklarin
3323+
- jasomaning
3324+
- nachoalonsoportillo
32703325
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
32713326
assignMentionees: False
32723327
- if:
@@ -3282,8 +3337,9 @@ configuration:
32823337
then:
32833338
- mentionUsers:
32843339
mentionees:
3285-
- daeunyim
3286-
- rajsell
3340+
- gbowerman
3341+
- jasomaning
3342+
- nachoalonsoportillo
32873343
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
32883344
assignMentionees: False
32893345
- if:

docker/Dockerfile-alpine-3.16

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/ADDomainServices/ADDomainServices/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed secrets exposure in example documentation.
2122

2223
## Version 0.2.1
2324
* Introduced secrets detection feature to safeguard sensitive data.

src/Accounts/Accounts/Accounts.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<PsModuleName>Accounts</PsModuleName>
@@ -37,6 +37,7 @@
3737
<ItemGroup>
3838
<None Update="StartupScripts\AzError.ps1" CopyToOutputDirectory="PreserveNewest" />
3939
<None Update="StartupScripts\InitializeAssemblyResolver.ps1" CopyToOutputDirectory="PreserveNewest" />
40+
<None Update="StartupScripts\InitializePSStyle.ps1" CopyToOutputDirectory="PreserveNewest" />
4041
</ItemGroup>
4142
<ItemGroup>
4243
<None Update="PostImportScripts\LoadAuthenticators.ps1" CopyToOutputDirectory="PreserveNewest" />

src/Accounts/Accounts/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Added customized UserAgent for ARM telemetry.
23+
* Fixed secrets exposure in example documentation.
24+
* Updated `Connect-AzAccount` to fix a display issue in PowerShell ISE [#24556].
25+
* Updated the reference of Azure PowerShell Common to 1.3.100-preview.
2226
* Used Azure.Identity and Azure.Core directly for client assertion [#22628].
2327

2428
## Version 3.0.3

src/Accounts/Accounts/CommonModule/TelemetryProvider.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
using System.Globalization;
2929
using System.Linq;
3030
using System.Management.Automation;
31+
using System.Net.Http.Headers;
3132

3233
namespace Microsoft.Azure.Commands.Common
3334
{
@@ -158,6 +159,18 @@ public virtual AzurePSQoSEvent CreateQosEvent(InvocationInfo invocationInfo, str
158159
PSHostName = AzurePSCmdlet.PSHostName,
159160
};
160161

162+
163+
if (qosEvent.UserAgent == null)
164+
{
165+
qosEvent.UserAgent = new ProductInfoHeaderValue("AzurePowershell", string.Format("Az{0}", "0.0.0")).ToString();
166+
string hostEnv = Environment.GetEnvironmentVariable("AZUREPS_HOST_ENVIRONMENT");
167+
if (!String.IsNullOrWhiteSpace(hostEnv))
168+
{
169+
hostEnv = hostEnv.Trim().Replace("@", "_").Replace("/", "_");
170+
qosEvent.UserAgent += string.Format(" {0}", hostEnv);
171+
}
172+
}
173+
161174
if (invocationInfo != null)
162175
{
163176
qosEvent.Parameters = string.Join(" ",

src/Accounts/Accounts/CommonModule/UserAgent.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ public UserAgent(InvocationInfo invocation)
4848
{
4949
list.Add(new ProductInfoHeaderValue(moduleName, moduleVersion));
5050
}
51+
try
52+
{
53+
string hostEnv = Environment.GetEnvironmentVariable("AZUREPS_HOST_ENVIRONMENT");
54+
if (!String.IsNullOrWhiteSpace(hostEnv))
55+
{
56+
hostEnv = hostEnv.Trim().Replace("@", "_").Replace("/", "_");
57+
list.Add(new ProductInfoHeaderValue(hostEnv, ""));
58+
}
59+
}
60+
catch (Exception )
61+
{
62+
// ignore it
63+
}
64+
5165
_userAgents = list.ToArray();
5266
}
5367

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
try{
2+
Write-Debug "Initializing PSStyle."
3+
[Microsoft.WindowsAzure.Commands.Common.PSStyle]::Initialize($Host)
4+
}
5+
catch{
6+
Write-Warning $_
7+
}

src/Accounts/Accounts/Utilities/CommandMappings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,9 +2983,12 @@
29832983
"Add-AzHDInsightSecurityProfile": {},
29842984
"Add-AzHDInsightStorage": {},
29852985
"Disable-AzHDInsightAzureMonitor": {},
2986+
"Disable-AzHDInsightAzureMonitorAgent": {},
29862987
"Disable-AzHDInsightMonitoring": {},
29872988
"Enable-AzHDInsightAzureMonitor": {},
2989+
"Enable-AzHDInsightAzureMonitorAgent": {},
29882990
"Enable-AzHDInsightMonitoring": {},
2991+
"Enable-AzHDInsightMonitoringAgent": {},
29892992
"Get-AzHDInsightAzureMonitor": {},
29902993
"Get-AzHDInsightCluster": {},
29912994
"Get-AzHDInsightClusterAutoscaleConfiguration": {},
@@ -2998,6 +3001,7 @@
29983001
"Get-AzHDInsightScriptActionHistory": {},
29993002
"Invoke-AzHDInsightHiveJob": {},
30003003
"New-AzHDInsightCluster": {},
3004+
"Update-AzHDInsightCluster": {},
30013005
"New-AzHDInsightClusterAutoscaleConfiguration": {},
30023006
"New-AzHDInsightClusterAutoscaleScheduleCondition": {},
30033007
"New-AzHDInsightClusterConfig": {},

0 commit comments

Comments
 (0)