Skip to content

Commit

Permalink
Merge pull request Azure#13 from deathly809/Azs.Subs
Browse files Browse the repository at this point in the history
2203814 - [Disconnect-AzsPlanFromOffer] Cmdlet returns empty object a…
  • Loading branch information
deathly809 authored Mar 21, 2018
2 parents 15ef625 + 99fc615 commit 123e92c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ function Connect-AzsPlanToOffer

Get-TaskResult @GetTaskResult_params

if ($TaskResult.IsFaulted -ne $true)
{
Get-AzsPlan -ResourceGroupName $ResourceGroupName -Name $PlanName
}

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ function Disconnect-AzsPlanFromOffer

Get-TaskResult @GetTaskResult_params

if ($TaskResult.IsFaulted -ne $true)
{
Get-AzsPlan -ResourceGroupName $ResourceGroupName -Name $PlanName
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function New-AzsAcquiredPlan {
[OutputType([Microsoft.AzureStack.Management.Subscriptions.Admin.Models.PlanAcquisition])]
[CmdletBinding(DefaultParameterSetName = 'Create')]
param(
[Parameter(Mandatory = $true, ParameterSetName = 'Create')]
[Parameter(Mandatory = $false, ParameterSetName = 'Create')]
[ValidateNotNull()]
[System.Guid]
$AcquisitionId,
Expand Down Expand Up @@ -69,7 +69,7 @@ function New-AzsAcquiredPlan {
if ($PSBoundParameters.ContainsKey('SubscriptionId')) {
$GlobalParameterHashtable['SubscriptionId'] = $PSBoundParameters['SubscriptionId']
}

$SubscriptionsAdminClient = New-ServiceClient @NewServiceClient_params

if (-not $PSBoundParameters.ContainsKey('AcquisitionId')) {
Expand Down

0 comments on commit 123e92c

Please sign in to comment.