Add Subscription ID, Fix TenantID
This commit is contained in:
Родитель
fa1cf11bb8
Коммит
96401f75a7
|
@ -21,17 +21,27 @@ function Sync-AzSOfflineMarketplaceItems{
|
|||
|
||||
[Parameter(Mandatory=$false, ParameterSetName='SyncOfflineAzsMarketplaceItems')]
|
||||
[ValidateNotNullorEmpty()]
|
||||
[String] $tenantid
|
||||
[String] $tenantid,
|
||||
|
||||
[Parameter(Mandatory=$false, ParameterSetName='SyncOfflineAzsMarketplaceItems')]
|
||||
[ValidateNotNullorEmpty()]
|
||||
[String] $subscriptionid
|
||||
|
||||
)
|
||||
|
||||
|
||||
If ($tenantid.isPresent){
|
||||
If ($tenantid.isPresent)
|
||||
{
|
||||
$azureAccount = Add-AzureRmAccount -TenantId $tenantid
|
||||
}
|
||||
|
||||
else{
|
||||
elseif($subscriptionid.isPresent)
|
||||
{
|
||||
Add-AzureRmAccount -subscriptionid $subsccription
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$azureAccount = Add-AzureRmAccount
|
||||
}
|
||||
|
||||
|
|
|
@ -37,6 +37,8 @@ Description: Once Azure Stack RP is available in other Clouds like Azure China y
|
|||
Parameter: TenantID
|
||||
Description: Specify the Tenant ID for the Authentication
|
||||
|
||||
Parameter: SubscriptionID
|
||||
Description: Specify the Subscription ID for the Authentication when having multiple subscriptions
|
||||
|
||||
Once the download has been transferred to a machine that can access Azure Stack, you need to import it.
|
||||
You can use the Portal or PowerShell.
|
||||
|
|
Загрузка…
Ссылка в новой задаче