diff --git a/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Connect-AzsPlanToOffer.ps1 b/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Connect-AzsPlanToOffer.ps1 index 02a7d0de8aa5..7c4866b81400 100644 --- a/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Connect-AzsPlanToOffer.ps1 +++ b/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Connect-AzsPlanToOffer.ps1 @@ -111,6 +111,11 @@ function Connect-AzsPlanToOffer Get-TaskResult @GetTaskResult_params + if ($TaskResult.IsFaulted -ne $true) + { + Get-AzsPlan -ResourceGroupName $ResourceGroupName -Name $PlanName + } + } } diff --git a/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Disconnect-AzsPlanToOffer.ps1 b/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Disconnect-AzsPlanToOffer.ps1 index c70096884641..d3d61d6ce77d 100644 --- a/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Disconnect-AzsPlanToOffer.ps1 +++ b/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Disconnect-AzsPlanToOffer.ps1 @@ -111,6 +111,10 @@ function Disconnect-AzsPlanFromOffer Get-TaskResult @GetTaskResult_params + if ($TaskResult.IsFaulted -ne $true) + { + Get-AzsPlan -ResourceGroupName $ResourceGroupName -Name $PlanName + } } } diff --git a/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/New-AzsAcquiredPlan.ps1 b/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/New-AzsAcquiredPlan.ps1 index b739992c78fc..5a6aebf349cd 100644 --- a/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/New-AzsAcquiredPlan.ps1 +++ b/src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/New-AzsAcquiredPlan.ps1 @@ -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, @@ -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')) {