Skip to content

Commit 14c777f

Browse files
authored
Merge pull request #21158 from wastoresh/mergestorage
[Do not Squash] Merge main branch change to Az.Storage-preview
2 parents 2d512d0 + 079af0e commit 14c777f

File tree

4,435 files changed

+401277
-211994
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,435 files changed

+401277
-211994
lines changed

.azure-pipelines/SyncFromMainBranchConfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"src/lib",
77
"src/shared",
88
"build.proj",
9+
"src/Az.props",
10+
"src/Az.Shared.props",
911
"src/Az.Test.props",
1012
"src/Az.autorest.hybrid.props",
1113
"src/psm1.props",

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

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,48 @@ steps:
3838
custom: msbuild
3939
arguments: 'build.proj /t:${{ parameters.testTarget }} /p:Configuration=${{ parameters.configuration }};TestFramework=${{ parameters.testFramework }};PullRequestNumber=$(System.PullRequest.PullRequestNumber)'
4040
env:
41-
OCTOKITPAT: $(OCTOKITPAT)
42-
PowerShellPlatform: ${{ parameters.powerShellPlatform }}
41+
OCTOKITPAT: $(OCTOKITPAT)
42+
PowerShellPlatform: ${{ parameters.powerShellPlatform }}
43+
continueOnError: true
4344

44-
- powershell: |
45-
Install-Module -Name Pester -RequiredVersion 4.10.1 -Force -SkipPublisherCheck
46-
Install-Module -Name Az.Accounts -Scope CurrentUser -Force
47-
$env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path
48-
Get-ChildItem -File -Recurse -Depth 1 test-module.ps1 | ForEach-Object {. $_; if ($LastExitCode -ne 0) {throw "test fails when executing $_"}}
49-
workingDirectory: 'artifacts/Debug'
50-
displayName: Test for AutoGen Modules With Windows PowerShell
51-
condition: and(succeeded(), ne('${{ parameters.testTarget }}', 'Test'))
45+
# Comment this because it's not triggered for 3 years
46+
# - powershell: |
47+
# Install-Module -Name Pester -RequiredVersion 4.10.1 -Force -SkipPublisherCheck
48+
# Install-Module -Name Az.Accounts -Scope CurrentUser -Force
49+
# $env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path
50+
# Get-ChildItem -File -Recurse -Depth 1 test-module.ps1 | ForEach-Object {. $_; if ($LastExitCode -ne 0) {throw "test fails when executing $_"}}
51+
# workingDirectory: 'artifacts/Debug'
52+
# displayName: Test for AutoGen Modules With Windows PowerShell
53+
# condition: and(succeeded(), ne('${{ parameters.testTarget }}', 'Test'))
5254

5355
- pwsh: |
5456
Install-Module -Name Pester -RequiredVersion 4.10.1 -Force
5557
Install-Module -Name Az.Accounts -Scope CurrentUser -Force
5658
if ($IsWindows) { $sp = ";" } else { $sp = ":" }
5759
$env:PSModulePath = $env:PSModulePath + $sp + (pwd).Path
58-
Get-ChildItem -File -Recurse -Depth 1 test-module.ps1 | ForEach-Object {. $_; if ($LastExitCode -ne 0) {throw "test fails when executing $_"}}
60+
$rootFolder = (Get-item $PWD).Parent.Parent
61+
Get-ChildItem -File -Recurse test-module.ps1 | ForEach-Object {
62+
Write-Host $_.Directory.FullName
63+
cd $rootFolder;
64+
.\tools\ExecuteCIStep.ps1 -TestAutorest -AutorestDirectory $_.Directory.FullName
65+
}
5966
workingDirectory: 'artifacts/Debug'
6067
displayName: 'Test for AutoGen Modules With PowerShell Core'
6168
condition: and(succeeded(), eq('${{ parameters.testTarget }}', 'Test'))
69+
continueOnError: true
70+
env:
71+
PowerShellPlatform: ${{ parameters.powerShellPlatform }}
72+
73+
- pwsh: |
74+
$PipelineResult = Get-Content PipelineResult.json | ConvertFrom-Json
75+
$FailedModuleList = $PipelineResult.test.Details[0].Modules | Where-Object { $_.Status -eq "Failed" } | ForEach-Object { $_.Module }
76+
if ($FailedModuleList.Length -ne 0)
77+
{
78+
throw "test fails in module: $FailedModuleList"
79+
}
80+
workingDirectory: 'artifacts/PipelineResult'
81+
displayName: 'Check Test Status'
82+
6283

6384
- task: PublishTestResults@2
6485
inputs:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pull_request:
2+
comment:
3+
- azure_pipeline:
4+
allow_list:
5+
- "azure-powershell - powershell-core"
6+
- "azure-powershell - windows-powershell"
7+
result_path: "/PipelineResult/PipelineResult.json"
8+
group_by_keys:
9+
- "Module"
10+
- "PhaseName"
11+
- "Platform"
12+
template_path: "templates/PRComment.handlebars"
13+
comment_title: "PRComment"
14+
init_comment: "Validation for PowerShell Core and Windows PowerShell Starts. Thanks for your contribution!"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{{#each this}}
2+
<details>
3+
<summary>{{renderStatus Status}}{{Module}}</summary>
4+
5+
{{#each Items}}
6+
><details>
7+
> <summary>{{renderStatus Status}}{{PhaseName}}</summary>
8+
>
9+
{{#each Items}}
10+
>><details>
11+
>> <summary>{{renderStatus Status}}{{Platform}}</summary>
12+
>>
13+
{{renderContent Content 2}}
14+
>></details>
15+
{{/each}}
16+
></details>
17+
{{/each}}
18+
</details>
19+
{{/each}}

ChangeLog.md

Lines changed: 156 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,162 @@
1+
## 9.5.0 - March 2023
2+
#### Az.Accounts 2.12.0
3+
* Fixed the issue that errors related to WAM are thrown when it is not enabled. [#20871] [#20824]
4+
* Updated Azure.Core library to 1.28.0.
5+
* Fixed an issue that the helper message about missing modules shows up at the wrong time. [#19228]
6+
* Added a hint message for some resource creation cmdlets when there is another region which may reduce the costs.
7+
* Supported environment initialization and auto-discovery with ArmMetadata of API version 2022-09-01.
8+
9+
#### Az.Aks 5.3.1
10+
* Fixed the issue that Invoke-AzAksRunCommand will fail when the directory for parameter CommandContextAttachment contains sub-directories. [#20734]
11+
12+
#### Az.Automanage 1.0.0
13+
* General availability for module Az.Automanage
14+
15+
#### Az.Automation 1.9.1
16+
* Fixed bug: Runbooks Name Pattern failures.
17+
18+
#### Az.CloudService 1.2.0
19+
* Upgraded the api version to 2022-09-04.
20+
* Upgraded the api version of referenced network to 2022-07-01.
21+
22+
#### Az.CognitiveServices 1.13.0
23+
* Updated CognitiveServices PowerShell to use 2022-12-01 version.
24+
* Added new CognitiveServices CommitmentPlan and Association cmdlets.
25+
* Added MultiRegionSetting support for CognitiveServices Account cmdlets.
26+
27+
#### Az.Compute 5.5.0
28+
* Added breaking change message for 'New-AzVmss'.
29+
* Added '-PerformancePlus' parameter to 'New-AzDiskConfig'
30+
* Added 'MaxSurge' to Set-AzVmssRollingUpgradePolicyCommand
31+
* Added support for 'latest' in 'Get-AzvmImage' '-Version' parameter
32+
* Added 'CompletionPercent' property to PSDisk object.
33+
34+
#### Az.ContainerInstance 3.2.0
35+
* Added 'priority' property to Container Group properties
36+
* Added 'Confidential' sku type to Container Group Skus
37+
38+
#### Az.ContainerRegistry 3.0.2
39+
* Updated Azure.Core to 1.28.0.
40+
41+
#### Az.CosmosDB 1.9.1
42+
* Updated Azure.Core to 1.28.0.
43+
44+
#### Az.Databricks 1.5.0
45+
* Upgraded API version to 2023-02-01
46+
47+
#### Az.DataFactory 1.16.13
48+
* Updated ADF .Net SDK version to 9.2.0
49+
* Added AzureBlobFS sasUri and sasToken properties in ADF
50+
* Added AzureBlobStorage containerUri and authenticationType properties in ADF
51+
* Added support copyComputeScale And pipelineExternalComputeScale in IntegrationRuntime
52+
53+
#### Az.EventHub 3.2.2
54+
* Added breaking change description for parameter 'MessageRetentionInDays', which would be deprecated and would be replaced by 'RetentionTimeInHours'
55+
56+
#### Az.FrontDoor 1.10.0
57+
* Fixed New-AzFrontDoorWafPolicy cmdlet to support adding Tags for the Azure Frontdoor waf policy
58+
59+
#### Az.IotHub 2.7.5
60+
* Updated IoT Hub Management SDK to version 4.2.0 (api-version 2021-07-02)
61+
* Fixed 'Get-AzIoTHub' to work with DigiCert hubs
62+
63+
#### Az.KeyVault 4.9.2
64+
* Updated Azure.Core to 1.28.0.
65+
66+
#### Az.ManagedServiceIdentity 1.1.1
67+
* Upgraded to API version 2023-01-31.
68+
* Federated identity credentials GA version is available now.
69+
70+
#### Az.Network 5.5.0
71+
* Updated cmdlets to add new property of 'Snat' in Azure Firewall Policy.
72+
- 'New-AzFirewallPolicySnat'
73+
- 'New-AzFirewallPolicy'
74+
- 'Set-AzFirewallPolicy'
75+
* Fixed a bug that reverts classic fw private ranges to default when doing get & set
76+
* Onboarded 'Microsoft.Monitor/accounts' to private link cmdlets
77+
78+
#### Az.PolicyInsights 1.6.0
79+
* Added support for policy attestations.
80+
81+
#### Az.RecoveryServices 6.3.0
82+
* Supported using managed disks for replication for HyperV to Azure provider in Azure Site Recovery
83+
84+
#### Az.Relay 1.0.4
85+
* Added breaking change message for cmdlets.
86+
* 'Set-AzRelayNamespace'
87+
* 'Get-AzRelayOperation'
88+
89+
#### Az.Resources 6.5.3
90+
* Updated behavior of Get-AzPolicyDefinition which previously returned all definitions when -Id was provided with a nonexistent policy definition id. Fixed to correctly throw a 404 exception in this case.
91+
92+
#### Az.Security 1.4.0
93+
* Updated Alerts cmdlets:
94+
'Get-AzSecurityAlert'
95+
'Set-AzSecurityAlert'
96+
* Moving Security Contacts to be based on the latest API version '2020-01-01-preview' with backward compatibility support
97+
98+
#### Az.ServiceBus 2.2.0
99+
* Upgraded API version to 2022-10-01-preview
100+
* Fixed a bug for 'Set-AzServiceBusQueue'
101+
102+
#### Az.ServiceFabric 3.1.1
103+
* Added support for Windows 2022 server vm image.
104+
- This enables cluster operations with Windows 2022 server vm image
105+
106+
#### Az.Sql 4.4.0
107+
* Fixed identity assignment in 'Set-AzSqlDatabase' cmdlet
108+
* Added new parameters to 'New-AzSqlDatabase', 'Get-AzSqlDatabase', 'Set-AzSqlDatabase', 'New-AzSqlDatabaseCopy', 'New-AzSqlDatabaseSecondary' cmdlets
109+
- AssignIdentity
110+
- EncryptionProtector
111+
- UserAssignedIdentityId
112+
- KeyList
113+
- KeysToRemove
114+
- FederatedClientId
115+
* Added 'ExpandKeyList' and 'KeysFilter' parameters to 'Get-AzSqlDatabaseGeoBackup' and 'Get-SqlDeletedDatabaseBackup'
116+
* Added new cmdlets for Per DB CMK
117+
- 'Revalidate-AzSqlDatabaseTransparentDataEncryptionProtector'
118+
- 'Revert-AzSqlDatabaseTransparentDataEncryptionProtector'
119+
- 'Revalidate-AzSqlServerTransparentDataEncryptionProtector'
120+
- 'Revalidate-AzSqlInstanceTransparentDataEncryptionProtector'
121+
* Added an optional parameter 'SecondaryType' to:
122+
'Set-AzSqlDatabaseInstanceFailoverGroup'
123+
'New-AzSqlDatabaseInstanceFailoverGroup'
124+
125+
#### Az.StackHCI 1.4.3
126+
* Removed manual installation for Az.Accounts from Az.StackHCI.
127+
* Removed verbose while importing modules.
128+
129+
#### Az.Storage 5.4.1
130+
* Updated Azure.Core to 1.28.0.
131+
132+
#### Az.StorageMover 1.0.0
133+
* General availability for module Az.StorageMover
134+
* Updated StorageMover API version to 2023-03-01
135+
136+
#### Az.Synapse 2.3.0
137+
* Upgraded Azure.Analytics.Synapse.Artifacts to 1.0.0-preview.17
138+
* Updated 'New-AzSynapseSparkPool' and 'Update-AzSynapseSparkPool' to support for setting spark pool isolated compute by '-EnableIsolatedCompute'
139+
* Updated 'New-AzSynapseSparkPool' and 'Update-AzSynapseSparkPool' to support for setting spark pool node size to 'XLarge', 'XXLarge', 'XXXLarge'
140+
141+
#### Az.Websites 2.13.0
142+
* Added a new parameter '-CopyIdentity' for 'New-AzWebAppSlot' to copy the identity from the parent app to the slot.
143+
* Updated 'New-AzWebAppSSLBinding' to support -WhatIf parameter
144+
145+
### Thanks to our community contributors
146+
* Brett Miller (@brettmillerb), Corrected syntax for ConfirmAction (#20902)
147+
* Dave Neeley (@daveneeley), Clarify behavior of AcountEnabled and Password (#21006)
148+
* Hiroshi Yoshioka (@hyoshioka0128), Typo "udpate"→"update" (#20810)
149+
* @meenalsri
150+
* Update New-AzSynapseRoleAssignment.md (#20905)
151+
* Update Remove-AzSynapseRoleAssignment.md (#20906)
152+
* Added note for scenario when an SPN role assignment is listed (#20907)
153+
* @sushil490023, Update Reference to latest swagger for Runbook Cmdlets (#20803)
154+
1155
## 9.4.0 - February 2023
2156
#### Az.Accounts 2.11.2
3157
* Supported Web Account Manager on ARM64-based Windows systems. Fixed an issue where 'Connect-AzAccount' failed with error 'Unable to load DLL 'msalruntime_arm64''. [#20700]
4-
* Enabled credential to be found only by applicationId while tenant was not matched when accquire token. [#20484]
5-
* When Az.Accounts ran in parallel, the waiters were allowed to wait infinitely to avoid throw exception in automation enviroment. [#20455]
158+
* Enabled credential to be found only by applicationId while tenant was not matched when acquire token. [#20484]
159+
* When Az.Accounts ran in parallel, the waiters were allowed to wait infinitely to avoid throw exception in automation environment. [#20455]
6160

7161
#### Az.Aks 5.3.0
8162
* Added parameter '-AadProfile' for 'New-AzAksCluster' and 'Set-AzAksCluster'

build.proj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@
198198
<BuildAction Condition="'$(Configuration)' == 'Release'">publish</BuildAction>
199199
</PropertyGroup>
200200

201-
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;.\tools\ExecuteCIStep.ps1 -Build -RepoArtifacts $(RepoArtifacts) -Configuration $(Configuration) -GenerateDocumentationFile $(GenerateDocumentationFile) -EnableTestCoverage $(TurnOnTestCoverage) -BuildAction $(BuildAction)&quot;" />
201+
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;.\tools\ExecuteCIStep.ps1 -Build -RepoArtifacts $(RepoArtifacts) -Configuration $(Configuration) -GenerateDocumentationFile $(GenerateDocumentationFile) -EnableTestCoverage $(TurnOnTestCoverage) -BuildAction $(BuildAction)&quot;" Condition="$(PullRequestNumber) == ''"/>
202+
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;.\tools\ExecuteCIStep.ps1 -Build -PullRequestNumber $(PullRequestNumber) -RepoArtifacts $(RepoArtifacts) -Configuration $(Configuration) -GenerateDocumentationFile $(GenerateDocumentationFile) -EnableTestCoverage $(TurnOnTestCoverage) -BuildAction $(BuildAction)&quot;" Condition="$(PullRequestNumber) != ''"/>
202203

203204
<!-- Build version controller -->
204205
<Exec Command="dotnet build $(RepoTools)VersionController/VersionController.Netcore.csproj -c $(Configuration)" />

docker/Dockerfile-mariner-2-arm64

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
FROM mcr.microsoft.com/powershell:mariner-2.0-arm64
2+
3+
ARG REPOSITORY=PSGallery
4+
ARG MODULE=Az
5+
ARG CONFIG=config
6+
ARG AZURERM_CONTEXT_SETTINGS=AzureRmContextSettings.json
7+
ARG AZURE=/root/.Azure
8+
ARG VCS_REF="none"
9+
ARG BUILD_DATE=
10+
ARG VERSION=
11+
ARG LATEST=
12+
ARG BLOB_URL=
13+
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-mariner-2.0
14+
15+
ENV AZUREPS_HOST_ENVIRONMENT="dockerImage/${VERSION}-mariner-2.0"
16+
17+
LABEL maintainer="Azure PowerShell Team <[email protected]>" \
18+
readme.md="http://aka.ms/azpsdockerreadme" \
19+
description="This Dockerfile will install the latest release of Azure PowerShell." \
20+
org.label-schema.build-date=${BUILD_DATE} \
21+
org.label-schema.usage="http://aka.ms/azpsdocker" \
22+
org.label-schema.url="http://aka.ms/azpsdockerreadme" \
23+
org.label-schema.vcs-url="https://github.com/Azure/azure-powershell" \
24+
org.label-schema.name="azure powershell" \
25+
org.label-schema.vendor="Azure PowerShell" \
26+
org.label-schema.version=${VERSION} \
27+
org.label-schema.schema-version="1.0" \
28+
org.label-schema.vcs-ref=${VCS_REF} \
29+
org.label-schema.docker.cmd="docker run --rm ${IMAGE_NAME} pwsh -c '\$PSVERSIONTABLE'" \
30+
org.label-schema.docker.cmd.devel="docker run -it --rm -e 'DebugPreference=Continue' ${IMAGE_NAME} pwsh" \
31+
org.label-schema.docker.cmd.test="currently not available" \
32+
org.label-schema.docker.cmd.help="docker run --rm ${IMAGE_NAME} pwsh -c Get-Help"
33+
34+
RUN if [ "${LATEST}" = True ] ; then \
35+
# install latest azure-powershell from BLOB
36+
pwsh -Command Invoke-WebRequest -uri ${BLOB_URL} -OutFile latest.tar.gz && \
37+
mkdir latest && \
38+
tdnf install -y tar gzip && \
39+
tdnf clean all && \
40+
tar -zxvf ./latest.tar.gz -C ./latest && \
41+
pwsh -Command ./latest/InstallModule.ps1 ;\
42+
else \
43+
# install old azure-powershell from PSGallery
44+
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \
45+
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers -Repository ${REPOSITORY} && \
46+
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted ;\
47+
fi
48+
49+
# create AzureRmContextSettings.json before it was generated
50+
COPY ${CONFIG}/${AZURERM_CONTEXT_SETTINGS} ${AZURE}/${AZURERM_CONTEXT_SETTINGS}
51+
52+
CMD [ "pwsh" ]

docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The release containers derive from the [Powershell image][powershell image], and
1919

2020
[powershell image]: https://hub.docker.com/_/microsoft-powershell
2121

22-
Azure PowerShell [release notes](https://docs.microsoft.com/en-us/powershell/azure/release-notes-azureps)
22+
Azure PowerShell [release notes](https://learn.microsoft.com/en-us/powershell/azure/release-notes-azureps)
2323

2424
## Examples
2525

documentation/breaking-changes/breaking-changes-messages-help.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Here is a [link to our milestones](https://github.com/Azure/azure-powershell/mil
2929
) is a good resource on the various types of breaking changes authors can call out in a cmdlet.
3030

3131
### Send us feedback
32-
* Generic feedback : Use the [`Send-Feedback`](https://docs.microsoft.com/en-us/powershell/module/azurerm.profile/send-feedback?view=azurermps-6.11.0) cmdlet
32+
* Generic feedback : Use the [`Send-Feedback`](https://learn.microsoft.com/en-us/powershell/module/azurerm.profile/send-feedback?view=azurermps-6.11.0) cmdlet
3333
* A bug : Report issues in the [azure-powershell repository issue list](https://github.com/Azure/azure-powershell/issues)

0 commit comments

Comments
 (0)