Skip to content

Commit 47364da

Browse files
committed
Fix for Bug #131
1 parent 5a58c4f commit 47364da

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Infrastructure/AzureStack.Infra.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ Function Restart-AzSInfraRoleInstance{
721721
[ValidateNotNullorEmpty()]
722722
[System.Management.Automation.PSCredential] $azureStackCredentials,
723723

724-
[Parameter(HelpMessage="The administration ARM endpoint of the Azure Stack Environment", ParameterSetName='Restart-AzSInfraRoleInstance')]
724+
[Parameter(HelpMessage="The administration ARM endpoint of the Azure Stack Environment", ParameterSetName='RestartInfraRoleInstance')]
725725
[string] $ArmEndpoint = 'https://api.local.azurestack.external',
726726

727727
[Parameter(ParameterSetName='RestartInfraRoleInstance')]
@@ -734,8 +734,8 @@ Function Restart-AzSInfraRoleInstance{
734734

735735
$subscription, $headers = (Get-AzureStackAdminSubTokenHeader -TenantId $tenantId -AzureStackCredentials $azureStackCredentials -ArmEndpoint $ArmEndpoint)
736736
$URI= "${ArmEndpoint}/subscriptions/${subscription}/resourceGroups/system.$region/providers/Microsoft.Fabric.Admin/fabricLocations/$region/infraroleinstances/$name/reboot?api-version=2016-05-01"
737-
$PowerOff=Invoke-RestMethod -Method Post -Uri $uri -ContentType 'application/json' -Headers $Headers
738-
$PowerOff
737+
$Restart=Invoke-RestMethod -Method Post -Uri $uri -ContentType 'application/json' -Headers $Headers
738+
$Restart
739739
}
740740
export-modulemember -function Restart-AzSInfraRoleInstance
741741

0 commit comments

Comments
 (0)