Skip to content

Commit 96401f7

Browse files
committed
Add Subscription ID, Fix TenantID
1 parent fa1cf11 commit 96401f7

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Syndication/AzureStack.MarketplaceSyndication.psm1

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,27 @@ function Sync-AzSOfflineMarketplaceItems{
2121

2222
[Parameter(Mandatory=$false, ParameterSetName='SyncOfflineAzsMarketplaceItems')]
2323
[ValidateNotNullorEmpty()]
24-
[String] $tenantid
24+
[String] $tenantid,
25+
26+
[Parameter(Mandatory=$false, ParameterSetName='SyncOfflineAzsMarketplaceItems')]
27+
[ValidateNotNullorEmpty()]
28+
[String] $subscriptionid
2529

2630
)
2731

2832

29-
If ($tenantid.isPresent){
33+
If ($tenantid.isPresent)
34+
{
3035
$azureAccount = Add-AzureRmAccount -TenantId $tenantid
3136
}
3237

33-
else{
38+
elseif($subscriptionid.isPresent)
39+
{
40+
Add-AzureRmAccount -subscriptionid $subsccription
41+
}
3442

43+
else
44+
{
3545
$azureAccount = Add-AzureRmAccount
3646
}
3747

Syndication/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Description: Once Azure Stack RP is available in other Clouds like Azure China y
3737
Parameter: TenantID
3838
Description: Specify the Tenant ID for the Authentication
3939

40+
Parameter: SubscriptionID
41+
Description: Specify the Subscription ID for the Authentication when having multiple subscriptions
4042

4143
Once the download has been transferred to a machine that can access Azure Stack, you need to import it.
4244
You can use the Portal or PowerShell.

0 commit comments

Comments
 (0)