Skip to content

Commit 24d762a

Browse files
authored
Merge branch 'master' into nullReferenceBug
2 parents a2cd921 + 0342cf0 commit 24d762a

File tree

1,410 files changed

+1495518
-5085286
lines changed

Some content is hidden

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

1,410 files changed

+1495518
-5085286
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: 162 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,153 @@
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+
69+
## 3.4.0 - February 2020
70+
71+
#### Az.CosmosDB
72+
* Added cmdlets for Gremlin, MongoDB, Cassandra and Table APIs.
73+
* Updated .NET SDK Version to 1.0.1
74+
* Added parameters ConflictResolutionPolicyMode, ConflictResolutionPolicyPath and ConflictResolutionPolicyPath in Set-AzCosmosDBSqlContainer.
75+
* Added new cmdlets for Sql API : New-CosmosDBSqlSpatialSpec, New-CosmosDBSqlCompositePath, New-CosmosDBSqlIncludedPathIndex, New-CosmosDBSqlIncludedPath
76+
77+
#### Az.Accounts
78+
* Disable context auto saving when AzureRmContext.json not available
79+
* Update the reference to Azure Powershell Common to 1.3.5-preview
80+
81+
#### Az.ApiManagement
82+
* **Get-AzApiManagementApiSchema** Fixed getting Open-Api Schema associated with an API
83+
https://github.com/Azure/azure-powershell/issues/10626
84+
* **New-AzApiManagementProduct*** and **Set-AzApiManagementProduct**
85+
- Fix documentation for https://github.com/Azure/azure-powershell/issues/10472
86+
* **Set-AzApiManagementApi**
87+
Added example to show how to update the ServiceUrl using the cmdlet
88+
89+
#### Az.Compute
90+
* Limit the number of VM status to 100 to avoid throttling when Get-AzVM -Status is performed without VM name.
91+
* Add Update-AzDiskEncryptionSet cmdlet
92+
* Add EncryptionType and DiskEncryptionSetId parameters to the following cmdlets:
93+
- New-AzDiskUpdateConfig, New-AzSnapshotUpdateConfig
94+
* Add ColocationStatus parameter to Get-AzProximityPlacementGroup cmdlet.
95+
96+
#### Az.DataFactory
97+
* Update ADF .Net SDK version to 4.7.0
98+
99+
#### Az.DeploymentManager
100+
* Adds LIST operations for resources
101+
* Adds capability for performing operations on Health Check steps
102+
103+
#### Az.HDInsight
104+
* Fix document error of New-AzHDInsightCluster.
105+
106+
#### Az.KeyVault
107+
* Add Name alias to VaultName attribute to make Remove-AzureKeyVault consistent with New-AzureKeyVault.
108+
109+
#### Az.Network
110+
* New example added to Set-AzNetworkWatcherConfigFlowLog.md to demonstrate Traffic Analytics disable scenario.
111+
* Add support for assigning management IP configuration to Azure Firewall - a dedicated subnet and Public IP that the firewall will use for its management traffic
112+
- Updated New-AzFirewall cmdlet:
113+
- Added parameter -ManagementPublicIpAddress (not mandatory) which accepts a Public IP Address object
114+
- Added method SetManagementIpConfiguration on firewall object - requires a subnet and a Public IP address as input - subnet name must be 'AzureFirewallManagementSubnet'
115+
* Corrected Get-AzNetworkSecurityGroup examples to show examples for NSG's instead of network interfaces.
116+
* Fixed typo in New-AzVpnSite command that was preventing resource id completer from completing a parameter.
117+
* Added support for Url Confiugration in Rewrite Rules Action Set in the Application Gateway
118+
- New cmdlets added:
119+
- New-AzApplicationGatewayRewriteRuleUrlConfiguration
120+
- Cmdlets updated with optional parameter - UrlConfiguration
121+
- New-AzApplicationGatewayRewriteRuleActionSet
122+
* Add suppport for NetworkWatcher ConnectionMonitor version 2 resources
123+
124+
#### Az.PolicyInsights
125+
* Support evaluating compliance prior to determining what resource to remediate
126+
- Add '-ResourceDiscoverMode' parameter to Start-AzPolicyRemediation
127+
* Add Get-AzPolicyMetadata cmdlet for getting policy metadata resources
128+
* Updated Get-AzPolicyState and Get-AzPolicyStateSummary for API version 2019-10-01
129+
130+
#### Az.RecoveryServices
131+
* Azure Site Recovery support for removing a replicated disk.
132+
* Azure Backup added support for adding tags while creating a Recovery Services Vault.
133+
134+
#### Az.Resources
135+
* Make -Scope optional in *-AzPolicyAssignment cmdlets with default to context subscription
136+
* Add examples of creating ADServicePrincipal with password and key credential
137+
138+
#### Az.Sql
139+
Fix New-AzSqlDatabaseSecondary cmdlet to check for PartnerDatabaseName existence instead of DatabaseName existence.
140+
141+
#### Az.Storage
142+
* Support set Table/Queue Encryption Keytype in Create Storage Account
143+
- New-AzStorageAccount
144+
* Show RequestId when StorageException don't have ExtendedErrorInformation
145+
* Fix the Example 6 of cmdlet Start-AzStorageBlobCopy
146+
147+
#### Az.Websites
148+
* Set-AzWebapp and Set-AzWebappSlot supports AlwaysOn, MinTls and FtpsState properties
149+
* Fixing issue where setting HttpsOnly along with changing AppservicePlan at the same time using the single Set-AzWebApp Command, was resetting HttpsOnly to default value
150+
1151
## 3.3.0 - January 2020
2152
#### Az.Accounts
3153
* Updated Add-AzEnvironment and Set-AzEnvironment to accept parameters AzureAttestationServiceEndpointResourceId and AzureAttestationServiceEndpointSuffix
@@ -34,7 +184,7 @@
34184
#### Az.DataFactory
35185
* Add AutoUpdateETA, LatestVersion, PushedVersion, TaskQueueId and VersionStatus properties for Get-AzDataFactoryV2IntegrationRuntime cmd
36186
* Update ADF .Net SDK version to 4.6.0
37-
* Add parameter 'PublicIPs' for 'Set-AzureRmDataFactoryV2IntegrationRuntime' cmd
187+
* Add parameter 'PublicIPs' for 'Set-AzDataFactoryV2IntegrationRuntime' cmd
38188
to enable create Azure-SSIS IR with static public IP addresses.
39189

40190
#### Az.DevTestLabs
@@ -78,8 +228,8 @@ to enable create Azure-SSIS IR with static public IP addresses.
78228
#### Az.Storage
79229
* Add breaking change warning message for DefaultAction Value change in a future release
80230
- Update-AzStorageAccountNetworkRuleSet
81-
* Support Get last sync time of Storage account by run get-AzureRMStorageAccount with parameter -IncludeGeoReplicationStats
82-
- Get-AzureRMStorageAccount
231+
* Support Get last sync time of Storage account by run get-AzStorageAccount with parameter -IncludeGeoReplicationStats
232+
- Get-AzStorageAccount
83233

84234
## 3.2.0 - December 2019
85235

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

183333
#### Az.DataFactory
184334
* Update ADF .Net SDK version to 4.4.0
185-
* 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.
186336

187337
#### Az.DataLakeStore
188338
* Update documentation of Get-AzDataLakeStoreDeletedItem and Restore-AzDataLakeStoreDeletedItem
@@ -392,13 +542,13 @@ to enable create Azure-SSIS IR with static public IP addresses.
392542
- Update-AzVirtualWan : added parameter VirtualWANType
393543
* Add support for EnableInternetSecurity property for HubVnetConnection, VpnConnection and ExpressRouteConnection
394544
- New cmdlets added:
395-
- Update-AzureRmVirtualHubVnetConnection
545+
- Update-AzVirtualHubVnetConnection
396546
- Cmdlets updated with optional parameters:
397-
- New-AzureRmVirtualHubVnetConnection : added parameter EnableInternetSecurity
398-
- New-AzureRmVpnConnection : added parameter EnableInternetSecurity
399-
- Update-AzureRmVpnConnection : added parameter EnableInternetSecurity
400-
- New-AzureRmExpressRouteConnection : added parameter EnableInternetSecurity
401-
- 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
402552
* Add support for Configuring TopLevel WebApplicationFirewall Policy
403553
- New cmdlets added:
404554
- New-AzApplicationGatewayFirewallPolicySetting
@@ -505,8 +655,8 @@ to enable create Azure-SSIS IR with static public IP addresses.
505655
- New cmdlets added:
506656
- New-AzureRmTrafficSelectorPolicy
507657
- Cmdlets updated with optional parameter -TrafficSelectorPolicies
508-
-New-AzureRmVirtualNetworkGatewayConnection
509-
-Set-AzureRmVirtualNetworkGatewayConnection
658+
-New-AzVirtualNetworkGatewayConnection
659+
-Set-AzVirtualNetworkGatewayConnection
510660
* Add support for ESP and AH protocols in network security rule configurations
511661
- Updated cmdlets:
512662
- 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)