File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ Description: Once Azure Stack RP is available in other Clouds like Azure China y
3737Parameter: TenantID
3838Description: 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
4143Once the download has been transferred to a machine that can access Azure Stack, you need to import it.
4244You can use the Portal or PowerShell.
You can’t perform that action at this time.
0 commit comments