Skip to content

Commit 5816106

Browse files
abhi7860Abhishek ShahlitchiyangMSFThiagaSpacebjorn
authored
Support to Get IKE Security Associations for VPN Site Link Connections (#14182)
* Adding skeleton code * Adding VpnLinkConnectionBaseCmdlet and formatting display for IKE SA * Bug fixes * Adding test * Update ChangeLog.md * Adding help file * SDK support files * Update Get-AzVpnSiteLinkConnectionIkeSa.md * Reverting Compute version * Changing Network version in other csproj files * Test bug fix * Update CredScanSuppressions.json * Update CredScanSuppressions.json * Sync network with master branch (#14198) * Added Zone Redundancy for Recovery Service Vaults (#13962) * Corrected example command (#13901) * Corrected example command The Get-AzRecoveryServicesBackupProtectableItem command in the example was incorrect. * Updated the Example 1 $Container was using "MSSQL" for ContainerType which is an invalid option. $Container was missing VaultId $Item was missing WorkloadType * Update Get-AzRecoveryServicesBackupProtectableItem.md Added spacing between terminal and command * [AppService] Register App Service Resources for Private Link Powershells (#13967) * Update ChangeLog.md * Register App Service Resources for Private Link Powershells * Update ChangeLog.md * Update ChangeLog.md * Only use supported commands for prediction request (#13863) * Only use supported commands for prediction request. - We only request predictions for the last two commands. When the commands are not supported, we replace them with "start_of_snippet". The problem of that is when the user has inputted a few unsupported commands such as assignments, we'll start to request prediction for [ "start_of_snippet", "start_of_snippet" ]. That'll the same as resetting the prediction as the beginning of the session. While in fact there may be Az commands in the history. - The change here is not to use those unsupported commands to request predictions. We'll skip the unsupported commands unless we don't have enough commands from history to use for the prediction. * Incorporate PR feedback * [Az.RecoveryServices.Backup] modifying policy validation limits as per backup service (#14006) * modifying policy validation limits as per backup service * updated changelog * Improve getting command ast and parse parameters (#13864) * Improve getting command ast and parse parameters. - We use the RelatedAsts from PSReadLine to get the command AST as the user input. This is what our prediction will try to match. - Now we can parse the parameter in the format of "-Name:Value". - We don't parse positioinal parameters yet. * Incorporate PR feedback. * Add test matrix for Az.Accounts (#13760) * add test matrix for Az.Accounts * Update test-matrix-for-az-accounts.md * Update test-matrix-for-az-accounts.md * update to address comments * update category description * refine test auto tag * refine test matrix * refine document * Documentation improvement to Az.StackHCI (#13988) * Fix example format of Register-AzStackHCI * module description * Update Register-AzStackHCI.md * exit 0 * Support for Proximity placement group and Availability zone for Vmware to Azure and HyperV to Azure scenarios (#14007) * Support for Proximity placement group and Availability zone for Vmware to Azure and HyperV to Azure scenarios * Updated changeLog to resolve conflicts� * Updated changelog * Resolving conflicts * Addressed review comments * Resolving conflict * Resoving conflicts in changeLog.md file * Fixed broken link to contribution guidelines (#14009) * Fixed broken link to contribution guidelines I assume the correct link should be `https://opensource.microsoft.com/collaborate` like it was updated in other projects like [azure-sdk](Azure/azure-sdk-for-c#1101). * Updated broken link in contributing.md Co-authored-by: Damien Caro <[email protected]> * Update error kind when context is incorrect (#14013) * Release Az.Migrate 2021-01-21 (#13995) (#14027) * enable import EC key via byok (#14002) Co-authored-by: Yeming Liu <[email protected]> * [HDInsight] Support compute isolation feature and return private ip address feature (#14032) * Support compute isolation feature and return private ip address feature * Fix bad code style Co-authored-by: Zhenyu Zhou <[email protected]> * Update .gitignore - ignore all test results (#14043) * Webapp: Support for appservice ImportKeyVault Certificate (#14037) * #Commit1 * #Commit2 * #Commit3 * Cplat enablebursting (#14038) * bursting enabled * update * [Automation]Fix the issue of processing PSCustomObject (#14045) * Fix the issue of processing PSCustomObject. * Add changelog * Update ChangeLog.md Co-authored-by: wyunchi-ms <[email protected]> * Log Analytics new parameters Group By ApplicationId and UserAgent (#14015) * data dog work, signed nuget packages * nuget pkg from signed location .net * using the package that released data dog functionality * update nuget and disk objs * back to 42 to avoid test failures * v42 * Update RecoveryServices.Backup.Test.csproj * Update RecoveryServices.SiteRecovery.Test.csproj * Update SqlVirtualMachine.Test.csproj * remove bad cmdlet to see if resolves CI errors * Update LogAnalyticTests.ps1 Co-authored-by: Jin Lei <[email protected]> > > @Sandido > > Compute test module uses storage via cmdlets defined in AzureRM.Storage.ps1. New-AzStorageContext cannot be recognized because it is not defined in AzureRM.Storage.ps1. > > Could you try to modify your test and not to use these storage cmdlets? > > @msJinLei , Without this cmdlet, the test does not function. I have commented out the test code, and made the test a LiveOnly test. The code can be uncommented to be run locally. I will see if the SDK team can add New-AzStorageContext to AzureRM.Storage.ps1 at a later date. We want this work merged by 2/1 so please consider this PR for merging. OK * Fix top value when top is not provided (#14051) * Fix top value when max is not provided * Fix changelog.md error * Update ChangeLog.md Co-authored-by: Namrata Jagasia <[email protected]> Co-authored-by: msJinLei <[email protected]> Co-authored-by: Jin Lei <[email protected]> * breaking change message (#14050) * Update WAF Sdk to support RequestBodyCheck and JSON exclussions (#14044) * Update WAF Sdk to support RequestBodyCheck and JSON exclussions * Add check to test case * Add sets * Update ChangeLog.md Co-authored-by: Jin Lei <[email protected]> * rename VMWare to VMware, and set confirmimpact to 'High' for remove-azvmwareprivatecloud (#14031) * rename VMWare to VMware * Update Changelog.md * Update Changelog.md * fix changelog * change name from virtual router to route server * Fix predicate expression for server audit (#14063) * fix PredicateExpression for server audit policy * re-record all audit tests to avoid regression * updated ChangeLog.md * Make build change * Undo make build change Co-authored-by: Oleg Sternberg <[email protected]> * Add ExpressRoutePort MACsec SCI state (#13928) * Migrate macsec changes from broken repo * Move get service principal id into PS script. Add documentation in PS test cript * Update ChangeLog.md * Add SciState to Get-AzExpressRoutePort help examples * Add test record * change name from virtual router to route server (#14061) Co-authored-by: Yabo Hu <[email protected]> * Update service principal warning (#14064) * Azure VMware Solution (#14059) * Add codeowner for policyInsights (#14052) We had a change go into our cmdlets from someone outside the service team. Want to ensure future changes are reviewed by us, * Enable Get-AzVM piping to Get-AzVMExtension cmdlet (#14039) * dev, test, changelog, help doc * resourceId and switch * id * resourceId fix Co-authored-by: Jin Lei <[email protected]> * Fix Microsoft.Azure.Management.ResourceManager dll conflict (#14072) * Upgrade common, implement getserviceclient credential, invoke listener to be cleared (#14073) * Using the latest version of autorest to generate code for 'costmanagement' (#14048) * Move CostManagement to master * update the changelog * update the changelog file Co-authored-by: azurepowershell <[email protected]> * [Storage] Upgrade XSCL and Azure.Core 1.8.1 (#14058) * Remove tools/VersionController/packages.config (#14065) * Webapp: [Documentation]Adding Linux property for New-AzAppServicePlan cmdlet (#14078) * #Commit1 * #Commit2 * #Commit3 * #13531Commit1 * Set-AzDataLakeGen2AclRecursive.md - Fix typo (directiry -> directory) (#14082) * Using the latest version of autorest to generate code for 'Databricks' (#14049) * Move Databricks to master * update the changelog * update the changelog file Co-authored-by: azurepowershell <[email protected]> * Add CloudError code into exception for tracking (#14077) * Update error kind when context is incorrect * Add cloud error code into exception data * Add changelog * Improve error handling and bug fix (#14033) * Improve error handling and bug fix * Change literal string to constant per change in Common assembly * Fix build error * Code refactoring * add ACR repository operations (#13946) * add ACR repository operations * add shouldprocess * implement iazuresessioncomponentlistener * add comments and exception * fix cache impl * resolve comments * getlastlisted * remove unused class * remove unneeded changes * fix null reference in PSAcrManifest and remove unused suppression * Update ChangeLog.md * fix Acr to ACR in help markdown * fix output type for Get-AzContainerRegistryRepository * polish changelog for upcoming release (#14076) * Polish changelog for az.accounts (#14080) * Update ChangeLog.md * Update ChangeLog.md * Create ChangeLog.md Co-authored-by: Dingmeng Xue <[email protected]> * Update Az.Accounts help (#14090) * Added cmdlet Test-AzMySqlFlexibleServerConnect (#14091) * Revert module version (#14098) * Add cmdlet Test-AzPostgreSqlFlexibleServerConnect (#14096) * Add cmdlet Test-AzPostgreSqlFlexibleServerConnect * Update ChangeLog.md Co-authored-by: Yunchi Wang <[email protected]> * Cover New-AzSqlElasticPool case for SQL maintenance (#14102) * Cover New-Pool case for maintenance * Added test coverage Co-authored-by: Dingmeng Xue <[email protected]> * Remove incorrect changelog (#14099) * Revert module version * Remove incorrect changelog * add cmdlets Get/Start/convert-SynapseVulnerabilityAssessmentScan (#13690) * SynapseVulnerabilityAssessmentScan * refine name * refine function * fix problem for StartAzureSynapseSqlPoolVulnerabilityAssessmentScan not work * some draft codes * resolve confilct 2 * removce strange sign * format code * refine function * add test * add help doc * code refine * format refine * update Az.Synapse.psd1 * add test json * refinde document * improve help examples * added test json * added test json 2 * improved test * add tests to credscansuppression * Get-AzSynapseSqlPoolGeoBackup and Get-AzSynapseDroppedSqlPool. (#13621) * GetAzureSynapseSqlPoolGeoBackup * refine function and constant * add help * GetAzureSynapseSqlDeletedDatabaseBackup * refine backup function * refine doc * add Getazuresynapsesqldeleteddatabasebackup * refined help doc * refine function * resolve id name type not found in output problem * add test * update command name * resolve some comments * resovle function problem * test improvement * add wildcard * rename help doc * add resourceid * Update ChangeLog.md Co-authored-by: Jin Lei <[email protected]> * Type fox: changed SshKeyVaule to SshKeyValue (#14087) * Examples used New-AzAks which is legacy cmdlet and the alias for New-AzAksCluster. Changed examples to use New-AzAksCluster which is the cmdlet this documentation page targets. (#14088) Co-authored-by: erich-wang <[email protected]> * Fixed a typo in the cmdlet (#14112) * Add legal term and parameter -AcceptEULA to 'New-AzVMwarePrivateCloud' (#14111) * Move VMware to master * update changelog * Update Changelog.md * Update New-AzVMwarePrivateCloud.ps1 * Update New-AzVMwarePrivateCloud.md * Update New-AzVMwarePrivateCloud.ps1 Co-authored-by: azurepowershell <[email protected]> Co-authored-by: Dingmeng Xue <[email protected]> * Revert "Pass principal type during role assignment put operations" (#14122) * Revert "Pass principal type during role assignment put operations (#13590)" This reverts commit 3d473e4. * changelog * update changelog Co-authored-by: Daniel Orozco <[email protected]> Co-authored-by: Daniel Orozco <[email protected]> * Honoring UseManagedDisk input for HyperV to Azure scenario in site recovery service (#14128) (#14131) * Honoring UseManagedDisk input for HyperV to Azure scenario in site recovery service * Update in changeLog * Update in help file * Minor fix in help file * Added test cases * NIT fixes for spaces * Addressed review comments Co-authored-by: vidyadharijami <[email protected]> * Added support for -QueryString parameters to cmdlets hitting /validate API and Fixed issues with dynamic parameters (#14132) * QuerySTring support for validate cmdlets * Refactor querystring; Fix issues with dynamic parameters * Updated changelog and help files * Honoring UseManagedDisk input for HyperV to Azure scenario in site recovery service (#14128) * Honoring UseManagedDisk input for HyperV to Azure scenario in site recovery service * Update in changeLog * Update in help file * Minor fix in help file * Added test cases * NIT fixes for spaces * Addressed review comments Co-authored-by: vidyadharijami <[email protected]> * release-2021-02-09 (#14137) * release-2021-02-09 * Update ChangeLog.md * switch param best practice (#14142) * add local parameter map saving to a local file (#14018) (#14140) * add local parameter map saving to a local file * fix local parameter map saving * revere serviceUri change in AzPredictorSettings Co-authored-by: yemohyle <[email protected]> * Remove culture from help markdown files (#14047) * update MarkDwon file to remove specified language * update the "HelpGeneration" file to fix static analysis issue * Update the ‘Az.VMware.md’ file * update the "HelpGeneration" files * update markdown file to fix online url issue for azsynapse * update markdown file for Synaps * Test-AzMySqlFlexibleServerConnect.md * Update Test-AzPostgreSqlFlexibleServerConnect.md Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: Yeming Liu <[email protected]> * Optimize for CI filter. (#13994) * Optimize for CI filter. * Add support for TargetModule Co-authored-by: wyunchi-ms <[email protected]> * [Tools] Use type fullname to avoid issue from class renaming. (#14147) * Optimize for CI filter. * Add support for TargetModule * Avoid the issue caused by renaming class. * Avoid the issue caused by renaming class. Co-authored-by: wyunchi-ms <[email protected]> * Fix example doc syntax (#14146) * [Tools] Fix the issue of different name of module and folder when run CI pipeline (#14151) * Optimize for CI filter. * Add support for TargetModule * Avoid the issue caused by renaming class. * Avoid the issue caused by renaming class. * Fix the issue of different name of module and folder * Fix the issue of different name of module and folder Co-authored-by: wyunchi-ms <[email protected]> * [DataFactory]Upgrade sdk version to 4.14.0 (#14149) * [DataFactory]Upgrade sdk version to 4.14.0 * revert * Revert "revert" This reverts commit aa7f924. * Azure Automation documentation update for Get-AzAutomationWebhook and New-AzAutomationSourceControl (#14154) * Updating documentation * Adding new line and adding bold emphasis * Small spelling, formatting changes (#14155) 'objecy' jumped out at me, so I figured I'd see if there's anything else needs changing to make this look better. Question: In other functions, SubscriptionId is a "String" type - here it is listed as a "String[]" type - is this correct? * Update Set-AzNetworkSecurityRuleConfig.md (#14176) * Added an additional cmdline to the example which applies the changes to the load balancer (#14185) When running the PowerShell example, the changes will not be applied to the load balancer unless you perform an additional Set-AzLoadBalancer step. * Add cmdlet to enable/disable az predictor (#14188) * Add cmdlet. * Modify the parmaeter values. * Fixed issues with TemplateSpec deployments in New-AzTenantDeployment … (#14179) * Fixed issues with TemplateSpec deployments in New-AzTenantDeployment and New-AzManagementGroupDeployment * Review fixes * Modified and re-recorded Test-NewMGDeploymentFromTemplateSpec * Acr fix (#14177) (#14189) * fix docker push issue: use refresh token to login * changelog * OOB release for Az.ContainerReigstry * resolve comments * Blueprint: Unregister API delegating handler (#14200) * Update blueprint client to unregister api handler * Update change log * Use initial client design where we create seperate clients based on whether delegating handler is used. This works better with piping scenarios * New and set artifact cmdlets don't require bp client with $expand handler * Clean white space * Clean up more white space * Fix the issue that PR changed files list is empty (#14202) * Fix the issue that PR changed files list is empty * Fix the issue that PR changed files list is empty Co-authored-by: wyunchi <[email protected]> * update parameter descriptions: -CustomData for Set-AzVMOperatingSystem and -LicenseType for New-AzVM (#14210) * update md files * Update Set-AzVMOperatingSystem.md * Update Set-AzVMOperatingSystem.md * Update New-AzVM.md * Update the cmdlet parameters according to feedback. (#14217) * [DPS] Add attestation mechanism updates to device enrollment and enrollment group commands (#14219) * Added attestation mechanism updates to device enrollment and enrollment group commands * Updated changelog * Update ChangeLog.md Co-authored-by: Yabo Hu <[email protected]> * Add prompt for usage and survey (#13965) * Add prompt for usage and survey. * Condition the survey and correlate survey and telemetry. - Check if the user has used the module in the past 30 days and whether the user uses at least 3 times. If so, prompt the survey. - Create a survey id based on user id and use it to associate the survey and the telemetry. - Add a field in the telemetry to check if the telemetry data is from an internal user. * Wrap the intercept script in the script to process. * Update the link and message color. * Update the survey prompt UI. * Updated module description * Revert the version and add copyright. * Incorporate feedback. * Incorporate feedback. * Improve the comment. * Use a new flag to ignore null value in json serialization. * Remove the prompt about psreadlineoption. - It's replaced with cmdlets. Co-authored-by: Damien Caro <[email protected]> * [Tools] Fix the issue of CI Pipeline (#14222) * Fix the issue that cannot fine valid module for Generated module in CI pipeline * Fix the issue that Target module fails Co-authored-by: wyunchi-ms <[email protected]> * Cosmos DB: Update to 2.0.0 and Add support for NetworkAclBypass in Account (#14211) * Make changes for Network Acl Bypass * Add help file updates * Changes with enum not as string * rerun tests * Remove extra line * rerun gremlin test with updated * Update ChangeLog.md Co-authored-by: Yabo Hu <[email protected]> * Fixed invalid ts deployment error message (#14236) * Fixed invalid ts deployment error message and added support for -TemplateParameterObject in TS deployments * Update help files for new parameter set * review fixes * [AzRecoveryServices.Backup] Adding null check for target storage account (#13681) * Adding null check for target storage account * fixing the operations delay * re-recorded failed tests * Add support for Python 3 Runbook Type (#14226) * Add support for Python 3 Runbook Type * Update change.log * Updated markdown help files * Update ChangeLog.md Co-authored-by: Mahak Jain <[email protected]> Co-authored-by: Yabo Hu <[email protected]> * Update Add-AzLoadBalancerInboundNatPoolConfig.md (#14231) with out using the Set-AzLoadBalancer after line 42 the natpool config will not be updated to the LB and the example would be incomplete. * Log Analytics .md files updates (#14203) * desc update and results * changelog * Update ChangeLog.md * Update ChangeLog.md Co-authored-by: Yunchi Wang <[email protected]> Co-authored-by: Himanshu Agarwal <[email protected]> Co-authored-by: Sebastian Olsen <[email protected]> Co-authored-by: jiansong-msft <[email protected]> Co-authored-by: kceiw <[email protected]> Co-authored-by: erich-wang <[email protected]> Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: vidyadharijami <[email protected]> Co-authored-by: Alexander Schmidt <[email protected]> Co-authored-by: Damien Caro <[email protected]> Co-authored-by: Dingmeng Xue <[email protected]> Co-authored-by: Jin Lei <[email protected]> Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: aim-for-better <[email protected]> Co-authored-by: Zhenyu Zhou <[email protected]> Co-authored-by: ThejaChoudary <[email protected]> Co-authored-by: Theodore Chang <[email protected]> Co-authored-by: Yunchi Wang <[email protected]> Co-authored-by: wyunchi-ms <[email protected]> Co-authored-by: Adam Sandor <[email protected]> Co-authored-by: najagasi <[email protected]> Co-authored-by: Namrata Jagasia <[email protected]> Co-authored-by: msJinLei <[email protected]> Co-authored-by: digavino <[email protected]> Co-authored-by: Yabo Hu <[email protected]> Co-authored-by: Oleza1972 <[email protected]> Co-authored-by: Oleg Sternberg <[email protected]> Co-authored-by: francescanarea <[email protected]> Co-authored-by: Robert Lyon <[email protected]> Co-authored-by: Cameron Taggart <[email protected]> Co-authored-by: Chris Eggert <[email protected]> Co-authored-by: Youri970410 <[email protected]> Co-authored-by: azurepowershell <[email protected]> Co-authored-by: Wei Wei <[email protected]> Co-authored-by: Christoph Bergmeister [MVP] <[email protected]> Co-authored-by: Roman Khotsyn <[email protected]> Co-authored-by: zesluo <[email protected]> Co-authored-by: Jan David Narkiewicz <[email protected]> Co-authored-by: Martin Ehrnst <[email protected]> Co-authored-by: Daniel Orozco <[email protected]> Co-authored-by: Daniel Orozco <[email protected]> Co-authored-by: Gokul Premraj <[email protected]> Co-authored-by: yemohyle <[email protected]> Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: Jingshu923 <[email protected]> Co-authored-by: Shivam Tyagi <[email protected]> Co-authored-by: alunmj <[email protected]> Co-authored-by: webguynj <[email protected]> Co-authored-by: Yannick Dils <[email protected]> Co-authored-by: Filiz Topatan <[email protected]> Co-authored-by: Ryan K <[email protected]> Co-authored-by: kristynhamasaki <[email protected]> Co-authored-by: mahakjain314 <[email protected]> Co-authored-by: Mahak Jain <[email protected]> Co-authored-by: chakra146 <[email protected]> * Update CredScanSuppressions.json * Update Get-AzVpnSiteLinkConnectionIkeSa.md * Update Get-AzVpnSiteLinkConnectionIkeSa.md * Revert "Merge branch 'network-november' into vpn-ikesa" This reverts commit 4ec8542, reversing changes made to e97b15b. Co-authored-by: Abhishek Shah <[email protected]> Co-authored-by: litchiyangMSFT <[email protected]> Co-authored-by: Himanshu Agarwal <[email protected]> Co-authored-by: Sebastian Olsen <[email protected]> Co-authored-by: jiansong-msft <[email protected]> Co-authored-by: kceiw <[email protected]> Co-authored-by: erich-wang <[email protected]> Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: vidyadharijami <[email protected]> Co-authored-by: Alexander Schmidt <[email protected]> Co-authored-by: Damien Caro <[email protected]> Co-authored-by: Dingmeng Xue <[email protected]> Co-authored-by: Jin Lei <[email protected]> Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: aim-for-better <[email protected]> Co-authored-by: Zhenyu Zhou <[email protected]> Co-authored-by: ThejaChoudary <[email protected]> Co-authored-by: Theodore Chang <[email protected]> Co-authored-by: Yunchi Wang <[email protected]> Co-authored-by: wyunchi-ms <[email protected]> Co-authored-by: Adam Sandor <[email protected]> Co-authored-by: najagasi <[email protected]> Co-authored-by: Namrata Jagasia <[email protected]> Co-authored-by: msJinLei <[email protected]> Co-authored-by: digavino <[email protected]> Co-authored-by: Yabo Hu <[email protected]> Co-authored-by: Oleza1972 <[email protected]> Co-authored-by: Oleg Sternberg <[email protected]> Co-authored-by: francescanarea <[email protected]> Co-authored-by: Robert Lyon <[email protected]> Co-authored-by: Cameron Taggart <[email protected]> Co-authored-by: Chris Eggert <[email protected]> Co-authored-by: Youri970410 <[email protected]> Co-authored-by: azurepowershell <[email protected]> Co-authored-by: Wei Wei <[email protected]> Co-authored-by: Christoph Bergmeister [MVP] <[email protected]> Co-authored-by: Roman Khotsyn <[email protected]> Co-authored-by: zesluo <[email protected]> Co-authored-by: Jan David Narkiewicz <[email protected]> Co-authored-by: Martin Ehrnst <[email protected]> Co-authored-by: Daniel Orozco <[email protected]> Co-authored-by: Daniel Orozco <[email protected]> Co-authored-by: Gokul Premraj <[email protected]> Co-authored-by: yemohyle <[email protected]> Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: Jingshu923 <[email protected]> Co-authored-by: Shivam Tyagi <[email protected]> Co-authored-by: alunmj <[email protected]> Co-authored-by: webguynj <[email protected]> Co-authored-by: Yannick Dils <[email protected]> Co-authored-by: Filiz Topatan <[email protected]> Co-authored-by: Ryan K <[email protected]> Co-authored-by: kristynhamasaki <[email protected]> Co-authored-by: mahakjain314 <[email protected]> Co-authored-by: Mahak Jain <[email protected]> Co-authored-by: chakra146 <[email protected]>
1 parent 22d76ee commit 5816106

File tree

34 files changed

+12413
-21
lines changed

34 files changed

+12413
-21
lines changed

src/Batch/Batch.Test/Batch.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageReference Include="Microsoft.Azure.Batch" Version="13.0.0" />
1818
<PackageReference Include="Microsoft.Azure.Management.Batch" Version="11.0.0" />
1919
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
20-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
20+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
2121
</ItemGroup>
2222

2323
<ItemGroup>

src/CognitiveServices/CognitiveServices.Test/CognitiveServices.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="7.4.0-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
1616
</ItemGroup>
1717

1818
</Project>

src/Compute/Compute.Test/Compute.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="43.0.0-preview" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.1.0-preview.2" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/ContainerRegistry/ContainerRegistry.Test/ContainerRegistry.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.ContainerRegistry" Version="4.0.0" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
1616
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="5.6.0" />
1717
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="5.6.0">
1818
<NoWarn>NU1608</NoWarn>

src/CosmosDB/CosmosDB.Test/CosmosDB.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</PropertyGroup>
55
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.Test.props" />
66
<ItemGroup>
7-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
7+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
88
<PackageReference Include="Microsoft.Azure.Management.CosmosDB" Version="2.0.0" />
99
</ItemGroup>
1010
</Project>

src/DataLakeStore/DataLakeStore.Test/DataLakeStore.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.DataLake.Store" Version="2.4.2-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

src/Dns/Dns.Test/Dns.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.Dns" Version="3.0.1" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
1616
</ItemGroup>
1717

1818
</Project>

src/HDInsight/HDInsight.Test/HDInsight.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PackageReference Include="Microsoft.Azure.Management.HDInsight.Job" Version="2.0.7" />
1717
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.1.0-preview.2" />
1818
<PackageReference Include="Microsoft.Azure.Management.ManagedServiceIdentity" Version="0.11.0" />
19-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
19+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
2020
<PackageReference Include="Microsoft.Azure.Management.OperationalInsights" Version="0.21.0-preview" />
2121
</ItemGroup>
2222

src/HPCCache/HPCCache.Test/HPCCache.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<ItemGroup>
1818
<PackageReference Include="Microsoft.Azure.Management.Authorization" Version="2.11.0-preview" />
1919
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.5.0" />
20-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
20+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
2121
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
2222
</ItemGroup>
2323

src/KeyVault/KeyVault.Test/KeyVault.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
1515
<PackageReference Include="Microsoft.Azure.KeyVault.WebKey" Version="3.0.1" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.1.0-preview.2" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/Monitor/Monitor.Test/Monitor.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.Monitor" Version="0.25.3-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.ApplicationInsights" Version="0.3.0-preview" />
16-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
16+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
1717
<PackageReference Include="Microsoft.Azure.Management.OperationalInsights" Version="0.21.0-preview" />
1818
</ItemGroup>
1919

src/NetAppFiles/NetAppFiles.Test/NetAppFiles.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.NetApp" Version="1.8.0" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
1616
</ItemGroup>
1717

1818
</Project>

src/Network/Network.Test/Network.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.3.0" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="201.359.57612" />
1818
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.5" />
1919
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.1.0-preview.2" />
2020
<PackageReference Include="Microsoft.Azure.Insights" Version="0.16.0-preview" />

src/Network/Network.Test/ScenarioTests/CortexTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,13 @@ public void TestVpnConnectionPacketCapture()
106106
{
107107
TestRunner.RunTestScript("Test-VpnConnectionPacketCapture");
108108
}
109+
110+
[Fact]
111+
[Trait(Category.AcceptanceType, Category.CheckIn)]
112+
[Trait(Category.Owner, NrpTeamAlias.brooklynft)]
113+
public void TestVpnSiteLinkConnectionGetIkeSa()
114+
{
115+
TestRunner.RunTestScript("Test-VpnSiteLinkConnectionGetIkeSa");
116+
}
109117
}
110118
}

src/Network/Network.Test/ScenarioTests/CortexTests.ps1

Lines changed: 212 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,4 +1289,215 @@ function Test-VHubRouteTableCRUD
12891289

12901290
Clean-ResourceGroup $rgname
12911291
}
1292-
}
1292+
}
1293+
1294+
function Test-VpnSiteLinkConnectionGetIkeSa
1295+
{
1296+
# Setup
1297+
$rgName = Get-ResourceName
1298+
$rglocation = Get-ProviderLocation ResourceManagement
1299+
$virtualWan1Name = Get-ResourceName
1300+
$virtualWan2Name = Get-ResourceName
1301+
$virtualHub1Name = Get-ResourceName
1302+
$virtualHub2Name = Get-ResourceName
1303+
$vpnSiteLink1Name = Get-ResourceName
1304+
$vpnSiteLink2Name = Get-ResourceName
1305+
$vpnSite1Name = Get-ResourceName
1306+
$vpnSite2Name = Get-ResourceName
1307+
$vpnGateway1Name = Get-ResourceName
1308+
$vpnGateway2Name = Get-ResourceName
1309+
$vpnSiteLinkConnection1Name = Get-ResourceName
1310+
$vpnSiteLinkConnection2Name = Get-ResourceName
1311+
$vpnConnection1Name = Get-ResourceName
1312+
$vpnConnection2Name = Get-ResourceName
1313+
1314+
try
1315+
{
1316+
# Create Resource Group
1317+
$resourceGroup = New-AzResourceGroup -Name $rgName -Location $rglocation
1318+
1319+
# Create and Get Virtual Wan 1
1320+
$createVirtualWan1 = New-AzVirtualWan -ResourceGroupName $rgName -Name $virtualWan1Name -Location $rglocation -AllowVnetToVnetTraffic -AllowBranchToBranchTraffic
1321+
$virtualWan1 = Get-AzVirtualWan -ResourceGroupName $rgName -Name $virtualWan1Name
1322+
Assert-AreEqual $rgName $virtualWan1.ResourceGroupName
1323+
Assert-AreEqual $virtualWan1Name $virtualWan1.Name
1324+
1325+
# Create and Get Virtual Hub 1
1326+
$createVirtualHub1 = New-AzVirtualHub -ResourceGroupName $rgName -Name $virtualHub1Name -Location $rglocation -AddressPrefix "192.168.1.0/24" -VirtualWan $virtualWan1
1327+
$virtualHub1 = Get-AzVirtualHub -ResourceGroupName $rgName -Name $virtualHub1Name
1328+
Assert-AreEqual $rgName $virtualHub1.ResourceGroupName
1329+
Assert-AreEqual $virtualHub1Name $virtualHub1.Name
1330+
Assert-AreEqual "192.168.1.0/24" $virtualHub1.AddressPrefix
1331+
1332+
# Create VPN Gateway 1
1333+
$createVpnGateway1Job = New-AzVpnGateway -ResourceGroupName $rgName -Name $vpnGateway1Name -VirtualHub $virtualHub1 -VpnGatewayScaleUnit 3 -AsJob
1334+
1335+
# Create and Get Virtual Wan 2
1336+
$createVirtualWan2 = New-AzVirtualWan -ResourceGroupName $rgName -Name $virtualWan2Name -Location $rglocation -AllowVnetToVnetTraffic -AllowBranchToBranchTraffic
1337+
$virtualWan2 = Get-AzVirtualWan -ResourceGroupName $rgName -Name $virtualWan2Name
1338+
Assert-AreEqual $rgName $virtualWan2.ResourceGroupName
1339+
Assert-AreEqual $virtualWan2Name $virtualWan2.Name
1340+
1341+
# Create and Get Virtual Hub 2
1342+
$createVirtualHub2 = New-AzVirtualHub -ResourceGroupName $rgName -Name $virtualHub2Name -Location $rglocation -AddressPrefix "192.169.1.0/24" -VirtualWan $virtualWan2
1343+
$virtualHub2 = Get-AzVirtualHub -ResourceGroupName $rgName -Name $virtualHub2Name
1344+
Assert-AreEqual $rgName $virtualHub2.ResourceGroupName
1345+
Assert-AreEqual $virtualHub2Name $virtualHub2.Name
1346+
Assert-AreEqual "192.169.1.0/24" $virtualHub2.AddressPrefix
1347+
1348+
# Create VPN Gateway 2
1349+
$createVpnGateway2Job = New-AzVpnGateway -ResourceGroupName $rgName -Name $vpnGateway2Name -VirtualHub $virtualHub2 -VpnGatewayScaleUnit 3 -AsJob
1350+
1351+
# Create and Get VPN Site 1 with Links
1352+
$vpnSite1AddressSpaces = New-Object string[] 1
1353+
$vpnSite1AddressSpaces[0] = "192.168.2.0/24"
1354+
$vpnSiteLink1 = New-AzVpnSiteLink -Name $vpnSiteLink1Name -IpAddress "5.5.5.5" -LinkProviderName "SomeTelecomProvider1" -LinkSpeedInMbps "10"
1355+
1356+
$createVpnSite1 = New-AzVpnSite -ResourceGroupName $rgName -Name $vpnSite1Name -Location $rglocation -VirtualWan $virtualWan1 -AddressSpace $vpnSite1AddressSpaces -DeviceModel "SomeDevice1" -DeviceVendor "SomeDeviceVendor1" -VpnSiteLink @($vpnSiteLink1)
1357+
$vpnSite1 = Get-AzVpnSite -ResourceGroupName $rgName -Name $vpnSite1Name
1358+
Assert-AreEqual $rgName $vpnSite1.ResourceGroupName
1359+
Assert-AreEqual $vpnSite1Name $vpnSite1.Name
1360+
Assert-AreEqual 1 $vpnSite1.VpnSiteLinks.Count
1361+
1362+
# Get VPN Gateway 1
1363+
$createVpnGateway1Job | Wait-Job
1364+
$gw1 = $createVpnGateway1Job | Receive-Job
1365+
$vpnGateway1 = Get-AzVpnGateway -ResourceGroupName $rgName -Name $vpnGateway1Name
1366+
Assert-AreEqual $rgName $vpnGateway1.ResourceGroupName
1367+
Assert-AreEqual $vpnGateway1Name $vpnGateway1.Name
1368+
Assert-AreEqual 3 $vpnGateway1.VpnGatewayScaleUnit
1369+
1370+
# Create and Get VPN Connection 1 and VPN Site Link Connection 1
1371+
$sharedKeySecureString = ConvertTo-SecureString -String "abcd" -AsPlainText -Force
1372+
1373+
$vpnSiteLinkConnection1 = New-AzVpnSiteLinkConnection -Name $vpnSiteLinkConnection1Name -VpnSiteLink $vpnSite1.VpnSiteLinks[0] -SharedKey $sharedKeySecureString -ConnectionBandwidth 100
1374+
$createVpnConnection1 = New-AzVpnConnection -ResourceGroupName $rgName -ParentResourceName $vpnGateway1Name -Name $vpnConnection1Name -VpnSite $vpnSite1 -VpnSiteLinkConnection @($vpnSiteLinkConnection1)
1375+
$vpnConnection1 = Get-AzVpnConnection -ResourceGroupName $rgName -ParentResourceName $vpnGateway1Name -Name $vpnConnection1Name
1376+
Assert-AreEqual $vpnConnection1Name $vpnConnection1.Name
1377+
Assert-AreEqual 1 $vpnConnection1.VpnLinkConnections.Count
1378+
1379+
# Get IP Address of an Instance of VPN Gateway 1
1380+
$instanceIp1 = "0.0.0.0"
1381+
if ((Get-NetworkTestMode) -ne 'Playback')
1382+
{
1383+
$storetype = 'Standard_GRS'
1384+
$containerName = "cont1$($rgName)"
1385+
$storeName = "blob1" + $rgName
1386+
New-AzStorageAccount -ResourceGroupName $rgName -Name $storeName -Location $rglocation -Type $storetype
1387+
$key = Get-AzStorageAccountKey -ResourceGroupName $rgName -Name $storeName
1388+
$context = New-AzStorageContext -StorageAccountName $storeName -StorageAccountKey $key[0].Value
1389+
New-AzStorageContainer -Name $containerName -Context $context
1390+
$container = Get-AzStorageContainer -Name $containerName -Context $context
1391+
$now = Get-Date
1392+
$vpnSite1ConfigFileName = "vpnSite1Config.json"
1393+
$blobSasUrl1 = New-AzStorageBlobSASToken -Container $containerName -Blob $vpnSite1ConfigFileName -Context $context -Permission "rwd" -StartTime $now.AddHours(-1) -ExpiryTime $now.AddDays(1) -FullUri
1394+
$sasUrl1 = Get-AzVirtualWanVpnConfiguration -VirtualWan $virtualWan1 -StorageSasUrl $blobSasUrl1 -VpnSite $vpnSite1
1395+
1396+
$configFile1 = Get-AzStorageBlobContent -Blob $vpnSite1ConfigFileName -Container $containerName -Context $context
1397+
$configFile1Data = (Get-Content $vpnSite1ConfigFileName -Raw) | ConvertFrom-Json
1398+
$instanceIp1 = $configFile1Data.vpnSiteConnections.gatewayConfiguration.IpAddresses.Instance0
1399+
}
1400+
Assert-NotNull $instanceIp1
1401+
1402+
# Create and Get VPN Site 2 with Links
1403+
$vpnSite2AddressSpaces = New-Object string[] 1
1404+
$vpnSite2AddressSpaces[0] = "192.169.2.0/24"
1405+
$vpnSiteLink2 = New-AzVpnSiteLink -Name $vpnSiteLink2Name -IpAddress $instanceIp1 -LinkProviderName "SomeTelecomProvider2" -LinkSpeedInMbps "10"
1406+
1407+
$createVpnSite2 = New-AzVpnSite -ResourceGroupName $rgName -Name $vpnSite2Name -Location $rglocation -VirtualWan $virtualWan2 -AddressSpace $vpnSite2AddressSpaces -DeviceModel "SomeDevice2" -DeviceVendor "SomeDeviceVendor2" -VpnSiteLink @($vpnSiteLink2)
1408+
$vpnSite2 = Get-AzVpnSite -ResourceGroupName $rgName -Name $vpnSite2Name
1409+
Assert-AreEqual $rgName $vpnSite2.ResourceGroupName
1410+
Assert-AreEqual $vpnSite2Name $vpnSite2.Name
1411+
Assert-AreEqual 1 $vpnSite2.VpnSiteLinks.Count
1412+
1413+
# Get VPN Gateway 1
1414+
$createVpnGateway2Job | Wait-Job
1415+
$gw2 = $createVpnGateway2Job | Receive-Job
1416+
$vpnGateway2 = Get-AzVpnGateway -ResourceGroupName $rgName -Name $vpnGateway2Name
1417+
Assert-AreEqual $rgName $vpnGateway2.ResourceGroupName
1418+
Assert-AreEqual $vpnGateway2Name $vpnGateway2.Name
1419+
Assert-AreEqual 3 $vpnGateway2.VpnGatewayScaleUnit
1420+
1421+
# Create and Get VPN Connection 2 to Site with Links
1422+
$vpnSiteLinkConnection2 = New-AzVpnSiteLinkConnection -Name $vpnSiteLinkConnection2Name -VpnSiteLink $vpnSite2.VpnSiteLinks[0] -SharedKey $sharedKeySecureString -ConnectionBandwidth 100
1423+
$createVpnConnection2 = New-AzVpnConnection -ResourceGroupName $rgName -ParentResourceName $vpnGateway2Name -Name $vpnConnection2Name -VpnSite $vpnSite2 -VpnSiteLinkConnection @($vpnSiteLinkConnection2)
1424+
$vpnConnection2 = Get-AzVpnConnection -ResourceGroupName $rgName -ParentResourceName $vpnGateway2Name -Name $vpnConnection2Name
1425+
Assert-AreEqual $vpnConnection2Name $vpnConnection2.Name
1426+
Assert-AreEqual 1 $vpnConnection2.VpnLinkConnections.Count
1427+
1428+
# Get IP Address of an Instance of VPN Gateway 2
1429+
$instanceIp2 = "0.0.0.1"
1430+
if ((Get-NetworkTestMode) -ne 'Playback')
1431+
{
1432+
$storetype = 'Standard_GRS'
1433+
$containerName = "cont2$($rgName)"
1434+
$storeName = "blob2" + $rgName
1435+
New-AzStorageAccount -ResourceGroupName $rgName -Name $storeName -Location $rglocation -Type $storetype
1436+
$key = Get-AzStorageAccountKey -ResourceGroupName $rgName -Name $storeName
1437+
$context = New-AzStorageContext -StorageAccountName $storeName -StorageAccountKey $key[0].Value
1438+
New-AzStorageContainer -Name $containerName -Context $context
1439+
$container = Get-AzStorageContainer -Name $containerName -Context $context
1440+
$now = Get-Date
1441+
1442+
$vpnSite2ConfigFileName = "vpnSite2Config.json"
1443+
$blobSasUrl2 = New-AzStorageBlobSASToken -Container $containerName -Blob $vpnSite2ConfigFileName -Context $context -Permission "rwd" -StartTime $now.AddHours(-1) -ExpiryTime $now.AddDays(1) -FullUri
1444+
$sasUrl2 = Get-AzVirtualWanVpnConfiguration -VirtualWan $virtualWan2 -StorageSasUrl $blobSasUrl2 -VpnSite $vpnSite2
1445+
1446+
$configFile2 = Get-AzStorageBlobContent -Blob $vpnSite2ConfigFileName -Container $containerName -Context $context
1447+
$configFile2Data = (Get-Content $vpnSite2ConfigFileName -Raw) | ConvertFrom-Json
1448+
$instanceIp2 = $configFile2Data.vpnSiteConnections.gatewayConfiguration.IpAddresses.Instance0
1449+
}
1450+
Assert-NotNull $instanceIp2
1451+
1452+
# Update IP Address of VPN Site Link 1
1453+
$vpnSiteLink1.IpAddress = $instanceIp2
1454+
Update-AzVpnSite -InputObject $vpnSite1 -VpnSiteLink $vpnSiteLink1
1455+
$vpnSite1 = Get-AzVpnSite -ResourceGroupName $rgName -Name $vpnSite1Name
1456+
1457+
Start-Sleep -Seconds 350
1458+
1459+
# Get IKE Security Associations for VPN Site Link Connections
1460+
$ikesa1 = Get-AzVpnSiteLinkConnectionIkeSa -ResourceGroupName $rgName -VpnGatewayName $vpnGateway1Name -VpnConnectionName $vpnConnection1Name -Name $vpnSiteLinkConnection1Name
1461+
Assert-NotNull $ikesa1
1462+
1463+
$ikesa2 = Get-AzVpnSiteLinkConnectionIkeSa -InputObject $vpnConnection2.VpnLinkConnections[0]
1464+
Assert-NotNull $ikesa2
1465+
1466+
# Clean Resources
1467+
<#
1468+
$delete = Remove-AzVpnConnection -ResourceGroupName $rgName -ParentResourceName $vpnGateway1Name -Name $vpnConnection1Name -Force -PassThru
1469+
Assert-AreEqual $True $delete
1470+
1471+
$delete = Remove-AzVpnConnection -ResourceGroupName $rgName -ParentResourceName $vpnGateway2Name -Name $vpnConnection2Name -Force -PassThru
1472+
Assert-AreEqual $True $delete
1473+
1474+
$delete = Remove-AzVpnGateway -ResourceGroupName $rgName -Name $vpnGateway1Name -Force -PassThru
1475+
Assert-AreEqual $True $delete
1476+
1477+
$delete = Remove-AzVpnGateway -ResourceGroupName $rgName -Name $vpnGateway2Name -Force -PassThru
1478+
Assert-AreEqual $True $delete
1479+
1480+
$delete = Remove-AzVpnSite -ResourceGroupName $rgName -Name $vpnSite1Name -Force -PassThru
1481+
Assert-AreEqual $True $delete
1482+
1483+
$delete = Remove-AzVpnSite -ResourceGroupName $rgName -Name $vpnSite2Name -Force -PassThru
1484+
Assert-AreEqual $True $delete
1485+
1486+
$delete = Remove-AzVirtualHub -ResourceGroupName $rgName -Name $virtualHub1Name -Force -PassThru
1487+
Assert-AreEqual $True $delete
1488+
1489+
$delete = Remove-AzVirtualHub -ResourceGroupName $rgName -Name $virtualHub2Name -Force -PassThru
1490+
Assert-AreEqual $True $delete
1491+
1492+
$delete = Remove-AzVirtualWan -ResourceGroupName $rgName -Name $virtualWan1Name -Force -PassThru
1493+
Assert-AreEqual $True $delete
1494+
1495+
$delete = Remove-AzVirtualWan -ResourceGroupName $rgName -Name $virtualWan2Name -Force -PassThru
1496+
Assert-AreEqual $True $delete
1497+
#>
1498+
}
1499+
finally
1500+
{
1501+
Clean-ResourceGroup $rgname
1502+
}
1503+
}

0 commit comments

Comments
 (0)