Skip to content

Commit f82a8ed

Browse files
authored
Merge pull request #11161 from wastoresh/mergestorage
[Storage] Update lastest change from master to storage branch
2 parents 8bf6e2a + a8a1019 commit f82a8ed

File tree

466 files changed

+122661
-15439
lines changed

Some content is hidden

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

466 files changed

+122661
-15439
lines changed

.github/ISSUE_TEMPLATE/az-module-bug-report.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ assignees: ''
2929

3030
## Environment data
3131

32-
<!-- Please run $PSVersionTable and paste the output in the below code block -->
32+
<!-- Please run $PSVersionTable and paste the output in the below code block
33+
If running the Docker container image, indicate the tag of the image used and the version of Docker engine-->
3334

3435
```
3536

ChangeLog.md

Lines changed: 80 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,71 @@
1+
## 3.5.0 - February 2020
2+
### Highlights since the last major release
3+
* Updated client side telemetry.
4+
* Az.IotHub added cmdlets to support to manage devices.
5+
* Az.SqlVirtualMachine added cmdlets for Availability Group Listener.
6+
7+
#### Az.Accounts
8+
* Added SubscriptionId, TenantId, and execution time into data of client side telemetry
9+
10+
#### Az.Automation
11+
* Fixed typo in Example 1 in reference documentation for 'New-AzAutomationSoftwareUpdateConfiguration'
12+
13+
#### Az.CognitiveServices
14+
* Updated SDK to 7.0
15+
* Improved error message when server responses empty body
16+
17+
#### Az.Compute
18+
* Allowed empty value for ProximityPlacementGroupId during update
19+
20+
#### Az.FrontDoor
21+
* Added cmdlet to get managed rule definitions that can be used in WAF
22+
23+
#### Az.IotHub
24+
* Added support to manage devices in an Iot Hub. New Cmdlets are:
25+
- 'Add-AzIotHubDevice'
26+
- 'Get-AzIotHubDevice'
27+
- 'Remove-AzIotHubDevice'
28+
- 'Set-AzIotHubDevice'
29+
30+
#### Az.KeyVault
31+
* Fixed duplicated text for Add-AzKeyVaultKey.md
32+
33+
#### Az.Monitor
34+
* Fixed description of the Get-AzLog cmdlet.
35+
* A new parameter called ActionGroupId was added to 'New-AzMetricAlertRuleV2' command.
36+
- The user can provide either ActionGroupId(string) or ActionGorup(ActivityLogAlertActionGroup).
37+
38+
#### Az.Network
39+
* Added one extra parameter note for parameter '-EnableProxyProtocol' for 'New-AzPrivateLinkService' cmdlet.
40+
* Fixed FilterData example in Start-AzVirtualNetworkGatewayConnectionPacketCapture.md and Start-AzVirtualnetworkGatewayPacketCapture.md.
41+
* Added Packet Capture example for capture all inner and outer packets in Start-AzVirtualNetworkGatewayConnectionPacketCapture.md and Start-AzVirtualnetworkGatewayPacketCapture.md.
42+
* Supported Azure Firewall Policy on VNet Firewalls
43+
- No new cmdlets are added. Relaxing the restriction for firewall policy on VNet firewalls
44+
45+
#### Az.RecoveryServices
46+
* Added Support for Restore-as-files for SQL Databases.
47+
48+
#### Az.Resources
49+
* Refactored template deployment cmdlets
50+
- Added new cmdlets for managing deployments at management group: *-AzManagementGroupDeployment
51+
- Added new cmdlets for managing deployments at tenant scope: *-AzTenantDeployment
52+
- Refactored *-AzDeployment cmdlets to work specifically at subscription scope
53+
- Created aliases *-AzSubscriptionDeployment for *-AzDeployment cmdlets
54+
* Fixed 'Update-AzADApplication' when parameter 'AvailableToOtherTenants' is not set
55+
* Removed ApplicationObjectWithoutCredentialParameterSet to avoid AmbiguousParameterSetException.
56+
* Regenerated help files
57+
58+
#### Az.Sql
59+
* Added support for cross subscription point in time restore on Managed Instances.
60+
* Added support for changing existing Sql Managed Instance hardware generation
61+
* Fixed 'Update-AzSqlServerVulnerabilityAssessmentSetting' help examples: parameter/property output - EmailAdmins
62+
63+
#### Az.SqlVirtualMachine
64+
* Added cmdlets for Availability Group Listener
65+
66+
#### Az.StorageSync
67+
* Updated supported character sets in 'Invoke-AzStorageSyncCompatibilityCheck'.
68+
169
## 3.4.0 - February 2020
270

371
#### Az.CosmosDB
@@ -6,10 +74,6 @@
674
* Added parameters ConflictResolutionPolicyMode, ConflictResolutionPolicyPath and ConflictResolutionPolicyPath in Set-AzCosmosDBSqlContainer.
775
* Added new cmdlets for Sql API : New-CosmosDBSqlSpatialSpec, New-CosmosDBSqlCompositePath, New-CosmosDBSqlIncludedPathIndex, New-CosmosDBSqlIncludedPath
876

9-
### Highlights since the last major release
10-
* Az.CosmosDB initial version 0.1.0 released
11-
* Az.Network ConnectionMonitor V2 support added
12-
1377
#### Az.Accounts
1478
* Disable context auto saving when AzureRmContext.json not available
1579
* Update the reference to Azure Powershell Common to 1.3.5-preview
@@ -120,7 +184,7 @@ Fix New-AzSqlDatabaseSecondary cmdlet to check for PartnerDatabaseName existence
120184
#### Az.DataFactory
121185
* Add AutoUpdateETA, LatestVersion, PushedVersion, TaskQueueId and VersionStatus properties for Get-AzDataFactoryV2IntegrationRuntime cmd
122186
* Update ADF .Net SDK version to 4.6.0
123-
* Add parameter 'PublicIPs' for 'Set-AzureRmDataFactoryV2IntegrationRuntime' cmd
187+
* Add parameter 'PublicIPs' for 'Set-AzDataFactoryV2IntegrationRuntime' cmd
124188
to enable create Azure-SSIS IR with static public IP addresses.
125189

126190
#### Az.DevTestLabs
@@ -164,8 +228,8 @@ to enable create Azure-SSIS IR with static public IP addresses.
164228
#### Az.Storage
165229
* Add breaking change warning message for DefaultAction Value change in a future release
166230
- Update-AzStorageAccountNetworkRuleSet
167-
* Support Get last sync time of Storage account by run get-AzureRMStorageAccount with parameter -IncludeGeoReplicationStats
168-
- Get-AzureRMStorageAccount
231+
* Support Get last sync time of Storage account by run get-AzStorageAccount with parameter -IncludeGeoReplicationStats
232+
- Get-AzStorageAccount
169233

170234
## 3.2.0 - December 2019
171235

@@ -268,7 +332,7 @@ to enable create Azure-SSIS IR with static public IP addresses.
268332

269333
#### Az.DataFactory
270334
* Update ADF .Net SDK version to 4.4.0
271-
* Add parameter 'ExpressCustomSetup' for 'Set-AzureRmDataFactoryV2IntegrationRuntime' cmd to enable setup configurations and 3rd party components without custom setup script.
335+
* Add parameter 'ExpressCustomSetup' for 'Set-AzDataFactoryV2IntegrationRuntime' cmd to enable setup configurations and 3rd party components without custom setup script.
272336

273337
#### Az.DataLakeStore
274338
* Update documentation of Get-AzDataLakeStoreDeletedItem and Restore-AzDataLakeStoreDeletedItem
@@ -478,13 +542,13 @@ to enable create Azure-SSIS IR with static public IP addresses.
478542
- Update-AzVirtualWan : added parameter VirtualWANType
479543
* Add support for EnableInternetSecurity property for HubVnetConnection, VpnConnection and ExpressRouteConnection
480544
- New cmdlets added:
481-
- Update-AzureRmVirtualHubVnetConnection
545+
- Update-AzVirtualHubVnetConnection
482546
- Cmdlets updated with optional parameters:
483-
- New-AzureRmVirtualHubVnetConnection : added parameter EnableInternetSecurity
484-
- New-AzureRmVpnConnection : added parameter EnableInternetSecurity
485-
- Update-AzureRmVpnConnection : added parameter EnableInternetSecurity
486-
- New-AzureRmExpressRouteConnection : added parameter EnableInternetSecurity
487-
- Set-AzureRmExpressRouteConnection : added parameter EnableInternetSecurity
547+
- New-AzVirtualHubVnetConnection : added parameter EnableInternetSecurity
548+
- New-AzVpnConnection : added parameter EnableInternetSecurity
549+
- Update-AzVpnConnection : added parameter EnableInternetSecurity
550+
- New-AzExpressRouteConnection : added parameter EnableInternetSecurity
551+
- Set-AzExpressRouteConnection : added parameter EnableInternetSecurity
488552
* Add support for Configuring TopLevel WebApplicationFirewall Policy
489553
- New cmdlets added:
490554
- New-AzApplicationGatewayFirewallPolicySetting
@@ -591,8 +655,8 @@ to enable create Azure-SSIS IR with static public IP addresses.
591655
- New cmdlets added:
592656
- New-AzureRmTrafficSelectorPolicy
593657
- Cmdlets updated with optional parameter -TrafficSelectorPolicies
594-
-New-AzureRmVirtualNetworkGatewayConnection
595-
-Set-AzureRmVirtualNetworkGatewayConnection
658+
-New-AzVirtualNetworkGatewayConnection
659+
-Set-AzVirtualNetworkGatewayConnection
596660
* Add support for ESP and AH protocols in network security rule configurations
597661
- Updated cmdlets:
598662
- Add-AzNetworkSecurityRuleConfig

Dockerfile

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

build.proj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
<OnPremiseBuild Condition="!Exists($(OnPremiseBuildTasks))">false</OnPremiseBuild>
6464
<!-- CISignRepo is an environment variable that points to ci-signing repo clone -->
6565
<CISignRepoPath>$(CISignRepo)</CISignRepoPath>
66+
67+
<!-- Docker related -->
68+
<DockerRoot>$(RepoRoot)docker</DockerRoot>
69+
<DockerTools>$(RepoTools)Docker</DockerTools>
70+
<DockerImageName Condition="'$(DockerImageName)' == ''">azure-powershell</DockerImageName>
6671
</PropertyGroup>
6772

6873
<!-- Tasks -->
@@ -237,6 +242,12 @@
237242
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. Unregister-PSRepository -Name MSIcreationrepository &quot;" />
238243
</Target>
239244

245+
<Target Name="BuildImages">
246+
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(DockerTools)/GetArtifacts.ps1 -Artifacts $(RepoArtifacts) -Docker $(DockerRoot) &quot;" />
247+
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(DockerTools)/BuildImages.ps1 -DOCKER $(DockerRoot) -DockerImageName $(DockerImageName) &quot;" />
248+
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(DockerTools)/CleanArtifacts.ps1 -Docker $(DockerRoot) &quot;" />
249+
</Target>
250+
240251
<Target Name="Test">
241252
<Message Importance="high" Text="Running check in tests..." />
242253
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />

docker/Dockerfile-centos-7

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
FROM mcr.microsoft.com/powershell:centos-7
2+
3+
ARG ARTIFACTS=/tmp/artifacts/
4+
ARG ARTIFACT=*.nupkg
5+
ARG TEMPREPO=tmp
6+
ARG MODULE=Az
7+
ARG CONFIG=config
8+
ARG AZURERM_CONTEXT_SETTINGS=AzureRmContextSettings.json
9+
ARG AZURE=/root/.Azure
10+
ARG VCS_REF="none"
11+
ARG Build_Date=
12+
ARG VERSION=
13+
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-centos-7
14+
15+
ENV AZUREPS_HOST_ENVIRONMENT="dockerImage/${VERSION}-centos-7"
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+
# install azure-powershell from built artifacts
35+
COPY ${ARTIFACT} ${ARTIFACTS}
36+
RUN pwsh -Command Register-PSRepository -Name ${TEMPREPO} -SourceLocation ${ARTIFACTS} -PublishLocation $ARTIFACTS -InstallationPolicy Trusted -PackageManagementProvider NuGet && \
37+
pwsh -Command Install-Module -Name ${MODULE} -Repository ${TEMPREPO} && \
38+
pwsh -Command Get-Module -ListAvailable && \
39+
pwsh -Command Unregister-PSRepository -Name ${TEMPREPO} && \
40+
pwsh -Command Remove-Item ${ARTIFACTS} -Recurse
41+
42+
# create AzureRmContextSettings.json before it was generated
43+
COPY ${CONFIG}/${AZURERM_CONTEXT_SETTINGS} ${AZURE}/${AZURERM_CONTEXT_SETTINGS}
44+
45+
CMD [ "pwsh" ]

docker/Dockerfile-debian-9

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
FROM mcr.microsoft.com/powershell:debian-9
2+
3+
ARG ARTIFACTS=/tmp/artifacts/
4+
ARG ARTIFACT=*.nupkg
5+
ARG TEMPREPO=tmp
6+
ARG MODULE=Az
7+
ARG CONFIG=config
8+
ARG AZURERM_CONTEXT_SETTINGS=AzureRmContextSettings.json
9+
ARG AZURE=/root/.Azure
10+
ARG VCS_REF="none"
11+
ARG Build_Date=
12+
ARG VERSION=
13+
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-debian-9
14+
15+
ENV AZUREPS_HOST_ENVIRONMENT="dockerImage/${VERSION}-debian-9"
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+
# install azure-powershell from built artifacts
35+
COPY ${ARTIFACT} ${ARTIFACTS}
36+
RUN pwsh -Command Register-PSRepository -Name ${TEMPREPO} -SourceLocation ${ARTIFACTS} -PublishLocation $ARTIFACTS -InstallationPolicy Trusted -PackageManagementProvider NuGet && \
37+
pwsh -Command Install-Module -Name ${MODULE} -Repository ${TEMPREPO} && \
38+
pwsh -Command Get-Module -ListAvailable && \
39+
pwsh -Command Unregister-PSRepository -Name ${TEMPREPO} && \
40+
pwsh -Command Remove-Item ${ARTIFACTS} -Recurse
41+
42+
# create AzureRmContextSettings.json before it was generated
43+
COPY ${CONFIG}/${AZURERM_CONTEXT_SETTINGS} ${AZURE}/${AZURERM_CONTEXT_SETTINGS}
44+
45+
CMD [ "pwsh" ]

docker/Dockerfile-ubuntu-18.04

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
FROM mcr.microsoft.com/powershell:ubuntu-18.04
2+
3+
ARG ARTIFACTS=/tmp/artifacts/
4+
ARG ARTIFACT=*.nupkg
5+
ARG TEMPREPO=tmp
6+
ARG MODULE=Az
7+
ARG CONFIG=config
8+
ARG AZURERM_CONTEXT_SETTINGS=AzureRmContextSettings.json
9+
ARG AZURE=/root/.Azure
10+
ARG VCS_REF="none"
11+
ARG Build_Date=
12+
ARG VERSION=
13+
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-ubuntu-18.04
14+
15+
ENV AZUREPS_HOST_ENVIRONMENT="dockerImage/${VERSION}-ubuntu-18.04"
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+
# install azure-powershell from built artifacts
35+
COPY ${ARTIFACT} ${ARTIFACTS}
36+
RUN pwsh -Command Register-PSRepository -Name ${TEMPREPO} -SourceLocation ${ARTIFACTS} -PublishLocation $ARTIFACTS -InstallationPolicy Trusted -PackageManagementProvider NuGet && \
37+
pwsh -Command Install-Module -Name ${MODULE} -Repository ${TEMPREPO} && \
38+
pwsh -Command Get-Module -ListAvailable && \
39+
pwsh -Command Unregister-PSRepository -Name ${TEMPREPO} && \
40+
pwsh -Command Remove-Item ${ARTIFACTS} -Recurse
41+
42+
# create AzureRmContextSettings.json before it was generated
43+
COPY ${CONFIG}/${AZURERM_CONTEXT_SETTINGS} ${AZURE}/${AZURERM_CONTEXT_SETTINGS}
44+
45+
CMD [ "pwsh" ]

0 commit comments

Comments
 (0)