Skip to content

Commit d3e6f57

Browse files
authored
Merge branch 'Azure:main' into master
2 parents 91cb6e9 + c497db1 commit d3e6f57

File tree

15,763 files changed

+2222812
-653459
lines changed

Some content is hidden

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

15,763 files changed

+2222812
-653459
lines changed

.azure-pipelines/SyncFromMainBranchConfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"tools",
44
".azure-pipelines",
55
"src/lib",
6-
"build.proj"
6+
"build.proj",
7+
"src/Az.Test.props",
8+
"src/Az.autorest.hybrid.props",
9+
"src/psm1.props"
710
],
811
"UnSyncPath": [
912
".azure-pipelines/SyncFromMainBranchConfig.json"
1013
]
11-
}
14+
}

.azure-pipelines/daily-build.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Please don't use ADO UI defined scheduled triggers because it takes precedence over YAML scheduled triggers.
22
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/scheduled-triggers
3+
variables:
4+
today: $(Get-Date -Format yyyyMMddhhmmss)
5+
36
schedules:
47
- cron: "0 18 * * *"
58
displayName: 2:00 AM (UTC + 8:00) China Daily Build
@@ -55,24 +58,11 @@ jobs:
5558
targetType: 'inline'
5659
script: |
5760
$command = "`$PSVersionTable `
58-
./tools/RunVersionController.ps1 -MonthName $(MonthName) -Year $(Year) `
61+
Get-PSRepository `
62+
./tools/RunVersionController.ps1 -Release 'Daily Build $(today)' `
5963
Exit"
6064
dotnet tool run pwsh -c $command
6165
62-
# - task: PowerShell@2
63-
# displayName: 'Push to Branch internal/dailybuild'
64-
# inputs:
65-
# targetType: 'inline'
66-
# script: |
67-
# git config user.email "[email protected]"
68-
# git config user.name "azuresdkci"
69-
# git remote set-url origin https://$(Token)@github.com/Azure/azure-powershell.git
70-
# git checkout -b internal/dailybuild
71-
# git add .
72-
# git commit -m "Bump Version"
73-
# git status
74-
# git push -u origin internal/dailybuild --force
75-
7666
- task: PowerShell@2
7767
displayName: 'Clean artifacts folder'
7868
inputs:

.azure-pipelines/powershell-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ variables:
55
LinuxImage: ubuntu-20.04
66
MacOSName: macOS
77
MacOSImage: macOS-11
8-
TestFramework: netcoreapp2.1
8+
TestFramework: netcoreapp3.1
99
TestTarget: Test
1010
Configuration: Debug
1111
DebugLocalBuildTasks: true

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ steps:
2424
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
2525
pwsh: true
2626

27-
- task: UseDotNet@2
28-
displayName: 'Use .NET Core sdk'
29-
inputs:
30-
packageType: sdk
31-
version: 2.1.x
32-
3327
- task: UseDotNet@2
3428
displayName: 'Use .NET Core sdk'
3529
inputs:

.azure-pipelines/windows-powershell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variables:
22
WindowsName: windows
33
WindowsImage: windows-2019
4-
TestFramework: netcoreapp2.1
4+
TestFramework: netcoreapp3.1
55
TestTarget: Test
66
Configuration: Debug
77
DebugLocalBuildTasks: true

ChangeLog.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,113 @@
1+
## 7.3.2 - March 2022
2+
#### Az.Accounts
3+
* Changed target framework of AuthenticationAssemblyLoadContext to netcoreapp2.1 [#17428]
4+
5+
#### Az.Compute
6+
* Updated New-AzVM feature for 'vCPUsAvailable' and 'vCPUsPerCore' parameters. Cmdlets will not try to use the new 'VMCustomizationPreview' feature if the user does not have access to that feature. [#17370]
7+
8+
## 7.3.0 - March 2022
9+
#### Az.Accounts
10+
* Fixed the issue that authorization does not work in customized environment [#17157]
11+
* Enabled Continue Access Evaluation for MSGraph
12+
* Improved error message when login is blocked by AAD
13+
* Improved error message when silent reauthentication failed
14+
* Loaded System.Private.ServiceModel and System.ServiceModel.Primitives on Windows PowerShell [#17087]
15+
16+
#### Az.Aks
17+
* Updated the breaking change warning messages [#16805]
18+
19+
#### Az.CloudService
20+
* Fixed the issue of 'Get-AzCloudServiceNetworkInterface' and 'Get-AzCloudServicePublicIPAddress'.
21+
22+
#### Az.Compute
23+
* Upgraded Compute .NET SDK package reference to version 52.0.0
24+
* Updated 'New-AzSshKey' cmdlet to write file paths to generated keys to the Warning stream instead of the console.
25+
* Added 'vCPUsAvailable' and 'vCPUsPerCore' integer parameters to the 'New-AzVm', 'New-AzVmConfig', and 'Update-AzVm' cmdlets.
26+
27+
#### Az.ContainerInstance
28+
* Fixed Identity Bug in ImageRegistryCredential
29+
30+
#### Az.Databricks
31+
* Upgraded API version to 2021-04-01-preview
32+
33+
#### Az.DataFactory
34+
* Updated ADF .Net SDK version to 5.2.0
35+
36+
#### Az.DataShare
37+
* Added breaking change warning message due to update API version.
38+
39+
#### Az.EventHub
40+
* Added MSI properties to New-AzEventHubNamespace and Set-AzEventHubNamespace. Adding New-AzEventHubEncryptionConfig.
41+
42+
#### Az.KeyVault
43+
* 'New-AzKeyVaultManagedHsm': supported specifying how long a deleted managed hsm is retained by 'SoftDeleteRetentionInDays' and enabling purge protection by 'EnablePurgeProtection'
44+
* 'Update-AzKeyVaultManagedHsm': supported enabling purge protection by 'EnablePurgeProtection'
45+
* 'Get-AzKeyVaultManagedHsm': Supported getting or listing deleted managed HSM(s)
46+
* 'Remove-AzKeyVaultManagedHsm': Supported purging a specified deleted managed HSM
47+
48+
#### Az.Monitor
49+
* Fixed an issue where users could not correctly ignore warning messages after setting environment variables [#17013]
50+
51+
#### Az.Network
52+
* Added new property 'SqlSetting' for Azure Firewall Policy cmdlets
53+
- 'Get-AzFirewallPolicy'
54+
- 'New-AzFirewallPolicy'
55+
- 'Set-AzFirewallPolicy'
56+
* Added new to create new 'SqlSetting' object for creating Azure Firewall Policy
57+
- 'New-AzFirewallPolicySqlSetting'
58+
* Added new cmdlet to support query Load Balancer inbound nat rule port mapping lists for backend addresses
59+
- 'Get-AzLoadBalancerBackendAddressInboundNatRulePortMapping'
60+
- Also updated cmdlets to support inbound nat rule V2 configurations
61+
- 'New-AzLoadBalancerInboundNatRuleConfig'
62+
- 'Set-AzLoadBalancerInboundNatRuleConfig'
63+
- 'Add-AzLoadBalancerInboundNatRuleConfig'
64+
65+
#### Az.RecoveryServices
66+
* Azure Backup added support for 'Create new virtual machine' and 'Replace existing virtual machine' experience for Managed VMs in Restore-AzRecoveryServicesBackupItem cmdlet. To perform a VM restore to AlternateLocation use TargetVMName, TargetVNetName, TargetVNetResourceGroup, TargetSubnetName parameters. To perform a restore to a VM in OriginalLocation, do not provide TargetResourceGroupName and RestoreAsUnmanagedDisks parameters, refer examples for more details.
67+
68+
#### Az.Resources
69+
* Fixed keycredential key format, from base64url to byte [#17131]
70+
* Fixed add key credential overwrite existing one [#17088]
71+
* Deleted parameter sets cannot be reached for 'New-AzADSericePrincipal'
72+
* Marked 'ObjectType' as 'Unknown' if object is not found or current account has insufficient privileges to get object type for role assignment [#16981]
73+
* Fixed that 'Get-AzRoleAssignment' shows empty RoleDefinitionName for custom roles when not specifying scope [#16991]
74+
* Unified the returned 'RoleDefinitionId' in PSRoleAssignment to GUID [#16991]
75+
76+
#### Az.ServiceBus
77+
* Added identity and encryption properties to New-AzServiceBusNamespace and Set-AzServiceBusNamespace.
78+
* Added New-AzServiceBusEncryptionConfig
79+
80+
#### Az.Storage
81+
* Supported download blob from managed disk account with Sas Uri and bearer token
82+
- 'Get-AzStorageBlobContent'
83+
* Supported create/upgrade storage account with ActiveDirectorySamAccountName and ActiveDirectoryAccountType
84+
- 'New-AzStorageAccount'
85+
- 'Set-AzStorageAccount'
86+
87+
#### Az.StorageSync
88+
* Migrated Azure AD features in Az.StorageSync to MSGraph APIs. The cmdlets will call MSGraph API according to input parameters: New-AzStorageSyncCloudEndpoint
89+
* Changed default parameter set of Invoke-AzStorageSyncChangeDetection to use full share detection
90+
91+
#### Az.Synapse
92+
* Updated 'Update-AzSynapseSparkPool' to support new parameter [-ForceApplySetting]
93+
94+
### Thanks to our community contributors
95+
* Aleksandar Nikolić (@alexandair)
96+
* Fix the StayProvisioned parameter (#17070)
97+
* Fix a typo (#17069)
98+
* Joel Greijer (@greijer), Clarified special case on TemplateParameterUri (#17004)
99+
* Aman Sharma (@HarvestingClouds), Added Workload Type to the bullets to match the accepted values (#17041)
100+
* @hsrivast, Hsrivastava/breaking change msg (#16985)
101+
* Chris (@isjwuk), Update New-AzAutomationUpdateManagementAzureQuery.md (#16365)
102+
* @MSakssharm, Returning error if insufficient user permissions are there for GetAgentRegistrationInfo (#16965)
103+
* Emanuel Palm (@PalmEmanuel), New-AzSshKey should log to Warning stream instead of console (#16988)
104+
* Pavel Safonov (@PSafonov), Fixed a typo in ManagedResourceGroupName parameter description (#17039)
105+
* Michael Arnwine (@vsmike), Update New-AzApplicationGatewayRewriteRuleSet.md Description Text is incorrect (#17102)
106+
107+
## 7.2.1 - February 2022
108+
#### Az.Resources
109+
* Fixed `New-AzADServicePrincipal` not working [#17054] [#17040]
110+
1111
## 7.2.0 - February 2022
2112
#### Az.Accounts
3113
* Removed legacy assembly System.Private.ServiceModel and System.ServiceModel.Primitives [#16063]
@@ -173,6 +283,24 @@
173283
#### Az.Storage
174284
* Fixed the failure of sync copy blob with long destination blob name [#16628]
175285
- 'Copy-AzStorageBlob'
286+
* Supported AAD oauth storage context in storage table cmdlets.
287+
- `Get-AzStorageCORSRule`
288+
- `Get-AzStorageServiceLoggingProperty`
289+
- `Get-AzStorageServiceMetricsProperty`
290+
- `Get-AzStorageServiceProperty`
291+
- `Get-AzStorageTable`
292+
- `Get-AzStorageTableStoredAccessPolicy`
293+
- `New-AzStorageTable`
294+
- `New-AzStorageTableSASToken`
295+
- `New-AzStorageTableStoredAccessPolicy`
296+
- `Remove-AzStorageCORSRule`
297+
- `Remove-AzStorageTableStoredAccessPolicy`
298+
- `Set-AzStorageCORSRule`
299+
- `Set-AzStorageServiceLoggingProperty`
300+
- `Set-AzStorageServiceMetricsProperty`
301+
- `Set-AzStorageServiceProperty`
302+
- `Set-AzStorageTable`
303+
- `Set-AzStorageTableStoredAccessPolicy`
176304

177305
#### Az.Synapse
178306
* General availability of Az.Synapse

build.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
<!-- Delete powershell runtime files -->
200200
<PropertyGroup>
201201
<RuntimeDllsIncludeList>Microsoft.Powershell.*.dll,System*.dll,Microsoft.VisualBasic.dll,Microsoft.CSharp.dll,Microsoft.CodeAnalysis.dll,Microsoft.CodeAnalysis.CSharp.dll</RuntimeDllsIncludeList>
202-
<RuntimeDllsExcludeList>System.Security.Cryptography.ProtectedData.dll,System.Configuration.ConfigurationManager.dll,System.Runtime.CompilerServices.Unsafe.dll,System.IO.FileSystem.AccessControl.dll,System.Buffers.dll,System.Text.Encodings.Web.dll,System.CodeDom.dll,System.Management.dll,System.Text.Json.dll,System.Threading.Tasks.Extensions.dll</RuntimeDllsExcludeList>
202+
<RuntimeDllsExcludeList>System.Security.Cryptography.ProtectedData.dll,System.Configuration.ConfigurationManager.dll,System.Runtime.CompilerServices.Unsafe.dll,System.IO.FileSystem.AccessControl.dll,System.Buffers.dll,System.Text.Encodings.Web.dll,System.CodeDom.dll,System.Management.dll,System.Text.Json.dll,System.Threading.Tasks.Extensions.dll,System.IO.Hashing.dll</RuntimeDllsExcludeList>
203203
</PropertyGroup>
204204
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include $(RuntimeDllsIncludeList) -Exclude $(RuntimeDllsExcludeList) | Where-Object {$_.FullName -notlike '*PreloadAssemblies*' -and $_.FullName -notlike '*NetCoreAssemblies*' -and $_.FullName -notlike '*AzSharedAlcAssemblies*' -and $_.FullName -notlike '*ModuleAlcAssemblies*'} | Remove-Item -Force&quot;"/>
205205
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include 'runtimes' | Remove-Item -Recurse -Force&quot;" Condition="'$(CodeSign)' == 'true'" />
@@ -316,7 +316,7 @@
316316
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(DockerTools)/CleanArtifacts.ps1 -Docker $(DockerRoot) &quot;" />
317317
</Target>
318318

319-
<Target Name="Test" DependsOnTargets="FilterBuild">
319+
<Target Name="Test" DependsOnTargets="FilterBuild" Condition="'$(IsGenerateBased)' == 'false'">
320320
<Message Importance="high" Text="Running check in tests..." />
321321
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
322322
<!-- https://github.com/Microsoft/msbuild/issues/3157#issuecomment-378002971 -->

docker/README.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,14 @@ Azure PowerShell [release notes](https://docs.microsoft.com/en-us/powershell/azu
2929
docker pull mcr.microsoft.com/azure-powershell
3030
```
3131

32-
### Run azure-powershell container
32+
### Run azure-powershell container
3333

3434
- To run azure-powershell using a container in an interactive mode:
3535

3636
```sh
3737
$ docker run -it mcr.microsoft.com/azure-powershell pwsh
3838
```
3939

40-
- To run azure-powershell from using a container in an interactive mode using host authentication:
41-
42-
1- Make sure that `$HOME/.Azure` is present on the host (default location)
43-
2- You may need to grant access this location for the docker process.
44-
45-
```sh
46-
$ docker run -it -v ~/.Azure/AzureRmContext.json:/root/.Azure/AzureRmContext.json -v ~/.Azure/TokenCache.dat:/root/.Azure/TokenCache.dat mcr.microsoft.com/azure-powershell pwsh
47-
```
48-
49-
Verify the host authentication:
50-
51-
```sh
52-
docker run -it --rm -v ~/.Azure/AzureRmContext.json:/root/.Azure/AzureRmContext.json -v ~/.Azure/TokenCache.dat:/root/.Azure/TokenCache.dat mcr.microsoft.com/azure-powershell pwsh -c Get-AzContext
53-
```
54-
5540
### Building image
5641

5742
Clone the azure-powershell repo, and in your local copy run the following commands:

0 commit comments

Comments
 (0)