Commit Graph

37 Commits

Author SHA1 Message Date
Azure SDK Bot
ab0a92ce62
Sync eng/common directory with azure-sdk-tools for PR 1408 (#1683)
* Improve TestResources docs and logging

Resolves #1388
Resolves #1407

Also ignores cached service principal if it no longer exists. I ran into this while testing since I cleaned up old SPs.

* Add ADP test sub to look-up

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2021-02-12 19:08:11 -08:00
Azure SDK Bot
d76cdf4c6d
Allow logging into specific subscription (#1681)
Resolves #1404

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2021-02-12 12:29:16 -08:00
Azure SDK Bot
3d668eeccf
Sync eng/common directory with azure-sdk-tools for PR 1351 (#1533)
* tweaks to New-TestResources readme
2021-02-01 09:36:50 -06:00
Azure SDK Bot
c9258ee33f
Sync eng/common directory with azure-sdk-tools for PR 1210 (#984)
* Cache created service principal for iteration

Useful when testing changes over and over again without passing your own -TestApplicationId and -TestApplicationSecret.

* Restore initial AzContext for New-TestResources

* Make sure PSBoundParameters is correct

Fixes #1177

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2020-11-16 13:42:08 -08:00
Azure SDK Bot
941d33fe90
Sync eng/common directory with azure-sdk-tools for PR 1202 (#970)
* Add debugging link on resource deployment failures to log output

* Update aka link for live test help docs. Use here string and empty throw.

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2020-11-12 17:31:23 -08:00
Azure SDK Bot
de005643ce
Change live test resource DeleteAfterHours tag to 8 hours (#969)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2020-11-12 13:57:03 -08:00
Azure SDK Bot
2ce6e28eb0
Remove invalid characters in basename sourced from username (#948)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2020-11-11 13:53:23 -08:00
Azure SDK Bot
44cfd6c1dd
Sync eng/common directory with azure-sdk-tools for PR 1188 (#947)
* Add debug flag to arm deployment command

* Only set debug preference when $CI is true

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2020-11-11 13:35:57 -08:00
Azure SDK Bot
038d02fd50
Sync eng/common directory with azure-sdk-tools for PR 1163 (#919)
* Update subscription configuration schema to include new parameters

* Support platform specific arm template parameters and legacy hashtable format

* Update arm template parameter comment to include top level key

* Restore AdditionalParameters. Merge ArmTemplateParameters from stringified hash literal

* Handle duplicate keys more explicitly for arm and env vars

* Regenerate New-TestResources.ps1 markdown

* revert variable name to environmentVariables to fix post-scripts

* Handle empty arm template parameters better

* Remove arm template parameter merge logic from deploy template

* Add merge hashes function to New-TestResources.ps1

* Add merge hashes function to New-TestResources.ps1

* Add env variable overwrite warning. Use ContainsKey checks

* Temporarily manually fix invalid generated markdown links

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2020-11-09 20:49:45 -05:00
Azure SDK Bot
088a4c85db
Make sure we always log in as app or provisioner (#908)
This also adds previously-required parameters back into
@PSBoundParameters to pass down to pre- and post-scripts.

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2020-11-06 10:03:07 -08:00
Azure SDK Bot
814a7b9203
Sync eng/common directory with azure-sdk-tools for PR 1146 (#873)
* Remove resource group asynchronously and do not wait for completion

* Verify resource group has reached Deleting state before exiting script

* Use $_ instead of $Error[0] for resource group removal handling

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2020-10-29 19:25:21 -04:00
Azure SDK Bot
7f46381cdd
Sync eng/common directory with azure-sdk-tools repository (#859) 2020-10-26 17:55:27 -07:00
Azure SDK Bot
7ce2d3e57c
Use pre-installed Azure PowerShell modules (#853)
Co-authored-by: Mike Harder <mharder@microsoft.com>
2020-10-26 13:34:48 -07:00
Azure SDK Bot
07c7293276
Sync eng/common directory with azure-sdk-tools for PR 1135 (#848)
* Add check of http link.

* Fixed the tool http link

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
2020-10-23 17:49:01 -07:00
Azure SDK Bot
2f10cdf30b
Update New-TestResources.ps1 parameter documentation to match defaults (#832)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2020-10-22 17:24:48 -04:00
Azure SDK Bot
e3503f8575
Support env vars with hyphens when printing output (#720)
Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
2020-10-09 11:56:41 -07:00
Azure SDK Bot
453545afd6
Sync eng/common directory with azure-sdk-tools for PR 1077 (#711)
* Simplify Net-TestResources usage

* docs and windows check

* Update eng/common/TestResources/New-TestResources.ps1

Co-authored-by: Heath Stewart <heaths@outlook.com>

* update markdown

* make service directory the default parameter

* Fix links

* Doc change

Co-authored-by: Pavel Krymets <pavel@krymets.com>
Co-authored-by: Heath Stewart <heaths@outlook.com>
2020-10-08 10:53:54 -07:00
Azure SDK Bot
50376590d9
Sync eng/common directory with azure-sdk-tools repository for Tools PR 1032 (#675) 2020-09-30 11:42:51 -07:00
Azure SDK Bot
1490f38953
Sync eng/common directory with azure-sdk-tools repository for Tools PR 1029 (#674) 2020-09-24 16:37:21 -07:00
Azure SDK Bot
928b0a2da2
Sync eng/common directory with azure-sdk-tools repository for Tools PR 895 (#619) 2020-09-16 12:00:28 -07:00
Azure SDK Bot
4e9efce5f4
Sync eng/common directory with azure-sdk-tools repository for Tools PR https://github.com/Azure/azure-sdk-tools/pull/850 (#490) 2020-08-24 14:11:57 -07:00
Azure SDK Bot
f649bf717a
Sync eng/common directory with azure-sdk-tools repository (#480) 2020-08-18 12:04:46 -07:00
Azure SDK Bot
fe7af14c84
Sync eng/common directory with azure-sdk-tools repository (#363) 2020-07-31 15:53:45 -07:00
Azure SDK Bot
2d507e7e4a
Sync eng/common directory with azure-sdk-tools repository (#251)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2020-07-28 11:56:52 -07:00
Azure SDK Bot
de6d6431d8
Sync eng/common directory with azure-sdk-tools repository (#170) 2020-06-15 11:37:39 -07:00
Azure SDK Bot
d3360abf2b
Sync eng/common directory with azure-sdk-tools repository (#140) 2020-05-20 14:03:40 -07:00
Azure SDK Bot
d89efac0ea
Sync eng/common directory with azure-sdk-tools repository (#107) 2020-05-15 16:50:15 -07:00
Azure SDK Bot
23121835f2
Sync eng/common directory with azure-sdk-tools repository (#88) 2020-05-07 06:35:10 -07:00
Azure SDK Bot
cad54bd983
Sync eng/common directory with azure-sdk-tools repository (#87) 2020-05-06 07:51:25 -07:00
Azure SDK Bot
bbc8b0b8bb
Sync eng/common directory with azure-sdk-tools repository (#86) 2020-04-30 16:00:46 -07:00
Azure SDK Bot
9ceee65a6d
Sync eng/common directory with azure-sdk-tools repository (#83) 2020-04-23 15:11:25 -07:00
Azure SDK Bot
110110a43f
Sync eng/common directory with azure-sdk-tools repository (#72) 2020-04-14 13:33:32 -07:00
Azure SDK Bot
3370f252d3
Sync eng/common directory with azure-sdk-tools repository (#71) 2020-04-10 16:14:24 -07:00
Azure SDK Bot
58c754746e
Sync eng/common directory with azure-sdk-tools repository (#68) 2020-04-09 09:27:06 -07:00
Azure SDK Bot
4ca8d267d6
Sync eng/common directory with azure-sdk-tools repository (#67) 2020-04-08 16:30:38 -07:00
Azure SDK Bot
c7eab3a3ba
Sync eng/common directory with azure-sdk-tools repository (#66) 2020-04-08 11:41:13 -07:00
Azure SDK Bot
7a02ab023b
Sync eng/common directory with azure-sdk-tools repository (#46) 2020-03-26 10:18:42 -07:00