Add Subscription ID, Fix TenantID

This commit is contained in:
troettinger 2017-10-21 00:06:16 +02:00
Родитель fa1cf11bb8
Коммит 96401f75a7
2 изменённых файлов: 15 добавлений и 3 удалений

Просмотреть файл

@ -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.