Skip to content

Update websites-preview with latest from preview branch #5234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 249 commits into from
Jan 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
249 commits
Select commit Hold shift + click to select a range
f574acb
Convert tests to Pester and add to CI build
azdevxps Nov 17, 2017
0c4c0ca
fix build issues
Nov 17, 2017
4f8fcbf
Merge branch 'preview' of https://github.com/Azure/azure-powershell i…
Nov 17, 2017
ecadce6
additional fixes
Nov 17, 2017
c222324
Datamigration cmdlets
sichoudh Nov 18, 2017
1d5b90e
Fix code analysis error
sichoudh Nov 18, 2017
51b0ae2
Doc fix
sichoudh Nov 18, 2017
544ba07
csproj file changes for Nuget
sichoudh Nov 18, 2017
0b4edbe
csproj file changes
sichoudh Nov 18, 2017
8154fd2
test csproj changes
sichoudh Nov 18, 2017
dd9f9d1
csproj file changes
sichoudh Nov 18, 2017
cac4a86
Upgrade to SRP SDK 7.0 with migrate NetworkRule API change
blueww Nov 17, 2017
c9e7e7e
Support StorageV2 Account Kind
blueww Nov 17, 2017
7c0ca93
Address comments feedback
sichoudh Nov 21, 2017
5fbc9c9
Doc fix
sichoudh Nov 21, 2017
47a1e10
Remove analyzer ref from csproj file
sichoudh Nov 21, 2017
a3a4047
Datamigration as required module
sichoudh Nov 21, 2017
cf612e9
remove unnecessary reference of AzureRM.Storage
blueww Nov 22, 2017
b75a0a2
Fix the OutputType of of new/Set-AzureRMstorageAccount
blueww Nov 22, 2017
1b26995
wix file changes
sichoudh Nov 22, 2017
925f623
Update Commands.DataMigration.csproj
cormacpayne Nov 22, 2017
8c29a7d
Fix release build of DataMigration
cormacpayne Nov 22, 2017
4f725b0
Fix typo in csproj file and issue with solution
cormacpayne Nov 22, 2017
b28202e
copy dll file into output folder
sichoudh Nov 22, 2017
fc3822c
wix file changes to add dll
sichoudh Nov 23, 2017
c441083
Add changelog for storagev2
blueww Nov 23, 2017
6e77f89
Merge pull request #5012 from wastoresh/storage-v2
cormacpayne Nov 27, 2017
9c85d05
Doc changes
sichoudh Nov 27, 2017
e40dbde
Support for updating topics and event subscriptions.
kalyanaj Nov 30, 2017
ca3415c
Merge branch 'preview' into ImproveTests
twitchax Nov 30, 2017
2feef82
Updated changelog and generated help for the new cmdlets.
kalyanaj Nov 30, 2017
561f8a1
Skipping a test due to a known issue.
kalyanaj Dec 1, 2017
8f4da90
Add new test session records to project.
kalyanaj Dec 1, 2017
c93131b
Fix dependency issues
azdevxps Dec 4, 2017
38b745a
resolve merge conflicts
azdevxps Dec 4, 2017
7857680
Update Run-UnitTests.ps1
Dec 4, 2017
80fa707
Initialize deletemodule.psm1
azdevxps Dec 4, 2017
c7f4cab
Merge branch 'preview' of https://github.com/Azure/azure-powershell i…
kalyanaj Dec 4, 2017
c448fad
Move end variables to appsettings.json
sichoudh Dec 5, 2017
d5361c8
Merge branch 'preview' into ImproveTests
markcowl Dec 5, 2017
2989160
Break the build when cmdlets do not map to doc grouping.
twitchax Dec 5, 2017
3618743
Netcore build fixes.
twitchax Dec 6, 2017
4c8a54c
Fix for resources.
twitchax Dec 6, 2017
395f581
Incorporated code review comments.
kalyanaj Dec 6, 2017
70b91ea
Fix authentication error
azdevxps Dec 6, 2017
5445007
Merge.
twitchax Dec 7, 2017
01edb2c
Fix merge miss.
twitchax Dec 7, 2017
3813e7e
Fix for build.
twitchax Dec 7, 2017
84473f4
Make the build a bit simpler.
twitchax Dec 7, 2017
19e25f3
Incorporated CR feedback.
kalyanaj Dec 7, 2017
7327bec
Update Netcore psd1.
twitchax Dec 7, 2017
15623e8
Initialize config instance earlier
sichoudh Dec 7, 2017
5c36348
Add '-' in FQDN between a name and a resource group name.
sergey-shandar Dec 8, 2017
9f3793b
Use proper path for settings file
sichoudh Dec 8, 2017
20bc7c6
add functionality to deletemodules script
azdevxps Dec 8, 2017
27e400c
Get Migration task parameter set changes
sichoudh Dec 8, 2017
54237bd
Support Set-AzureRMstorageAccount with Kind StorageV2
blueww Dec 8, 2017
8238d22
Re-record the tests and re-enable the skipped test.
kalyanaj Dec 8, 2017
c764243
Image Name colon semantic, bug fixes
sergey-shandar Dec 8, 2017
35002ec
Uncomment a previously commented out test.
kalyanaj Dec 8, 2017
3e1c021
merge from sergey-spin branch
sergey-shandar Dec 8, 2017
2dab14f
Remove Strategies references from Command.Network
sergey-shandar Dec 8, 2017
878de68
Add filtering and warnings
azdevxps Dec 9, 2017
152d68a
Improved Progress Bar
sergey-shandar Dec 9, 2017
cc14cc6
small fix
azdevxps Dec 9, 2017
be7104b
Add E2E test that diagnostics extension command can take the StorageC…
yantang-msft Dec 9, 2017
d35d627
bug fixes
azdevxps Dec 11, 2017
f351493
fix tests
azdevxps Dec 11, 2017
ce0d44f
No IReportProgress.
sergey-shandar Dec 11, 2017
09cee1c
comments.
sergey-shandar Dec 11, 2017
321007a
more comments.
sergey-shandar Dec 11, 2017
15b94d4
Merge branch 'preview' into preview
cormacpayne Dec 11, 2017
0405a01
Merge branch 'preview' into sergey-help
sergey-shandar Dec 11, 2017
3373b6f
minor
sergey-shandar Dec 11, 2017
8630c32
put pester invocation in job
azdevxps Dec 11, 2017
7ddcc2b
Add missing LocationCompleter attribute
azdevxps Dec 11, 2017
81f14c5
Allow user to put quote in front of tabbed completion
azdevxps Dec 12, 2017
08ed3ad
update change logs
azdevxps Dec 12, 2017
e5ddff7
Merge branch 'AzureRm.Storage.V2' into storage-v2
markcowl Dec 12, 2017
4cee3a7
Update Commands.Storage.Netcore.csproj
markcowl Dec 12, 2017
f968e62
Made Tag optional parameter in UpdateTopic, and re-generated help files.
kalyanaj Dec 12, 2017
ebf8f3b
Change the -Kind in Set-AzureRMstorageAccount to -UpgradeToStorageV2
blueww Dec 12, 2017
11d15be
Merge pull request #5133 from Azure/storage-v2
markcowl Dec 12, 2017
41ce64e
[AzureRM.Storage] Upgrade version and ReleaseNotes
blueww Dec 12, 2017
cc1aa02
Fix a Unit Test issue
blueww Dec 12, 2017
218890d
Merge branch 'AzureRm.Storage.V2' into storage-v2
markcowl Dec 12, 2017
4785135
Changes as needed for build
sichoudh Dec 12, 2017
c677c35
Strategy 2.0
sergey-shandar Dec 12, 2017
c4af506
StrategiesVirtualMachineTests
sergey-shandar Dec 13, 2017
c516bf1
Merge pull request #5110 from wastoresh/storage-v2
markcowl Dec 13, 2017
dec9de0
Update AzureRM to include new storage management version
markcowl Dec 13, 2017
085d9bb
fix tests
azdevxps Dec 13, 2017
0d3987e
Test fix.
Dec 13, 2017
d3f5e25
Merge branch 'preview' into ImproveTests
Dec 13, 2017
76129c3
Merge branch 'preview' into release-5.1.1
markcowl Dec 13, 2017
55bb34d
added test record.
Dec 13, 2017
d594572
Merge pull request #11 from hovsepm/sergey-newvmtest
sergey-shandar Dec 13, 2017
a903968
[AzureRM.Storage]remove the private package for SRP SDK 7.1.0
blueww Dec 13, 2017
2134884
Merge branch 'preview' of https://github.com/Azure/azure-powershell i…
azdevxps Dec 13, 2017
41ca6db
Removed local NuGet package that was causing build issues for KeyVaul…
Dec 13, 2017
5c98f90
last tweaks
azdevxps Dec 13, 2017
fed120a
remove unnecessary comment
azdevxps Dec 13, 2017
29bfc5e
Remove progress.
twitchax Dec 13, 2017
623c316
Merge branch 'preview' into sergey-help
cormacpayne Dec 14, 2017
88b334c
Update Stop-AzureRmSqlDatabaseActivity.md
CarlRabeler Dec 14, 2017
ab26e05
Rule update.
twitchax Dec 14, 2017
ee63ac5
Removed the Update-AzureRmEventGridTopic added in this PR based on PR…
kalyanaj Dec 14, 2017
016d464
Updated changelog.
kalyanaj Dec 14, 2017
6b6fd8f
resources cmdlets
azdevxps Dec 15, 2017
a0dde7c
Update of WAD schema model classes
chhabaramesh Dec 15, 2017
56d3da4
Merge pull request #5063 from twitchax/preview
cormacpayne Dec 15, 2017
50ac304
fix PR comments
azdevxps Dec 15, 2017
8dab625
Merge pull request #5008 from sichoudh/release-5.1.1
markcowl Dec 15, 2017
eeb86d9
Make necessary changes to BaseCmdlets
azdevxps Dec 15, 2017
66bab1c
Update versions for EventGrid release
cormacpayne Dec 15, 2017
20f0f7b
Fix example for New-AzureRmVirtualNe
Dec 15, 2017
7b9a357
qMerge branch 'preview' of github.com:Azure/azure-powershell into gro…
twitchax Dec 15, 2017
96900a3
Another rule fix.
twitchax Dec 15, 2017
069a758
Merge pull request #5137 from wastoresh/storage-v2
markcowl Dec 16, 2017
38d45cd
Merge pull request #5130 from maddieclayton/missingLC
markcowl Dec 16, 2017
0779334
initial work
azdevxps Dec 16, 2017
d1be44c
fixes based on PR comments
azdevxps Dec 16, 2017
76cee32
Merge branch 'ImproveTests' of https://github.com/maddieclayton/azure…
azdevxps Dec 16, 2017
4034691
Merge pull request #5154 from Azure/maddieclayton-patch-1
cormacpayne Dec 16, 2017
6474078
Update Stop-AzureRmSqlDatabaseActivity.md
cormacpayne Dec 16, 2017
08b43c4
Merge pull request #5128 from maddieclayton/fixLC
Dec 16, 2017
c7eb49a
Merge pull request #5106 from sergey-shandar/sergey-help
markcowl Dec 16, 2017
463b866
Merge pull request #5124 from yantang-msft/TestCase
markcowl Dec 16, 2017
e620230
Merge pull request #5129 from sergey-shandar/sergey-progress-estimate2
markcowl Dec 16, 2017
c24f77c
Merge pull request #5136 from sergey-shandar/sergey-newvmtest
markcowl Dec 16, 2017
6865be3
Merge pull request #5148 from Azure/CarlRabeler-patch-1
Dec 18, 2017
54ac4bc
Added a placeholder file so that the LocalFeed folder exists in sourc…
Dec 18, 2017
cb00018
Update Compute client library to version 17.0.1 to fix Get-AzureRmCom…
hyonholee Dec 11, 2017
929b91f
Update change logs for previously released modules
azdevxps Dec 18, 2017
f4634bb
Address PR comments
azdevxps Dec 18, 2017
2b81057
Address PR comments
azdevxps Dec 19, 2017
d870065
Merge pull request #5061 from kalyanaj/preview
markcowl Dec 19, 2017
418a1f2
Merge pull request #5004 from maddieclayton/ImproveTests
Dec 19, 2017
84c8c73
Merge remote-tracking branch 'remotes/upstream/preview' into RemoveHt…
Dec 19, 2017
a2ebcee
Merge pull request #5132 from maddieclayton/updatechangelogs
markcowl Dec 20, 2017
1047cd0
Merge pull request #5140 from maddieclayton/RollBack
markcowl Dec 20, 2017
e21bd43
Add -asjob and update tests
azdevxps Dec 20, 2017
a72655b
Merge pull request #5079 from twitchax/group_fix
markcowl Dec 20, 2017
d257f3d
Merge pull request #5131 from hyonholee/release-5.1.0
markcowl Dec 20, 2017
05f335a
Merge pull request #5153 from maddieclayton/AsJob1
markcowl Dec 20, 2017
a21a378
Remove extra validation of the sku names
selasagi Dec 20, 2017
b0a5435
Update example for VirtualNetworkGateway so it can be run
Dec 20, 2017
c0a2ccf
Fix for AppDomain clash.
twitchax Dec 20, 2017
b7bc460
Merge pull request #1 from twitchax/RemoveHttpNuget
MiYanni Dec 21, 2017
7fb4b98
Add more cmdlets and tests
azdevxps Dec 21, 2017
c624199
Add support for KeyVault Access Token
markcowl Dec 21, 2017
c0748d1
adding description of Mode options
Dec 21, 2017
f017764
Final network cmdlets/tests
azdevxps Dec 21, 2017
5d0e2f6
revert change to csproj
azdevxps Dec 21, 2017
e7d0b4a
remove unused test
azdevxps Dec 21, 2017
26a2de3
fix tests
azdevxps Dec 21, 2017
a1736fb
Merge pull request #5170 from sdwheeler/sdw-deployLF
Dec 21, 2017
22460ed
Merge pull request #5167 from Azure/maddieclayton-patch-2
markcowl Dec 21, 2017
c96ac5c
Merge branch 'preview' into AsJobNetwork
markcowl Dec 21, 2017
026c85a
update help files
azdevxps Dec 21, 2017
5a59b9e
Merge branch 'AsJobNetwork' of https://github.com/maddieclayton/azure…
azdevxps Dec 21, 2017
e18fd1c
Merge pull request #5165 from selasagi/pbi-dedicated
Dec 22, 2017
d068aed
Update New-AzureRmAlertRuleEmail.md
y0j0 Dec 22, 2017
bf27632
Merge pull request #5179 from cechovsky/patch-2
Dec 22, 2017
93904d6
Add the new cmdlets to the parent help file
selasagi Dec 24, 2017
bce05cd
Update ChangeLog.md
chhabaramesh Dec 26, 2017
c001d1b
Merge pull request #5178 from Azure/AzureRm.Storage.V2
Dec 27, 2017
f76001a
Update DefaultProfile to capitalize Azure.
Dec 27, 2017
1ffb0da
Merge branch 'preview' into master
Dec 27, 2017
fd5cbff
Update PublicIpAddressTests.ps1
Dec 27, 2017
69d7f52
Update NetworkInterfaceTests.ps1
Dec 27, 2017
290c22f
Update NetworkInterfaceTests.ps1
Dec 27, 2017
456d1e0
Update the parent help file
selasagi Dec 27, 2017
0241548
Update main markdown file
selasagi Dec 27, 2017
40379de
Change RemoveAll to Clear
jabbera Dec 27, 2017
bb9fc88
Update PublicIpAddressTests.ps1
Dec 27, 2017
1ddab9a
first tests and cmdlets
azdevxps Dec 22, 2017
19a1226
more tests
Dec 27, 2017
f0f9d4a
Merge pull request #5196 from jabbera/patch-1
Dec 28, 2017
f4ace34
Fixed typo in readme.md
Dec 28, 2017
a2dd540
Merge pull request #5198 from Azure/hovsepm-patch-1
Dec 28, 2017
23efe2b
add more tests
Dec 28, 2017
0ddb46f
Merge pull request #5150 from chhabaramesh/preview
markcowl Dec 29, 2017
06b2476
Merge pull request #5186 from chhabaramesh/patch-1
markcowl Dec 29, 2017
59aa7a2
Merge pull request #5158 from markcowl/kvtoken
markcowl Dec 29, 2017
eb9ff03
Merge pull request #5191 from Azure/maddieclayton-patch-3
markcowl Dec 29, 2017
978b243
Merge pull request #5190 from Azure/master
markcowl Dec 29, 2017
1227f36
Resolve some help issue.
blueww Dec 12, 2017
c2fdaad
Update help per Maddie's comments.
blueww Dec 25, 2017
047ad1e
Merge branch 'preview' of https://github.com/Azure/azure-powershell i…
Jan 2, 2018
a649c3e
Add missing network tests/cmdlets
Jan 2, 2018
a19b781
Merge branch 'preview' of https://github.com/Azure/azure-powershell i…
Jan 2, 2018
7750635
add more compute cmdlets and tests
Jan 2, 2018
a3b6fb9
add help files
Jan 2, 2018
143fd47
Update ConvertTo-AzureRmVMManagedDisk.md
Jan 2, 2018
45ddaec
Update Disable-AzureRmVmssDiskEncryption.md
Jan 2, 2018
71c51d6
Update New-AzureRmImage.md
Jan 2, 2018
b698e81
Update Set-AzureRmVMExtension.md
Jan 3, 2018
4ce051b
Update Set-AzureRmVmssVM.md
Jan 3, 2018
a82e10c
fix cmdlet
Jan 3, 2018
506e407
Merge branch 'AddAsJobCompute' of https://github.com/maddieclayton/az…
Jan 3, 2018
db39a52
Update ChangeLog.md
Jan 3, 2018
c1de544
Update ChangeLog.md
Jan 3, 2018
7bbe523
Update ChangeLog.md
Jan 3, 2018
e46acbc
Re-generate AzureRM.Storage help.
blueww Jan 3, 2018
0a542a6
Merge pull request #5157 from wastoresh/storage-v2
Jan 3, 2018
3b39090
Merge pull request #5195 from selasagi/pbi-dedicated
markcowl Jan 3, 2018
c214986
add asjob to cmdlets and update help and tests
azdevxps Jan 4, 2018
f659ae1
Added simpler example
BMuuN Jan 4, 2018
11f50a2
Merge pull request #5226 from BMuuN/patch-1
Jan 4, 2018
cb33292
Update Add-AzureRmMlWebServiceRegionalProperty.md
Jan 5, 2018
15054ce
Update Export-AzureRmMlWebService.md
Jan 5, 2018
897bada
Update Get-AzureRmMlCommitmentAssociation.md
Jan 5, 2018
1ad9ad0
Update Get-AzureRmMlCommitmentPlan.md
Jan 5, 2018
1635d37
Update Get-AzureRmMlCommitmentPlanUsageHistory.md
Jan 5, 2018
80986e5
Update Get-AzureRmMlWebService.md
Jan 5, 2018
d322881
Update Get-AzureRmMlWebServiceKeys.md
Jan 5, 2018
eddccb0
Update Import-AzureRmMlWebService.md
Jan 5, 2018
8825969
Update Move-AzureRmMlCommitmentAssociation.md
Jan 5, 2018
0f07486
Update New-AzureRmMlCommitmentPlan.md
Jan 5, 2018
69177c7
Update New-AzureRmMlWebService.md
Jan 5, 2018
0551d28
Update Remove-AzureRmMlCommitmentPlan.md
Jan 5, 2018
2291884
Update Remove-AzureRmMlWebService.md
Jan 5, 2018
5f6eaea
Update Update-AzureRmMlCommitmentPlan.md
Jan 5, 2018
59d9be0
Update Update-AzureRmMlWebService.md
Jan 5, 2018
e2afe6d
add other files with this issue
azdevxps Jan 5, 2018
984fc62
Update Update-AzureRmVmss.md
Jan 5, 2018
d61cd24
Update ChangeLog.md
Jan 5, 2018
2643ead
Merge pull request #5232 from maddieclayton/removeparagraph
markcowl Jan 5, 2018
b391612
Merge branch 'preview' into AsJobNetwork
Jan 5, 2018
76d3e93
Merge branch 'preview' into AsJobNetwork
Jan 5, 2018
192c2a2
Inluding stack specific Azure.Storage tests
bganapa Nov 20, 2017
f02735e
Including stack specific AzureRm.Storage tests
bganapa Nov 20, 2017
23f68b2
Azure.Storage module changes for consuming IStorageContext
bganapa Nov 20, 2017
5659969
AzureRM.Storage module making use of IStorageContext and IStorageServ…
bganapa Nov 17, 2017
407f10e
Consuming IStorageContext in the Compute module
bganapa Nov 17, 2017
fb40a58
Deleting stack specific common project and resource models
bganapa Nov 20, 2017
b133851
Adding the reference to Common.Storage project
bganapa Nov 20, 2017
a3f7b7e
Addressing review comments, Converted tests to XUnit tests
bganapa Dec 3, 2017
b045828
Removing the un-needed resource library in management storage test pr…
bganapa Dec 5, 2017
e8b9e40
Addressing PR comments, removing the changes in Commands.Common.Test.…
bganapa Jan 2, 2018
20062df
Removing commented lines
bganapa Jan 5, 2018
c6d5c96
Merge pull request #5208 from maddieclayton/AddAsJobCompute
Jan 5, 2018
f8d9d10
Merge pull request #5223 from maddieclayton/AsJobStorage
markcowl Jan 5, 2018
6179029
Merge pull request #5176 from maddieclayton/AsJobNetwork
Jan 5, 2018
a008fd6
Merge pull request #5011 from bganapa/storage-context-pr
markcowl Jan 5, 2018
7e4e262
Fix example in Remove-AzureRmVMSecret
Jan 5, 2018
c987a50
Merge pull request #5239 from Azure/maddieclayton-patch-1
Jan 5, 2018
af4a016
Merge pull request #5139 from MiYanni/RemoveHttpNuget
Jan 6, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

# Include the build.
!src/Package/Release/ResourceManager/**/*
!src/Package/Debug/ResourceManager/**/*
!src/Package/Debug/ResourceManager/**/*
!tools/InstallationTests/NetcoreTests/**/*
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sudo: required
language: csharp
mono: none
dotnet: 2.0.0
dotnet: 2.1.2
dist: trusty

env:
Expand All @@ -13,6 +13,11 @@ services:
before_install:
- sudo apt-get update
- sudo apt-get install docker-ce
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
- curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
- sudo apt-get update
- sudo apt-get install -y powershell
- sudo pwsh -NonInteractive -NoLogo -NoProfile -Command "Install-Module platyPS -Force -Confirm:\$false -Scope CurrentUser"

script:
- dotnet msbuild build.proj /t:BuildNetcore /p:Configuration=$CONFIG
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ FROM microsoft/powershell

ARG CONFIG=Release

COPY src/Package/${CONFIG}/ResourceManager /usr/local/share/powershell/Modules
COPY src/Package/${CONFIG}/ResourceManager/AzureResourceManager /usr/local/share/powershell/Modules
COPY tools/InstallationTests/NetcoreTests /azpstests
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Below is a table containing the various Azure PowerShell rollup modules found in
| Rollup Module for ARM Cmdlets | `AzureRM` | [![AzureRM](https://img.shields.io/powershellgallery/v/AzureRM.svg?style=flat-square&label=AzureRM)](https://www.powershellgallery.com/packages/AzureRM/) |
| Rollup Module for .NET Core Cmdlets | `AzureRM.Netcore` | [![AzureRM.Netcore](https://img.shields.io/powershellgallery/v/AzureRM.Netcore.svg?style=flat-square&label=AzureRM.Netcore)](https://www.powershellgallery.com/packages/AzureRM.Netcore/) |
| Rollup Module for Administrative Modules in Azure Stack | `AzureStack` | [![AzureStack](https://img.shields.io/powershellgallery/v/AzureStack.svg?style=flat-square&label=AzureStack)](https://www.powershellgallery.com/packages/AzureStack/) |
| Rolledup Module for Service Management Cmdlets | `Azure` | [![Azure](https://img.shields.io/powershellgallery/v/Azure.svg?style=flat-square&label=Azure)](https://www.powershellgallery.com/packages/Azure/) |
| Rollup Module for Service Management Cmdlets | `Azure` | [![Azure](https://img.shields.io/powershellgallery/v/Azure.svg?style=flat-square&label=Azure)](https://www.powershellgallery.com/packages/Azure/) |

## Features

Expand Down
3 changes: 3 additions & 0 deletions TestMappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"src/ResourceManager/DataLakeStore/": [
".\\src\\ResourceManager\\DataLakeStore\\Commands.DataLakeStore.Test\\bin\\Debug\\Microsoft.Azure.Commands.DataLake.Test.dll"
],
"src/ResourceManager/DataMigration/": [
".\\src\\ResourceManager\\DataMigration\\Commands.DataMigration.Test\\bin\\Debug\\Microsoft.Azure.Commands.DataMigration.Test.dll"
],
"src/ResourceManager/DevTestLabs/": [],
"src/ResourceManager/Dns/": [
".\\src\\ResourceManager\\Dns\\Commands.Dns.Test\\bin\\Debug\\Microsoft.Azure.Commands.Dns.Test.dll"
Expand Down
55 changes: 29 additions & 26 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
<NuGetLocalBuildTaskPackages>-PackagesDirectory $(LibraryToolsFolder)\BuildPackagesTask\packages</NuGetLocalBuildTaskPackages>

<PowerShellCommand Condition=" '$(PowerShellCommand)' == '' ">C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellCommand>
<PowerShellCoreCommand Condition=" '$(PowerShellCoreCommand)' == '' ">pwsh</PowerShellCoreCommand>
</PropertyGroup>

<!--
Expand Down Expand Up @@ -271,54 +272,54 @@

<!-- Delete powershell runtime files -->
<ItemGroup>
<RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\Microsoft.Powershell.*.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\System*.dll"
Exclude="$(PackageDirectory)\**\netcoreapp2.0\publish\System.Security.Cryptography.ProtectedData.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\Microsoft.VisualBasic.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\Microsoft.CSharp.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\Microsoft.CodeAnalysis.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\netcoreapp2.0\publish\Microsoft.CodeAnalysis.CSharp.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\publish\Microsoft.Powershell.*.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\publish\System*.dll"
Exclude="$(PackageDirectory)\**\publish\System.Security.Cryptography.ProtectedData.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\publish\Microsoft.VisualBasic.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\publish\Microsoft.CSharp.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\publish\Microsoft.CodeAnalysis.dll" />
<RedundantDlls Include="$(PackageDirectory)\**\publish\Microsoft.CodeAnalysis.CSharp.dll" />
</ItemGroup>

<Delete Files="@(RedundantDlls->'%(FullPath)')"/>

<!-- Copy content of the publish folder one folders up -->
<!-- Copy content of the publish folder one folder up. -->
<ItemGroup>
<PackageContent Include="$(PackageDirectory)\**\netcoreapp2.0\publish\*.*" />
<PackageContent Include="$(PackageDirectory)\**\publish\*.*" />
<SourceFile Include="@(PackageContent)">
<DestinationFolder>$([System.IO.Path]::Combine('%(RelativeDir)', '..', '%(FileName)%(Extension)'))</DestinationFolder>
</SourceFile>
</ItemGroup>

<Copy SourceFiles="@(SourceFile->'%(FullPath)')" DestinationFiles="@(SourceFile->'%(DestinationFolder)')" SkipUnchangedFiles="true"/>

<!-- Move PSD1 files one folders up -->
<ItemGroup>
<psdFiles Include="$(PackageDirectory)\**\netcoreapp2.0\*.psd1" />
<psdFilesTarget Include="@(psdFiles)">
<DestinationFolder>$([System.IO.Path]::Combine('%(RelativeDir)', '..', '%(FileName)%(Extension)'))</DestinationFolder>
</psdFilesTarget>
</ItemGroup>

<Move SourceFiles="@(psdFilesTarget->'%(FullPath)')" DestinationFiles="@(psdFilesTarget->'%(DestinationFolder)')"/>

<!-- Delete build artifacts -->
<ItemGroup>
<GetAllFiles Include="$(PackageDirectory)\**\netcoreapp2.0\publish\*.*" />
<GetAllFiles Include="$(PackageDirectory)\**\publish\*.*" />
<Artifacts Include="@(GetAllFiles->'%(RootDir)%(Directory)'->Distinct())" />
</ItemGroup>

<RemoveDir Directories="%(Artifacts.Identity)" ContinueOnError="true" />

<ItemGroup>
<ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureRM.Resources.Netcore\AzureRM.Tags.Netcore.psd1" />
<ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureRM.Websites.Netcore\AzureRM.Resources.Netcore.psd1" />
<ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureRM.Websites.Netcore\AzureRM.Tags.Netcore.psd1" />
<ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureRM.Network.Netcore\AzureRM.Resources.Netcore.psd1" />
<ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureRM.Network.Netcore\AzureRM.Tags.Netcore.psd1" />
<ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Resources.Netcore\AzureRM.Tags.Netcore.psd1" />
<ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Websites.Netcore\AzureRM.Resources.Netcore.psd1" />
<ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Websites.Netcore\AzureRM.Tags.Netcore.psd1" />
<ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Network.Netcore\AzureRM.Resources.Netcore.psd1" />
<ExtraPsdFiles Include="$(PackageDirectory)\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Network.Netcore\AzureRM.Tags.Netcore.psd1" />
</ItemGroup>

<Delete Files="@(ExtraPsdFiles->'%(FullPath)')"/>

<!-- Update module manifests. -->
<Exec Command="&quot;$(PowerShellCoreCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;. $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) AzureRM.Netcore -Profile Latest &quot; " Condition="'$(Latest)' == 'true' and '$(CodeSign)' == 'false'"/>

<!-- Generate the help. -->
<Exec Command="&quot;$(PowerShellCoreCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;Set-Variable -Name ProgressPreference -Value 'SilentlyContinue';. $(LibraryToolsFolder)\GenerateHelp.ps1 -GenerateMamlHelp -BuildConfig $(Configuration) &quot;" ContinueOnError="true" Condition=" '$(SkipHelp)' == 'false' and '$(Latest)' == 'true'"/>

<!-- Cleanup extraneous files. -->
<Exec Command="&quot;$(PowerShellCoreCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;. $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) &quot;" />

<CallTarget Targets="CodeSignBinaries" Condition=" '$(CodeSign)' == 'true' " />
</Target>

Expand Down Expand Up @@ -368,7 +369,6 @@
<Output TaskParameter="Path" PropertyName="WindowsSdkPath"/>
</GetFrameworkSdkPath>


<Copy SourceFiles="$(LibraryRoot)tools\AzureRM.Netcore\AzureRM.Netcore.psd1"
DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'true' "/>

Expand Down Expand Up @@ -531,6 +531,9 @@
<!-- Run checkin tests for each pull request -->
<Target Name="Test" DependsOnTargets="BeforeRunTests">
<Message Importance="high" Text="Running check in tests..." />
<!-- Run Pester tests -->
<Exec Command="&quot;$(PowerShellCommand)&quot; -NonInteractive -NoLogo -NoProfile -Command &quot;$(MSBuildProjectDirectory)\tools\Modules\Run-UnitTests.ps1&quot;"
ContinueOnError="ErrorAndContinue"/>
<CallTarget Targets="InvokeXUnit"/>
</Target>

Expand Down
22 changes: 22 additions & 0 deletions setup/azurecmdfiles.wxi
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,23 @@
<File Id="fil509D1E7494560B2BB3462B8FAD7954CF" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.DataLakeStore\Microsoft.Azure.Management.DataLake.Store.dll" />
</Component>
</Directory>
<Directory Id="dir737D4AB8FD306B33AFF72CE69894AEC6" Name="AzureRM.DataMigration">
<Component Id="cmpF537AF8D3332C6ECBEC0516187F2220F" Guid="*">
<File Id="fil38B67D67DD39331782A801AB1268A382" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.DataMigration\AzureRM.DataMigration.psd1" />
</Component>
<Component Id="cmp62BC16A48F4AAB22EAFDB6EA8C458B36" Guid="*">
<File Id="filB3373AF76FB37D674E8110F7B07D406B" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.DataMigration\AzureRM.DataMigration.psm1" />
</Component>
<Component Id="cmpB20E0977CD0B2DFD15CEFF2F07F39AB9" Guid="*">
<File Id="filBFF0F6B3EE0CADBC6E8D145D70B031BB" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.DataMigration\Microsoft.Azure.Commands.DataMigration.dll" />
</Component>
<Component Id="cmp8D46A82F0869AFC4C01CACAC464F81E9" Guid="*">
<File Id="fil6EA1FAE6CF33BFDC7C44362C0A050A09" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.DataMigration\Microsoft.Azure.Commands.DataMigration.dll-Help.xml" />
</Component>
<Component Id="cmp636578DE56B109ECA4CF967ED6BE2823" Guid="*">
<File Id="fil9172B5B303F5B98071CEC5BDA731C87B" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.DataMigration\Microsoft.Azure.Management.DataMigration.dll" />
</Component>
</Directory>
<Directory Id="dir58E771D29F659E11F33C1EBA94EBEC2D" Name="AzureRM.DevTestLabs">
<Component Id="cmpB88BB2B8DA875D258057401A820E82D6" Guid="*">
<File Id="filE1512C82B1E6F38CDFD909FFD8C61C64" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.DevTestLabs\AzureRM.DevTestLabs.psd1" />
Expand Down Expand Up @@ -3282,6 +3299,11 @@
<ComponentRef Id="cmp3E5522CBA7172D5BE69D628639359496" />
<ComponentRef Id="cmp001FEDC74DD7D918EFE88F2EB8E4285C" />
<ComponentRef Id="cmp3C96010EFA751762A76B66B811613835" />
<ComponentRef Id="cmpF537AF8D3332C6ECBEC0516187F2220F" />
<ComponentRef Id="cmp62BC16A48F4AAB22EAFDB6EA8C458B36" />
<ComponentRef Id="cmpB20E0977CD0B2DFD15CEFF2F07F39AB9" />
<ComponentRef Id="cmp8D46A82F0869AFC4C01CACAC464F81E9" />
<ComponentRef Id="cmp636578DE56B109ECA4CF967ED6BE2823" />
<ComponentRef Id="cmpB88BB2B8DA875D258057401A820E82D6" />
<ComponentRef Id="cmp727F3C3BF9F149CC43CD2F72DB01F9AF" />
<ComponentRef Id="cmpCF89ADAF131C4033F0441CD44BD5AFF9" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
using System.Linq;

namespace Common.Authentication.Test
{
Expand Down Expand Up @@ -98,5 +99,55 @@ public void VerifyValidateAuthorityFalseForOnPremise()

Assert.False(((MockAccessTokenProvider)authFactory.TokenProvider).AdalConfiguration.ValidateAuthority);
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void CanAuthenticateWithAccessToken()
{
AzureSessionInitializer.InitializeAzureSession();
string tenant = Guid.NewGuid().ToString();
string userId = "[email protected]";
var armToken = Guid.NewGuid().ToString();
var graphToken = Guid.NewGuid().ToString();
var kvToken = Guid.NewGuid().ToString();
var account = new AzureAccount
{
Id = userId,
Type = AzureAccount.AccountType.AccessToken
};
account.SetTenants(tenant);
account.SetAccessToken(armToken);
account.SetProperty(AzureAccount.Property.GraphAccessToken, graphToken);
account.SetProperty(AzureAccount.Property.KeyVaultAccessToken, kvToken);
var authFactory = new AuthenticationFactory();
var environment = AzureEnvironment.PublicEnvironments.Values.First();
var checkArmToken = authFactory.Authenticate(account, environment, tenant, new System.Security.SecureString(), "Never", null);
VerifyToken(checkArmToken, armToken, userId, tenant);
checkArmToken = authFactory.Authenticate(account, environment, tenant, new System.Security.SecureString(), "Never", null, environment.ActiveDirectoryServiceEndpointResourceId);
VerifyToken(checkArmToken, armToken, userId, tenant);
var checkGraphToken = authFactory.Authenticate(account, environment, tenant, new System.Security.SecureString(), "Never", null, AzureEnvironment.Endpoint.GraphEndpointResourceId);
VerifyToken(checkGraphToken, graphToken, userId, tenant);
checkGraphToken = authFactory.Authenticate(account, environment, tenant, new System.Security.SecureString(), "Never", null, environment.GraphEndpointResourceId);
VerifyToken(checkGraphToken, graphToken, userId, tenant);
var checkKVToken = authFactory.Authenticate(account, environment, tenant, new System.Security.SecureString(), "Never", null, environment.AzureKeyVaultServiceEndpointResourceId);
VerifyToken(checkKVToken, kvToken, userId, tenant);
checkKVToken = authFactory.Authenticate(account, environment, tenant, new System.Security.SecureString(), "Never", null, AzureEnvironment.Endpoint.AzureKeyVaultServiceEndpointResourceId);
VerifyToken(checkKVToken, kvToken, userId, tenant);
}

void VerifyToken(IAccessToken checkToken, string expectedAccessToken, string expectedUserId, string expectedTenant)
{

Assert.True(checkToken is RawAccessToken);
Assert.Equal(expectedAccessToken, checkToken.AccessToken);
Assert.Equal(expectedUserId, checkToken.UserId);
Assert.Equal(expectedTenant, checkToken.TenantId);
checkToken.AuthorizeRequest((type, token) =>
{
Assert.Equal(expectedAccessToken, token);
Assert.Equal("Bearer", type);
});
}

}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props')" />
<Import Project="..\..\..\packages\xunit.core.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.core.props" Condition="Exists('..\..\..\packages\xunit.core.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.core.props')" />
<Import Project="..\..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props')" />
<Import Project="..\..\packages\xunit.core.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.core.props" Condition="Exists('..\..\packages\xunit.core.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.core.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
<package id="xunit.core" version="2.1.0" targetFramework="net45" />
<package id="xunit.extensibility.core" version="2.1.0" targetFramework="net45" />
<package id="xunit.extensibility.execution" version="2.1.0" targetFramework="net45" />
<package id="xunit.runner.visualstudio" version="2.1.0" targetFramework="net45" />
</packages>
<package id="xunit.runner.visualstudio" version="2.1.0" targetFramework="net45" developmentDependency="true" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,34 @@
// ----------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Microsoft.WindowsAzure.Commands.Common.Storage
namespace Microsoft.Azure.Commands.Common.Authentication
{
public interface IStorageContextProvider
public class RawAccessToken : IAccessToken
{
AzureStorageContext Context
public string AccessToken
{
get;
get; set;
}

public string LoginType
{
get; set;
}

public string TenantId
{
get; set;
}

public string UserId
{
get; set;
}

public void AuthorizeRequest(Action<string, string> authTokenSetter)
{
authTokenSetter("Bearer", AccessToken);
}
}
}
Loading