File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
740740export-modulemember - function Restart-AzSInfraRoleInstance
741741
You can’t perform that action at this time.
0 commit comments