-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support default subscriptionid with util function (#1323)
* do not remove loadEnv.ps1 while regenerate/rebuild * add function get-localsubscription * rename function * adjust subscription id in export cmdlets * typo * remove environment variable * move get-subscriptionidtestsafe to utils * add template loadenv back * fix mockpipeline type * fix * add tenant back in parameter default * use subscription id safe only in playback mode
- Loading branch information
Showing
6 changed files
with
141 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
param() | ||
if ($env:AzPSAutorestTestPlaybackMode) { | ||
$loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' | ||
. ($loadEnvPath) | ||
return $env.SubscriptionId | ||
} | ||
return (Get-AzContext).Subscription.Id |