Skip to content

Commit 4c823d0

Browse files
author
Maddie Clayton
authored
Merge pull request Azure#6096 from maddieclayton/previewtokvpreview
Preview to keyvault_preview
2 parents 00abc4f + f5b25f1 commit 4c823d0

File tree

3,498 files changed

+1627715
-2854373
lines changed

Some content is hidden

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

3,498 files changed

+1627715
-2854373
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,17 @@ FakesAssemblies/
215215
*.GhostDoc.xml
216216
pingme.txt
217217
groupMapping*.json
218+
/tools/index.json
219+
/Package/index.json
218220

219221
*.msi
220222
*.wixpdb
221223

222224
.vscode/
223-
/tools/AutomationTestFramework/RunBooks
224-
/tools/AutomationTestFramework/TestHelpers/TestHelpers.zip
225+
/tools/AutomationTestFramework/Runbooks
225226
Results
226227
Package
227228
.DS_Store
228229
.idea
230+
/src/ResourceManager/RecoveryServices.Backup/**/bin
231+
launchSettings.json

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dotnet: 2.1.2
55
dist: trusty
66

77
env:
8-
- NAME="azure-powershell-core" CONFIG="Release"
8+
- NAME="azure-powershell-core" CONFIG="Debug"
99

1010
services:
1111
- docker
@@ -21,13 +21,14 @@ before_install:
2121

2222
script:
2323
- dotnet msbuild build.proj /t:BuildNetcore /p:Configuration=$CONFIG
24+
- dotnet test src/Azure.PowerShell.Netcore.Test.sln --filter="AcceptanceType=CheckIn" --configuration $CONFIG
2425

2526
after_success:
2627
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
2728
docker build . -t $DOCKER_USER/$NAME:$TRAVIS_COMMIT --build-arg CONFIG=$CONFIG;
2829
docker tag $DOCKER_USER/$NAME:$TRAVIS_COMMIT $DOCKER_USER/$NAME:$TRAVIS_BRANCH;
2930

30-
docker login -u $DOCKER_USER -p $DOCKER_PASS;
31+
echo "$DOCKER_PASS" | docker login -u $DOCKER_USER --password-stdin;
3132

3233
docker push $DOCKER_USER/$NAME:$TRAVIS_COMMIT;
3334
docker push $DOCKER_USER/$NAME:$TRAVIS_BRANCH;

Azure.PowerShell.Netcore.sln

Lines changed: 715 additions & 50 deletions
Large diffs are not rendered by default.

AzurePowershell.Test.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<CommonTestDebug>.\src\ServiceManagement\Common\Commands.Common.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Common.Test.dll</CommonTestDebug>
88
<BackupTestDebug>.\src\ResourceManager\AzureBackup\Commands.AzureBackup.Test\bin\Debug\Microsoft.Azure.Commands.AzureBackup.Test.dll</BackupTestDebug>
99
<RecoveryServicesBackupTestDebug>.\src\ResourceManager\AzureBackup\Commands.RecoveryServices.Backup.Test\bin\Debug\Microsoft.Azure.Commands.RecoveryServices.Backup.Test.dll</RecoveryServicesBackupTestDebug>
10-
<SiteRecoveryTestDebug>.\src\ResourceManager\SiteRecovery\Commands.SiteRecovery.Test\bin\Debug\Microsoft.Azure.Commands.SiteRecovery.Test.dll</SiteRecoveryTestDebug>
1110
<SqlTestDebug>.\src\ResourceManager\Sql\Commands.Sql.Test\bin\Debug\Microsoft.Azure.Commands.Sql.Test.dll</SqlTestDebug>
1211
<ComputeDebug>.\src\ResourceManager\Compute\Commands.Compute.Test\bin\Debug\Microsoft.Azure.Commands.Compute.dll</ComputeDebug>
1312
<ComputeTestDebug>.\src\ResourceManager\Compute\Commands.Compute.Test\bin\Debug\Microsoft.Azure.Commands.Compute.Test.dll</ComputeTestDebug>

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ For the Storage data plane project, this change log is located at `src\Storage\C
117117

118118
#### Breaking Changes
119119

120-
Breaking changes should **not** be introduced into the repository without giving customers at least six months notice. For a description of breaking changes in Azure PowerShell, see [here](documentation/breaking-changes/breaking-changes-definition.md).
120+
Breaking changes should **not** be introduced into the repository without giving customers at least six months notice. For a description of breaking changes in Azure PowerShell and how to declare them in the code using the [various breaking change attributes](documentation/breaking-changes/breaking-changes-attribute-help.md), see [here](documentation/breaking-changes/breaking-changes-definition.md).
121121

122122
Whenever a service team announces a breaking change, they must add it to the `upcoming-breaking-changes.md` file in their respective service folder. When the service team is ready to release the module with the breaking change, they must move the corresponding information from `upcoming-breaking-changes.md` into the `current-breaking-changes.md` file located in their service folder.
123123

ChangeLog.md

Lines changed: 199 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,202 @@
1-
## 5.6.0 - March 2018
1+
## 6.0.0 - May 2018
2+
#### General
3+
* Set minimum dependency of modules to PowerShell 5.0
4+
5+
#### Azure.Storage
6+
* Support as Storage blob container name
7+
- New-AzureStorageBlobContainer
8+
- Remove-AzureStorageBlobContainer
9+
- Set-AzureStorageBlobContent
10+
- Get-AzureStorageBlobContent
11+
* Fix the issue that some Storage cmdlets failure output not contain detail failure information
12+
13+
#### AzureRM.ApiManagement
14+
* Introduce multiple breaking changes
15+
- Please refer to the migration guide for more information
16+
17+
#### AzureRM.Automation
18+
* Remove deprecated 'Tags' alias from cmdlets
19+
- 'Set-AzureRmAutomationRunbook'
20+
21+
#### AzureRM.Batch
22+
* Updated New-AzureBatchPool documentation to remove deprecated example
23+
24+
#### AzureRM.Cdn
25+
* Introduce multiple breaking changes
26+
- Please refer to the migration guide for more information
27+
28+
#### AzureRM.Compute
29+
* 'New-AzureRmVm' and 'New-AzureRmVmss' support verbose output of parameters
30+
* 'New-AzureRmVm' and 'New-AzureRmVmss' (simple parameter set) support assigning user defined and(or) system defined identities to the VM(s).
31+
* VMSS Redeploy and PerformMaintenance feature
32+
- Add new switch parameter -Redeploy and -PerformMaintenance to 'Set-AzureRmVmss' and 'Set-AzureRmVmssVM'
33+
* Add DisableVMAgent switch parameter to 'Set-AzureRmVMOperatingSystem' cmdlet
34+
* 'New-AzureRmVm' and 'New-AzureRmVmss' (simple parameter set) support a 'Win10' image.
35+
* 'Repair-AzureRmVmssServiceFabricUpdateDomain' cmdlet is added.
36+
* Introduce multiple breaking changes
37+
- Please refer to the migration guide for more details
38+
* 'Set-AzureRmVmDiskEncryptionExtension' makes AAD parameters optional
39+
40+
#### AzureRM.DataFactories
41+
* Remove deprecated 'Tags' alias from cmdlets
42+
- New-AzureRmDataFactory
43+
44+
#### AzureRM.DataFactoryV2
45+
* Updated the ADF .Net SDK version to 0.7.0-preview containing following changes:
46+
- Added execution parameters and connection managers property on ExecuteSSISPackage Activity
47+
- Updated PostgreSql, MySql llinked service to use full connection string instead of server, database, schema, username and password
48+
- Removed the schema from DB2 linked service
49+
- Removed schema property from Teradata linked service
50+
- Added LinkedService, Dataset, CopySource for Responsys
51+
52+
#### AzureRM.DataLakeAnalytics
53+
* Remove deprecated 'Tags' alias from cmdlets
54+
- 'New-AzureRmDataLakeAnalyticsAccount'
55+
- 'Set-AzureRmDataLakeAnalyticsAccount'
56+
57+
#### AzureRM.DataLakeStore
58+
* Add new feature of recursive Acl Change to Remove-AzureRmDataLakeStoreItemAclEntry, Set-AzureRmDataLakeStoreItemAclEntry, Set-AzureRmDataLakeStoreItemAcl
59+
* Add new cmdlet for retrieving the content summary under a directory
60+
* Add new cmdlet for retrieving the disk usage and Acl dump
61+
* Correct return type of Set-AzureRmDataLakeStoreItemAcl bool to IEnumerable<DataLakeStoreItemAce>
62+
* Correct return type of Set-AzureRmDataLakeStoreItemAclEntry bool to IEnumerable<DataLakeStoreItemAce>
63+
* Breaking changes in Export-AzureRmDataLakeStoreItem, Import-AzureRmDataLakeStoreItem, Remove-AzureRmDataLakeStoreItem
64+
65+
#### AzureRM.Dns
66+
* Introduce multiple breaking changes
67+
- Please refer to the migration guide for more information
68+
69+
#### AzureRM.EventHub
70+
* Updated Help for cmdlets with missing examples
71+
72+
#### AzureRM.Insights
73+
* Introduced multiple breaking changes
74+
- Please refer to the migration guide for more information
75+
76+
#### AzureRM.IotHub
77+
* Enable tags and Basic Sku to the IotHub
78+
79+
#### AzureRM.KeyVault
80+
* Breaking changes to support piping scenarios
81+
* Added new cmdlets: Backup/Restore-AzureKeyVaultManagedStorageAccount, Backup/Restore-AzureKeyVaultCertificate, Undo-AzureKeyVaultManagedStorageSasDefinitionRemoval, and Undo-AzureKeyVaultManagedStorageAccountRemoval
82+
83+
#### AzureRM.MachineLearning
84+
* Remove deprecated 'Tags' alias from cmdlets
85+
- Update-AzureRmMlCommitmentPlan
86+
87+
#### AzureRM.Media
88+
* Remove deprecated 'Tags' alias from cmdlets
89+
- 'Set-AzureRmMediaService'
90+
91+
#### AzureRM.Network
92+
* Add support for DDoS protection plan resource
93+
* Introduced multiple breaking changes
94+
- Please refer to the migration guide for more information
95+
96+
#### AzureRM.NotificationHubs
97+
* Introduce multiple breaking changes
98+
- Please refer to the migration guide for more information
99+
100+
#### AzureRM.OperationalInsights
101+
* Introduce multiple breaking changes
102+
- Please refer to the migration guide for more information
103+
104+
#### AzureRM.Profile
105+
* Enable context autosave by default
106+
* Add USGovernmentOperationalInsightsEndpoint and USGovernmentOperationalInsightsEndpointResourceId properties to Azure environment for US Gov.
107+
108+
#### AzureRM.RecoveryServices.SiteRecovery
109+
* Fixed Authentication Header in SiteRecovery scenarios
110+
111+
#### AzureRM.RedisCache
112+
* Introduced multiple breaking changes
113+
- Please refer to the migration guide for more information
114+
115+
#### AzureRM.Resources
116+
* Remove obsolete parameter -AtScopeAndBelow from Get-AzureRmRoledefinition call
117+
* Include assignments to deleted USers/Groups/ServicePrincipals in Get-AzureRmRoleAssignment result
118+
* Add Tab completers for Scope and ResourceType
119+
* Add convenience cmdlet for creating ServicePrincipals
120+
* Merge Get- and Find- functionality in Get-AzureRmResource
121+
* Add AD Cmdlets:
122+
- Remove-AzureRmADGroupMember
123+
- Get-AzureRmADGroup
124+
- New-AzureRmADGroup
125+
- Remove-AzureRmADGroup
126+
- Remove-AzureRmADUser
127+
- Update-AzureRmADApplication
128+
- Update-AzureRmADServicePrincipal
129+
- Update-AzureRmADUser
130+
131+
#### AzureRM.ServiceFabric
132+
* Update default Linux image version sku
133+
- NewAzureServiceFabricCluster.cs default UbuntuServer1604 Sku update
134+
135+
#### AzureRM.Storage
136+
* Introduced multiple breaking changes
137+
- Please refer to the migration guide for more information
138+
139+
#### AzureRM.Websites
140+
* Upgrade to latest version of the Websites SDK
141+
* Added -AssignIdentity & -Httpsonly properties for Set-AzureRmWebApp and Set-AzureRmWebAppSlot
142+
- Added two new cmdlets: Get-AzureRmWebAppSnapshots and Restore-AzureRmWebAppSnapshot
143+
144+
## 5.7.0 - April 2018
145+
146+
#### General
147+
* Updated to the latest version of the Azure ClientRuntime
148+
149+
#### Azure.Storage
150+
* Fix the issue that upload Blob and upload File cmdlets fail on FIPS policy enabled machines
151+
- Set-AzureStorageBlobContent
152+
- Set-AzureStorageFileContent
153+
154+
#### AzureRM.Billing
155+
* New Cmdlet Get-AzureRmEnrollmentAccount
156+
- cmdlet to retrieve enrollment accounts
157+
158+
#### AzureRM.CognitiveServices
159+
* Integrate with Cognitive Services Management SDK version 4.0.0.
160+
* Add Get-AzureRmCognitiveServicesAccountUsage operation.
161+
162+
#### AzureRM.Compute
163+
* `Get-AzureRmVmssDiskEncryptionStatus` supports encryption status at data disk level
164+
* `Get-AzureRmVmssVmDiskEncryptionStatus` supports encryption status at data disk level
165+
* Update for Zone Resilient
166+
* 'New-AzureRmVm' and 'New-AzureRmVmss' (simple parameter set) support availability zones.
167+
168+
#### AzureRM.ContainerRegistry
169+
* Decouple reliance on Commands.Resources.Rest and ARM/Storage SDKs.
170+
171+
#### AzureRM.DataLakeStore
172+
* Add debug functionality
173+
* Update the version of the ADLS dataplane SDK to 1.1.2
174+
* Export-AzureRmDataLakeStoreItem - Deprecated parameters PerFileThreadCount, ConcurrentFileCount and introduced parameter Concurrency
175+
* Import-AzureRMDataLakeStoreItem - Deprecated parametersPerFileThreadCount, ConcurrentFileCount and introduced parameter Concurrency
176+
* Get-AzureRMDataLakeStoreItemContent - Fixed the tail behavior for contents greater than 4MB
177+
* Set-AzureRMDataLakeStoreItemExpiry - Introduced new parameter set SetRelativeExpiry for setting relative expiration time
178+
* Remove-AzureRmDataLakeStoreItem - Deprecated parameter Clean.
179+
180+
#### AzureRM.EventHub
181+
* Fixed AlternameName in New-AzureRmEventHubGeoDRConfiguration
182+
183+
#### AzureRM.KeyVault
184+
* Updated cmdlets to include piping scenarios
185+
* Add deprecation messages for upcoming breaking change release
186+
187+
#### AzureRM.Network
188+
* Fix error message with Network cmdlets
189+
190+
#### AzureRM.ServiceBus
191+
* Added 'properties' in CorrelationFilter of Rules to support customproperties
192+
* updated New-AzureRmServiceBusGeoDRConfiguration help and fixed Rules cmdlet output
193+
* Fixed auto-forward properties in New-AzureRmServiceBusQueue and New-AzureRmServiceBusSubscription cmdlet
194+
195+
#### AzureRM.Sql
196+
* Add new cmdlet 'Stop-AzureRmSqlElasticPoolActivity' to support canceling the asynchronous operations on elastic pool
197+
* Update the response for cmdlets Get-AzureRmSqlDatabaseActivity and Get-AzureRmSqlElasticPoolActivity to reflect more information in the response
198+
199+
## 5.6.0 - March 2018
2200

3201
#### General
4202
* Fix issue with Default Resource Group in CloudShell

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To install the module containing the legacy RDFE cmdlets, run the following comm
3838
Install-Module -Name Azure
3939
```
4040

41-
If you have an earlier version of the Azure PowerShell modules installed from the PowerShell Gallery and would like to update to the latest version, run the following commands in an elevated PowerShell session:
41+
If you have an earlier version of the Azure PowerShell modules installed from the PowerShell Gallery and would like to update to the latest version, run the following commands in an elevated PowerShell session. Update-Module installs the new version side-by-side with the old version. It does not remove the old version.
4242

4343
```powershell
4444
# Update to the latest version of AzureRM

TestMappings.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@
5959
],
6060
"src/ResourceManager/DataFactories/": [
6161
".\\src\\ResourceManager\\DataFactories\\Commands.DataFactories.Test\\bin\\Debug\\Microsoft.Azure.Commands.DataFactories.Test.dll",
62-
".\\src\\ResourceManager\\DataFactories\\Commands.DataFactoryV2.Test\\bin\\Debug\\Microsoft.Azure.Commands.DataFactoryV2.Test.dll",
6362
".\\src\\ResourceManager\\StreamAnalytics\\Commands.StreamAnalytics.Test\\bin\\Debug\\Microsoft.Azure.Commands.StreamAnalytics.Test.dll"
6463
],
64+
"src/ResourceManager/DataFactoryV2/": [
65+
".\\src\\ResourceManager\\DataFactoryV2\\Commands.DataFactoryV2.Test\\bin\\Debug\\Microsoft.Azure.Commands.DataFactoryV2.Test.dll"
66+
],
6567
"src/ResourceManager/DataLakeAnalytics/": [
6668
".\\src\\ResourceManager\\DataLakeAnalytics\\Commands.DataLakeAnalytics.Test\\bin\\Debug\\Microsoft.Azure.Commands.DataLakeAnalytics.Test.dll"
6769
],
@@ -92,6 +94,9 @@
9294
"src/ResourceManager/IotHub/": [
9395
".\\src\\ResourceManager\\IotHub\\Commands.IotHub.Test\\bin\\Debug\\Microsoft.Azure.Commands.IotHub.Test.dll"
9496
],
97+
"src/ResourceManager/DeviceProvisioningServices/": [
98+
".\\src\\ResourceManager\\DeviceProvisioningServices\\Commands.DeviceProvisioningServices.Test\\bin\\Debug\\Microsoft.Azure.Commands.DeviceProvisioningServices.dll"
99+
],
95100
"src/ResourceManager/KeyVault/": [
96101
".\\src\\ResourceManager\\Compute\\Commands.Compute.Test\\bin\\Debug\\Microsoft.Azure.Commands.Compute.Test.dll",
97102
".\\src\\ResourceManager\\KeyVault\\Commands.KeyVault.Test\\bin\\Debug\\Microsoft.Azure.Commands.KeyVault.Test.dll",
@@ -117,15 +122,17 @@
117122
".\\src\\ResourceManager\\RecoveryServices.Backup\\Commands.RecoveryServices.Backup.Test\\bin\\Debug\\Microsoft.Azure.Commands.RecoveryServices.Backup.Test.dll",
118123
".\\src\\ResourceManager\\ServiceFabric\\Commands.ServiceFabric.Test\\bin\\Debug\\Microsoft.Azure.Commands.ServiceFabric.Test.dll",
119124
".\\src\\ResourceManager\\Sql\\Commands.Sql.Test\\bin\\Debug\\Microsoft.Azure.Commands.Sql.Test.dll",
120-
".\\src\\ResourceManager\\Dns\\Commands.Dns.Test\\bin\\Debug\\Microsoft.Azure.Commands.Dns.Test.dll",
121-
".\\src\\ResourceManager\\KeyVault\\Commands.KeyVault.Test\\bin\\Debug\\Microsoft.Azure.Commands.KeyVault.Test.dll"
125+
".\\src\\ResourceManager\\Dns\\Commands.Dns.Test\\bin\\Debug\\Microsoft.Azure.Commands.Dns.Test.dll"
122126
],
123127
"src/ResourceManager/NotificationHubs /": [
124128
".\\src\\ResourceManager\\NotificationHubs\\Commands.NotificationHubs.Test\\bin\\Debug\\Microsoft.Azure.Commands.NotificationHubs.Test.dll"
125129
],
126130
"src/ResourceManager/OperationalInsights/": [
127131
".\\src\\ResourceManager\\OperationalInsights\\Commands.OperationalInsights.Test\\bin\\Debug\\Microsoft.Azure.Commands.OperationalInsights.Test.dll"
128132
],
133+
"src/ResourceManager/PolicyInsights/": [
134+
".\\src\\ResourceManager\\PolicyInsights\\Commands.PolicyInsights.Test\\bin\\Debug\\Microsoft.Azure.Commands.PolicyInsights.Test.dll"
135+
],
129136
"src/ResourceManager/PowerBIEmbedded/": [
130137
".\\src\\ResourceManager\\PowerBIEmbedded\\Commands.PowerBIEmbedded.Test\\bin\\Debug\\Microsoft.Azure.Commands.PowerBIEmbedded.Test.dll"
131138
],
@@ -137,8 +144,7 @@
137144
],
138145
"src/ResourceManager/RecoveryServices/": [
139146
".\\src\\ResourceManager\\RecoveryServices.Backup\\Commands.RecoveryServices.Backup.Test\\bin\\Debug\\Microsoft.Azure.Commands.RecoveryServices.Backup.Test.dll",
140-
".\\src\\ResourceManager\\RecoveryServices\\Commands.RecoveryServices.Test\\bin\\Debug\\Microsoft.Azure.Commands.RecoveryServicesArm.Test.dll",
141-
".\\src\\ResourceManager\\SiteRecovery\\Commands.SiteRecovery.Test\\bin\\Debug\\Microsoft.Azure.Commands.SiteRecovery.Test.dll"
147+
".\\src\\ResourceManager\\RecoveryServices\\Commands.RecoveryServices.Test\\bin\\Debug\\Microsoft.Azure.Commands.RecoveryServicesArm.Test.dll"
142148
],
143149
"src/ResourceManager/RedisCache/": [
144150
".\\src\\ResourceManager\\RedisCache\\Commands.RedisCache.Test\\bin\\Debug\\Microsoft.Azure.Commands.RedisCache.Test.dll"
@@ -155,16 +161,12 @@
155161
"src/ResourceManager/Scheduler/": [
156162
".\\src\\ResourceManager\\Scheduler\\Commands.Scheduler.Test\\bin\\Debug\\Microsoft.Azure.Commands.Scheduler.Test.dll"
157163
],
158-
"src/ResourceManager/ServerManagement/": [],
159164
"src/ResourceManager/ServiceBus/": [
160165
".\\src\\ResourceManager\\ServiceBus\\Commands.ServiceBus.Test\\bin\\Debug\\Microsoft.Azure.Commands.ServiceBus.Test.dll"
161166
],
162167
"src/ResourceManager/ServiceFabric/": [
163168
".\\src\\ResourceManager\\ServiceFabric\\Commands.ServiceFabric.Test\\bin\\Debug\\Microsoft.Azure.Commands.ServiceFabric.Test.dll"
164169
],
165-
"src/ResourceManager/SiteRecovery/": [
166-
".\\src\\ResourceManager\\SiteRecovery\\Commands.SiteRecovery.Test\\bin\\Debug\\Microsoft.Azure.Commands.SiteRecovery.Test.dll"
167-
],
168170
"src/ResourceManager/Sql/": [
169171
".\\src\\ResourceManager\\Sql\\Commands.Sql.Test\\bin\\Debug\\Microsoft.Azure.Commands.Sql.Test.dll"
170172
],
@@ -204,5 +206,8 @@
204206
],
205207
"tools/BuildPackagesTask/": [
206208
".\\tools\\BuildPackagesTask\\Microsoft.Azure.Build.Tasks.Test\\bin\\Debug\\Microsoft.Azure.Build.Tasks.Test.dll"
209+
],
210+
"tools/RepoTasks/": [
211+
".\\tools\\RepoTasks\\RepoTasks.Cmdlets.Tests\\bin\\Debug\\RepoTasks.Cmdlets.Tests.dll"
207212
]
208213
}

appveyor.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,27 @@
11
clone_folder: c:\ps
2+
clone_depth: 1
23
branches:
34
only:
45
- master
56
environment:
6-
nodejs_version: "6"
77
github_access_token:
88
secure: VMFbecLLHzDq/09YDPbcM0VDDSwwgY57vr5GXK6cZZ4Ti/Xs5RZoylzV8MMr1350
99

1010
before_build:
11-
- ps: Get-ChildItem -Path ("$env:programfiles" + "\WindowsPowerShell\Modules") | Where-Object { $_.FullName -match 'azure' } | foreach { Remove-Item $_.FullName -Recurse -Force }
12-
- ps: Install-Module -Name PowerShellGet -Force
13-
- ps: Install-Module -Name SplitPipeline -Force
14-
- ps: Install-Module -Name platyPS -Force
15-
- ps: Install-Module -Name Azure -Force
16-
- ps: Install-Module -Name AzureRM -Force -AllowClobber
17-
- ps: Install-Module -Name AzureStack -Force -AllowClobber
18-
- ps: Install-Product node $env:nodejs_version
1911
- git config --global credential.helper store
2012
- ps: ac "$env:USERPROFILE\.git-credentials" "https://$($env:github_access_token):[email protected]`n"
2113
- git config --global user.email %email%
2214
- git config --global user.name %name%
23-
- git clone -q https://github.com/MicrosoftDocs/azure-psdocs-ciscripts azpsci
24-
- cd azpsci
25-
- npm install
26-
- npm install typescript
27-
- node ./node_modules/typescript/bin/tsc
2815
- cd ..
16+
- git clone -q https://github.com/MicrosoftDocs/azure-psdocs-ciscripts azpsci
17+
- dotnet publish azpsci -c Release -o ../ci
2918
build_script:
30-
- node azpsci/out/ci0.js src c:\projects\_output
19+
- dotnet ./ci/azpsci.dll docs
3120

3221
test: off
3322
on_success:
3423
- git clone -q --branch=%target_branch% %content_repo% %TEMP%\Azure
3524
- cd %TEMP%\Azure
36-
- ps: ls c:\projects\_output -dir | % { copy $_.FullName . -Recurse -Force }
25+
- ps: ls C:\docs -dir | % { copy $_.FullName . -Recurse -Force }
3726
- git add -A
3827
- git diff --quiet --exit-code --cached || git commit -m "Sync docs from source code repo to content repo." && git push origin %target_branch% && appveyor AddMessage "Content Updated"

0 commit comments

Comments
 (0)