Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
0ac6561
Merge pull request #5749 from maddieclayton/KeyVault1
Mar 15, 2018
aa068ac
first commit
Mar 21, 2018
2bbaa32
merge changes from non-breaking PR
Mar 21, 2018
8c38b80
revert unnecessary changes
Mar 21, 2018
14ccb61
update piping scenarios and help
Mar 21, 2018
ce55c73
fix issue
Mar 21, 2018
20787f2
updating KeyVault PowerShell to latest API spec
dragav Mar 23, 2018
0103d0f
DO NOT MERGE: pushing partial changes to KV PSh
dragav Mar 23, 2018
c1eed14
updating KeyVault PowerShell to latest API spec
dragav Mar 23, 2018
ae0f95d
DO NOT MERGE: pushing partial changes to KV PSh
dragav Mar 23, 2018
0a448c5
add examples
Mar 23, 2018
06eb72d
update KeyUsage to enum
Mar 23, 2018
71fe957
Add KeyVault VNET PowerShell cmdlets to Azure PS
jasonxdhu Feb 22, 2018
c18626e
Fix VNET 'Update' command to override default ip-address or resource ids
jasonxdhu Feb 22, 2018
3ac926e
integrating VNet into KeyVault PSh
dragav Mar 23, 2018
31379b1
Merge branch 'kv-apr-18-preview' of https://github.com/dragav/azure-p…
dragav Mar 23, 2018
9f6c119
issue 4393
Mar 24, 2018
3d0d5e6
Merge branch 'preview' of github.com:Azure/azure-powershell into KeyV…
Mar 24, 2018
3880069
Merge pull request #5802 from Azure/preview
Mar 25, 2018
37affef
Merge branch 'keyvault_preview' into KeyVault2
Mar 25, 2018
510e07a
Merge branch 'keyvault_preview' into kv-apr-18-preview
Mar 25, 2018
ab27d7c
add to breakingchanges.csv
Mar 26, 2018
68cc43e
add aliases and update set-secret
Mar 27, 2018
8960fc4
update help files
Mar 27, 2018
7af25f6
update online version
Mar 27, 2018
b4dec5e
address comments
Mar 27, 2018
1fc293f
relocating the CertificateTransparency flag to the issuer parameters
dragav Mar 27, 2018
9c796f1
addressing PR feedback
dragav Mar 28, 2018
e648248
Addressing PR feedback, take 2
dragav Mar 29, 2018
c2a1cbd
generating and updating help files
dragav Mar 29, 2018
1be4e18
updating help with synopsis and examples
dragav Mar 29, 2018
d3a138d
removing duplicate parameter description
dragav Mar 29, 2018
f3200a9
adding missing online help links for Undo-AzureKeyVaultManagedStorage*
dragav Mar 29, 2018
ebbad85
renaming Add- and Remove- network rule cmdlets to indicate they refer…
dragav Mar 30, 2018
708adc9
upgrading Compute and SF to latest KV management SDK
dragav Mar 30, 2018
3f75002
undoing auto-generated changes to Stack module files
dragav Mar 30, 2018
d310ccb
Merge pull request #5801 from dragav/kv-apr-18-preview
Mar 30, 2018
84c2bf7
merge preview
Mar 30, 2018
f279b8b
merge issues
Mar 30, 2018
14ab2bb
Adding parameters to New-AzureRmVm and New-AzureRmVmss to assign
praries880 Mar 30, 2018
c3e3bed
Merge pull request #5799 from maddieclayton/KeyVault2
Mar 30, 2018
5936aed
update version
Mar 30, 2018
47899db
Added cmdlets and tests or the .NET SDK version 4.0.1
prakharsharma10 Apr 2, 2018
be6e97b
Updated NetCore files with the new version of Azure.Management.CDN
prakharsharma10 Apr 2, 2018
92aa2b7
Added ConfirmAction and updated the changes made by platyPS
prakharsharma10 Apr 2, 2018
fa3c316
Reverted the clientruntime version change in packages.config
prakharsharma10 Apr 3, 2018
6189c49
add missing permissions for newly introduced backup/restore cmdlets
dragav Apr 3, 2018
7bc8015
Merge branch 'keyvault_preview' into kv-apr-18-bugfixes
dragav Apr 3, 2018
b7c833a
Fix for #5819
praries880 Apr 3, 2018
4d0bacb
Checking in the csproj changes
praries880 Apr 3, 2018
4518ce5
Merge branch 'preview' of https://github.com/Azure/azure-powershell i…
praries880 Apr 3, 2018
8a887ce
Fix bad merge fo test
praries880 Apr 3, 2018
deaa19b
fix typo in Netcore psd file
dragav Apr 3, 2018
2b15cda
Took care of review comments
praries880 Apr 3, 2018
78e7cb7
fixing build break
dragav Apr 4, 2018
33b5522
undoing the switch to KV mgmt SDK for listing
dragav Apr 4, 2018
93476f7
upgrading SF to KV SDK 3.0 alpha
dragav Apr 4, 2018
7ebbcc7
Merge pull request #5864 from dragav/kv-apr-18-bugfixes
Apr 4, 2018
0da722d
Merge branch 'keyvault_preview' into KeyVault2
Apr 4, 2018
ad432df
Update change log
praries880 Apr 5, 2018
d062fab
Took care of review comments
praries880 Apr 5, 2018
996ed49
Move my changelog to top of list
praries880 Apr 5, 2018
a788659
Tool for both creating new psd1 files for netcore and validating cmdl…
MiYanni Apr 5, 2018
f51ad30
Tool for both creating new csproj (VS 2017 format) files for netcore …
MiYanni Apr 5, 2018
84c8a88
Fixed the password hardcoding issue #5879 and took care of review
praries880 Apr 5, 2018
3d645cf
Added missing failure exit code changes.
MiYanni Apr 6, 2018
c3ac612
Removed the ClientRuntime packages from test project files and re-rec…
prakharsharma10 Apr 6, 2018
540c713
Changing the password generation to be in line with the currrent logic
praries880 Apr 6, 2018
c2daaaa
Merge branch 'preview' into vmMSI
praries880 Apr 6, 2018
19d1588
fix error and update version
Apr 7, 2018
1b9e789
Merge pull request #5846 from maddieclayton/KeyVault2
Apr 9, 2018
7708bb5
verbose parameter output.
sergey-shandar Apr 11, 2018
37f8700
ToPowerShellString function.
sergey-shandar Apr 11, 2018
fd9ca3a
changelog
sergey-shandar Apr 11, 2018
e38ff70
Merge branch 'preview' into sergey-whatif
sergey-shandar Apr 11, 2018
69516a3
Merge branch 'preview' into sergey-whatif
sergey-shandar Apr 13, 2018
2eedc72
Merge branch 'preview' into NetCoreCsProj
MiYanni Apr 13, 2018
09eb260
Merge branch 'preview' into vmMSI
praries880 Apr 16, 2018
5463c45
adding support for specifying key size at creation time
dragav Apr 13, 2018
612d08e
updating help file for Add-Key cmdlet
dragav Apr 16, 2018
9ec840e
Merge branch 'keyvault_preview' into kv-apr-18-bugfixes
Apr 16, 2018
c98279e
Fixing purging of managed storage accounts
dragav Apr 16, 2018
3e7dc4c
fixing formatting of new parameter in the help file corresponding to …
dragav Apr 16, 2018
c7557fd
Merge pull request #5963 from dragav/kv-apr-18-bugfixes
Apr 17, 2018
c0804e0
Move generic code to strategies library.
sergey-shandar Apr 17, 2018
fe632ec
merge with verbose output
sergey-shandar Apr 18, 2018
f70fa85
Update appveyor.yml
qinezh Apr 18, 2018
7c6b83a
include assignments to deleted principals by default
darshanhs90 Apr 19, 2018
b447e82
add commented extra file
darshanhs90 Apr 19, 2018
9f780b2
add session records
darshanhs90 Apr 19, 2018
8faf08b
add csproj
darshanhs90 Apr 19, 2018
18d983a
update Changelog
darshanhs90 Apr 19, 2018
17990a6
Merge branch 'preview' of https://github.com/Azure/azure-powershell i…
darshanhs90 Apr 19, 2018
3e0fac3
Added outputs for examples
prakharsharma10 Apr 19, 2018
22d1b25
Merge branch 'preview' into vmMSI
praries880 Apr 19, 2018
ddb19de
Merge branch 'preview' into preview
prakharsharma10 Apr 19, 2018
7a2e77f
fix format.ps1xml for KV (preview)
Apr 19, 2018
2725496
Merge pull request #5995 from maddieclayton/kvbug1
Apr 19, 2018
c580c81
Cleaned up .gitignore. Added logic to include Prerelease if it is set…
MiYanni Apr 19, 2018
8030509
Update RoleAssignmentTests.cs
cormacpayne Apr 19, 2018
41e57a2
Update RoleAssignmentTests.cs
cormacpayne Apr 19, 2018
eb2f00b
Update AuthorizationClientExtensions.cs
cormacpayne Apr 19, 2018
67e5b30
Merge branch 'preview' into sergey-whatif
cormacpayne Apr 19, 2018
65a4800
Cleaned up .gitignore. Added ability to load ModuleMap and ModuleSkip…
MiYanni Apr 19, 2018
4617177
Completed the breaking changes recently introduced in the repo
prakharsharma10 Apr 19, 2018
bf3ed2a
Updating ADF .Net SDK version for //build release
hvermis Apr 19, 2018
1dbfd77
minor strig update as per comment from PM
darshanhs90 Apr 19, 2018
ef13db6
Fix for no parameterset.
sergey-shandar Apr 19, 2018
74df39c
Merge branch 'sergey-whatif' of https://github.com/sergey-shandar/azu…
sergey-shandar Apr 19, 2018
809d05f
merge from preview
sergey-shandar Apr 19, 2018
3ff7035
merge from 'what-if'
sergey-shandar Apr 19, 2018
692976d
Parameters fix.
sergey-shandar Apr 19, 2018
6ee2c49
Fix Issue 5896
Apr 20, 2018
e88c4c9
Merge pull request #6001 from hvermis/preview
cormacpayne Apr 20, 2018
6f7366b
Unit Test for verbose output.
sergey-shandar Apr 20, 2018
548f475
Merge branch 'preview' into AsJobBug
Apr 20, 2018
a3d2775
fix build
Apr 20, 2018
53681ea
Merge branch 'AsJobBug' of github.com:maddieclayton/azure-powershell …
Apr 20, 2018
2386b71
Merge pull request #5979 from Azure/qinezh-patch-1
Apr 20, 2018
0aee77c
removing the explicit parameters of KeyVault-managed storage SAS defi…
dragav Apr 20, 2018
a312d30
Merge pull request #5855 from prakharsharma10/preview
markcowl Apr 20, 2018
60ce7fa
Merge pull request #5985 from darshanhs90/preview1
markcowl Apr 20, 2018
722fbfd
Merge pull request #5697 from MiYanni/NetCoreCore
cormacpayne Apr 20, 2018
91826ba
Merge pull request #5717 from MiYanni/NetCoreCsProj
cormacpayne Apr 20, 2018
e77036d
Merge branch 'preview' into vmMSI
cormacpayne Apr 20, 2018
c75ad21
changes to rules
Apr 20, 2018
ecb2e1f
address comments
Apr 20, 2018
5c73171
Took care of latest review comments
praries880 Apr 20, 2018
8360197
Merge branch 'vmMSI' of https://github.com/praries880/azure-powershel…
praries880 Apr 20, 2018
c3f368a
adding known breaking changes to the exception list
dragav Apr 20, 2018
e0a1bbb
add tests
Apr 20, 2018
3b3f7df
fix null reference
Apr 20, 2018
3f8f25c
Merge pull request #5845 from praries880/vmMSI
markcowl Apr 23, 2018
7879aa2
Merge branch 'preview' into sergey-whatif
markcowl Apr 23, 2018
b300b19
Merge branch 'preview' into sergey-strategies-update2
markcowl Apr 23, 2018
64d55f6
Remove 'what-if'.
sergey-shandar Apr 23, 2018
2ef14aa
Merge branch 'sergey-whatif' of https://github.com/sergey-shandar/azu…
sergey-shandar Apr 23, 2018
1c75c6b
merge
sergey-shandar Apr 23, 2018
e60eb4b
Merge branch 'sergey-strategies-update2' of https://github.com/sergey…
sergey-shandar Apr 23, 2018
d11b0e0
address comments.
sergey-shandar Apr 23, 2018
c219007
Merge pull request #6006 from dragav/kv-apr-18-bugfixes
Apr 23, 2018
fadaf9e
address comments
Apr 23, 2018
9cef8d5
Remove CancellationToken.
sergey-shandar Apr 23, 2018
491ca70
update implementation
Apr 23, 2018
0fc1d12
remove using
Apr 23, 2018
0ec490f
Merge pull request #6022 from maddieclayton/docsbug
Apr 23, 2018
5522206
IParameters: DefaultLocation property.
sergey-shandar Apr 23, 2018
b459f26
Apply DefaultLocation
sergey-shandar Apr 23, 2018
78a3ed2
merge kv to preview
Apr 24, 2018
8a31784
updates
Apr 24, 2018
e5c37ca
update psd1
Apr 24, 2018
3c0bb29
fix
Apr 24, 2018
683280e
updating breaking changes to reflect changes in the Set-SAS definitio…
dragav Apr 24, 2018
108c17c
Update BreakingChangeIssues.csv
Apr 24, 2018
278d252
Update SignatureIssues.csv
Apr 24, 2018
ea7ad12
Merge branch 'preview' into preview
Apr 24, 2018
9f514ba
Merge pull request #6028 from dragav/preview
Apr 24, 2018
450e76e
Merge pull request #6004 from maddieclayton/AsJobBug
cormacpayne Apr 24, 2018
1a87746
Merge pull request #5972 from sergey-shandar/sergey-strategies-update2
cormacpayne Apr 24, 2018
888646d
Merge pull request #6027 from maddieclayton/mergekv
cormacpayne Apr 24, 2018
b0600c9
Merge branch 'Azure.Storage.OAuth' into preview
Apr 25, 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
  •  
  •  
  •  
10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,10 @@ groupMapping*.json
*.wixpdb

.vscode/
/tools/AutomationTestFramework/RunBooks
/tools/AutomationTestFramework/TestHelpers/TestHelpers.zip
/tools/AutomationTestFramework/Runbooks
Results
Package
.DS_Store
.idea
/src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Logger/bin
/src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Models/bin
/src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Helpers/bin
/src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Providers/bin
/src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.ServiceClientAdapter/bin
/src/ResourceManager/RecoveryServices.Backup/**/bin
launchSettings.json
21 changes: 5 additions & 16 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,27 @@
clone_folder: c:\ps
clone_depth: 1
branches:
only:
- master
environment:
nodejs_version: "6"
github_access_token:
secure: VMFbecLLHzDq/09YDPbcM0VDDSwwgY57vr5GXK6cZZ4Ti/Xs5RZoylzV8MMr1350

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

test: off
on_success:
- git clone -q --branch=%target_branch% %content_repo% %TEMP%\Azure
- cd %TEMP%\Azure
- ps: ls c:\projects\_output -dir | % { copy $_.FullName . -Recurse -Force }
- ps: ls C:\docs -dir | % { copy $_.FullName . -Recurse -Force }
- git add -A
- 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"
38 changes: 38 additions & 0 deletions src/Common/Commands.Common/AzurePSCmdlet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,50 @@ protected string PSVersion

protected abstract string DataCollectionWarning { get; }

private SessionState _sessionState;

public new SessionState SessionState
{
get
{
return _sessionState;
}
set
{
_sessionState = value;
}
}

private RuntimeDefinedParameterDictionary _asJobDynamicParameters;

public RuntimeDefinedParameterDictionary AsJobDynamicParameters
{
get
{
if (_asJobDynamicParameters == null)
{
_asJobDynamicParameters = new RuntimeDefinedParameterDictionary();
}
return _asJobDynamicParameters;
}
set
{
_asJobDynamicParameters = value;
}
}

/// <summary>
/// Initializes AzurePSCmdlet properties.
/// </summary>
public AzurePSCmdlet()
{
DebugMessages = new ConcurrentQueue<string>();
}

// Register Dynamic Parameters for use in long running jobs
public void RegisterDynamicParameters(RuntimeDefinedParameterDictionary parameters)
{
this.AsJobDynamicParameters = parameters;
}


Expand Down Expand Up @@ -252,6 +289,7 @@ protected virtual void TearDownHttpClientPipeline()
/// </summary>
protected override void BeginProcessing()
{
SessionState = base.SessionState;
var profile = _dataCollectionProfile;
//TODO: Inject from CI server
lock (lockObject)
Expand Down
8 changes: 5 additions & 3 deletions src/ResourceManager/Cdn/AzureRM.Cdn.Netcore.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ CmdletsToExport = 'Get-AzureRmCdnProfile', 'Get-AzureRmCdnProfileSsoUrl',
'Start-AzureRmCdnEndpoint', 'Stop-AzureRmCdnEndpoint',
'Test-AzureRmCdnCustomDomain', 'Get-AzureRmCdnCustomDomain',
'New-AzureRmCdnCustomDomain', 'Remove-AzureRmCdnCustomDomain',
'Get-AzureRmCdnProfileResourceUsage',
'Get-AzureRmCdnEndpointResourceUsage',
'Get-AzureRmCdnSubscriptionResourceUsage', 'Get-AzureRmCdnEdgeNodes'
'Enable-AzureRmCdnCustomDomain', 'Disable-AzureRmCdnCustomDomain',
'Get-AzureRmCdnProfileResourceUsage', 'Confirm-AzureRmCdnEndpointProbeUrl',
'Get-AzureRmCdnEndpointResourceUsage', 'Get-AzureRmCdnProfileSupportedOptimizationType',
'Get-AzureRmCdnSubscriptionResourceUsage',
'Get-AzureRmCdnEdgeNodes'

# Variables to export from this module
# VariablesToExport = @()
Expand Down
6 changes: 3 additions & 3 deletions src/ResourceManager/Cdn/AzureRM.Cdn.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ CmdletsToExport = 'Get-AzureRmCdnProfile', 'Get-AzureRmCdnProfileSsoUrl',
'Start-AzureRmCdnEndpoint', 'Stop-AzureRmCdnEndpoint',
'Test-AzureRmCdnCustomDomain', 'Get-AzureRmCdnCustomDomain',
'New-AzureRmCdnCustomDomain', 'Remove-AzureRmCdnCustomDomain',
'Get-AzureRmCdnProfileResourceUsage',
'Get-AzureRmCdnEndpointResourceUsage',
'Enable-AzureRmCdnCustomDomain', 'Disable-AzureRmCdnCustomDomain',
'Get-AzureRmCdnProfileResourceUsage', 'Confirm-AzureRmCdnEndpointProbeUrl',
'Get-AzureRmCdnEndpointResourceUsage', 'Get-AzureRmCdnProfileSupportedOptimizationType',
'Get-AzureRmCdnSubscriptionResourceUsage',
'Get-AzureRmCdnEdgeNodes'

Expand Down Expand Up @@ -142,4 +143,3 @@ PrivateData = @{
# DefaultCommandPrefix = ''

}

21 changes: 16 additions & 5 deletions src/ResourceManager/Cdn/Commands.Cdn.Test/Commands.Cdn.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@
<Reference Include="Microsoft.Azure.Gallery">
<HintPath>..\..\..\packages\Microsoft.Azure.Gallery.2.6.2-preview\lib\net40\Microsoft.Azure.Gallery.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Management.Authorization">
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
<Private>True</Private>
<Reference Include="Microsoft.Azure.Management.Authorization, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.1\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Management.Cdn">
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Cdn.3.0.0-preview\lib\net45\Microsoft.Azure.Management.Cdn.dll</HintPath>
<Reference Include="Microsoft.Azure.Management.Cdn, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Cdn.4.0.1-preview\lib\net452\Microsoft.Azure.Management.Cdn.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down Expand Up @@ -139,12 +138,21 @@
<None Include="ScenarioTests\SubscriptionTests.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest.CustomDomainTests\TestCustomDomainEnableDisableWithRunningEndpoint.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest.CustomDomainTests\TestCustomDomainGetRemoveWithRunningEndpoint.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest.CustomDomainTests\TestCustomDomainGetRemoveWithStoppedEndpoint.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest.EndpointTests\EndpointValidateProbeUrl.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest.EndpointTests\TestEndpointCreateWithDsa.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest.EndpointTests\TestEndpointCrudAndAction.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -172,6 +180,9 @@
<None Include="SessionRecords\Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest.OriginTests\TestOriginGetSetWithStoppedEndpoint.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest.ProfileTests\ProfileGetSupportedOptimizationType.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest.ProfileTests\TestProfileCrud.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ public CustomDomainTests(Xunit.Abstractions.ITestOutputHelper output)
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(_logger);
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestCustomDomainEnableDisableWithRunningEndpoint()
{
TestController.NewInstance.RunPowerShellTest(_logger, "Test-CustomDomainEnableDisableWithRunningEndpoint");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestCustomDomainGetRemoveWithRunningEndpoint()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ Gets and removes custom domain with running endpoint.
function Test-CustomDomainGetRemoveWithRunningEndpoint
{
# Hard-coding host and endpoint names due to requirement for DNS CNAME
$endpointName = "sdktest-c83c1e8f-343e-4ce8-873b-f6e5ddcdc53f"
$hostName = "sdktest-716d4572-627f-4dfe-8128-1df163647ae2.azureedge-test.net"
$endpointName = "testAkamaiEP"
$hostName = "testAkamai.dustydog.us"

$customDomainName = getAssetName

$profileName = getAssetName
$resourceGroup = TestSetup-CreateResourceGroup
$resourceLocation = "EastUS"
$profileSku = "Standard_Verizon"
$profileSku = "Standard_Akamai"
$tags = @{"tag1" = "value1"; "tag2" = "value2"}
$createdProfile = New-AzureRmCdnProfile -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -Sku $profileSku -Tag $tags

Expand Down Expand Up @@ -59,22 +59,69 @@ function Test-CustomDomainGetRemoveWithRunningEndpoint
Remove-AzureRmResourceGroup -Name $resourceGroup.ResourceGroupName -Force
}

<#
.SYNOPSIS
Enables custom domain with running endpoint.
#>
function Test-CustomDomainEnableDisableWithRunningEndpoint
{
# Hard-coding host and endpoint names due to requirement for DNS CNAME
$endpointName = "testVerizonEP"
$hostName = "testVerizon.dustydog.us"

$customDomainName = getAssetName

$profileName = getAssetName
$resourceGroup = TestSetup-CreateResourceGroup
$resourceLocation = "EastUS"
$profileSku = "Standard_Verizon"
$tags = @{"tag1" = "value1"; "tag2" = "value2"}
$createdProfile = New-AzureRmCdnProfile -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -Sku $profileSku -Tag $tags

$originName = getAssetName
$originHostName = "www.microsoft.com"
$createdEndpoint = New-AzureRmCdnEndpoint -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -OriginName $originName -OriginHostName $originHostName

$endpoint = Get-AzureRmCdnEndpoint -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName
$validateResult = Test-AzureRmCdnCustomDomain -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -CustomDomainHostName $hostName
Assert-True{$validateResult.CustomDomainValidated}
$validateResultbyPiping = Test-AzureRmCdnCustomDomain -CdnEndpoint $endpoint -CustomDomainHostName $hostName
Assert-True{$validateResultbyPiping.CustomDomainValidated}

$createdCustomDomain = $endpoint | New-AzureRmCdnCustomDomain -HostName $hostName -CustomDomainName $customDomainName
Assert-AreEqual $customDomainName $createdCustomDomain.Name
Assert-AreEqual $hostName $createdCustomDomain.HostName

$customDomain = $endpoint | Get-AzureRmCdnCustomDomain -CustomDomainName $customDomainName
Assert-AreEqual $customDomainName $customDomain.Name
Assert-AreEqual $hostName $customDomain.HostName

$enabled = $customDomain | Enable-AzureRmCdnCustomDomain -PassThru
Assert-True{$enabled}
Assert-ThrowsContains { Enable-AzureRmCdnCustomDomain -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName } "BadRequest"

Assert-ThrowsContains { Disable-AzureRmCdnCustomDomain -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName } "BadRequest"

Remove-AzureRmResourceGroup -Name $resourceGroup.ResourceGroupName -Force
}


<#
.SYNOPSIS
Gets and removes custom domain with stopped endpoint
#>
function Test-CustomDomainGetRemoveWithStoppedEndpoint
{
# Hard-coding host and endpoint names due to requirement for DNS CNAME
$endpointName = "sdktest-cbc4e6fa-da15-4f37-9511-6b7df122c1de"
$hostName = "sdktest-34a59412-9044-4166-b055-d777e111e810.azureedge-test.net"
# Hard-coding host and endpoint names due to requirement for DNS CNAME
$endpointName = "testAkamaiEP"
$hostName = "testAkamai.dustydog.us"

$customDomainName = getAssetName

$profileName = getAssetName
$resourceGroup = TestSetup-CreateResourceGroup
$resourceLocation = "EastUS"
$profileSku = "Standard_Verizon"
$profileSku = "Standard_Akamai"
$tags = @{"tag1" = "value1"; "tag2" = "value2"}
$createdProfile = New-AzureRmCdnProfile -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -Sku $profileSku -Tag $tags

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public EndpointTests(Xunit.Abstractions.ITestOutputHelper output)
_logger = new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output);
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(_logger);
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestEndpointCrudAndAction()
Expand All @@ -49,6 +49,13 @@ public void TestEndpointCrudAndActionWithAllProperties()
TestController.NewInstance.RunPowerShellTest(_logger, "Test-EndpointCrudAndActionWithAllProperties");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestEndpointCreateWithDsa()
{
TestController.NewInstance.RunPowerShellTest(_logger, "Test-EndpointCreateWithDSA");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestEndpointCrudAndActionWithAllPropertiesWithPiping()
Expand Down Expand Up @@ -76,5 +83,12 @@ public void TestEndpointResourceUsage()
{
TestController.NewInstance.RunPowerShellTest(_logger, "Test-EndpointResourceUsage");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void EndpointValidateProbeUrl()
{
TestController.NewInstance.RunPowerShellTest(_logger, "Test-EndpointValidateProbeUrl");
}
}
}
Loading