Skip to content

Commit 00b9545

Browse files
Merge pull request #162 from Azure/servadminfix
Consistent Credential Parameter in Service Admin
2 parents 6084c07 + 1461024 commit 00b9545

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ServiceAdmin/AzureStack.ServiceAdmin.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function New-AzSTenantOfferAndQuotas
2121
[parameter(Mandatory=$true,HelpMessage="The name of the AzureStack environment")]
2222
[string] $EnvironmentName,
2323
[parameter(Mandatory=$true,HelpMessage="Azure Stack service administrator credential")]
24-
[pscredential] $azureStackCredential,
24+
[pscredential] $azureStackCredentials,
2525
[parameter(mandatory=$true, HelpMessage="TenantID of Identity Tenant")]
2626
[string] $tenantID
2727
)
@@ -35,7 +35,7 @@ function New-AzSTenantOfferAndQuotas
3535
}
3636

3737
Write-Verbose "Obtaining token from AAD..." -Verbose
38-
$subscription, $headers = (Get-AzureStackAdminSubTokenHeader -TenantId $tenantId -AzureStackCredentials $azureStackCredential -EnvironmentName $EnvironmentName)
38+
$subscription, $headers = (Get-AzureStackAdminSubTokenHeader -TenantId $tenantId -AzureStackCredentials $azureStackCredentials -EnvironmentName $EnvironmentName)
3939

4040
Write-Verbose "Creating quotas..." -Verbose
4141
$Quotas = @()

ServiceAdmin/Tests/ServiceAdmin.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ InModuleScope $script:ModuleName {
3939

4040
Describe 'ServiceAdmin - Functional Tests' {
4141
It 'New-AzSTenantOfferAndQuotas should create Quotas, Plan and Offer' {
42-
{ New-AzSTenantOfferAndQuotas -tenantID $AadTenant -AzureStackCredential $stackLoginCreds -EnvironmentName $EnvironmentName } |
42+
{ New-AzSTenantOfferAndQuotas -tenantID $AadTenant -AzureStackCredentials $stackLoginCreds -EnvironmentName $EnvironmentName } |
4343
Should Not Throw
4444
}
4545

0 commit comments

Comments
 (0)