Fail to install Service Fabric Runtime 8.2, throw error "This API requires administrator privileges on the local machine."

Khan, Amir 1 Reputation point
2021-12-07T02:26:55.507+00:00

I'm trying to install the Azure Service Fabric Runtime (downloaded as ServiceFabric standalone) thru my PowerShell (yes, I'm running PowerShell as Admin) from my local machine but it always fails and throws following 3-error messages:

2021/12/07-02:01:37.120,Error,26108,SystemFabricDeployer.SFDeployer,This API requires administrator privileges on the local machine.
2021/12/07-02:01:39.251,Error,26108,SystemFabricDeployer.SFDeployer,Best Practices Analyzer determined environment has an issue. Please see additional BPA log output in DeploymentTraces folder.
2021/12/07-02:01:39.252,Error,26108,SystemFabricDeployer.SFDeployer,Cluster Setup cancelled due to validation error(s) found by Best Practices Analyzer. Inspect details in DeploymentTraces log folder local to executing location.

The command I use is:
.\CreateServiceFabricCluster.ps1 -ClusterConfigFilePath .\ClusterConfig.Unsecure.DevCluster.json -AcceptEULA

I even downloaded the Runtime Cab file (which is 153MB in size) into the folder DeploymentRuntimePackages and ran the following command but still same error:
.\CreateServiceFabricCluster.ps1 -ClusterConfigFilePath .\ClusterConfig.Unsecure.DevCluster.json -FabricRuntimePackagePath .\DeploymentRuntimePackages\MicrosoftAzureServiceFabric.8.2.1235.9590.cab -AcceptEULA -Verbose

Here is the screenshot of error:

155484-image.png

I followed the official page of Microsoft how to install Service Fabric:
https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-creation-for-windows-server

Appreciate your help.

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
252 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. vipullag-MSFT 24,206 Reputation points Microsoft Employee
    2021-12-09T06:31:32.647+00:00

    @Khan, Amir

    Apologies in delayed response on this.

    Try to enable powershell script execution and then try deployment. Ref document.

    You can run your command in debug mode like below which will show exactly error details where it is failing.

    .\CreateServiceFabricCluster.ps1 -ClusterConfigFilePath .\ClusterConfig.Unsecure.DevCluster.json -AcceptEULA -FabricRuntimePackagePath .\DeploymentRuntimePackages -Debug  
    

    Further if you try to run this in command do you get any error ?

    powershell.exe -NoProfile -Command Get-ExecutionPolicy -Scope CurrentUser   
    

    Hope this helps.
    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.

    0 comments No comments

  2. Khan, Amir 1 Reputation point
    2021-12-09T16:14:36.49+00:00

    Hi @vipullag,
    Thanks for your response. I tried your suggestions but no help and same errors.
    Here are the screenshots and error log from trace file.
    ![156287-image.png][1]

    And here is the error detail from the trace file:

    Although I'm running PowerShell as an Admin.
    BTW, I have already installed Visual Studio 2019, SQL Server 2017 on Windows 10 Enterprise

    Here is my files in the folders:
    ![156228-image.png][3]

    Truly appreciate your prompt response. It's super urgent and I need to build the cluster for my project.

    [1]: /api/attachments/156287-image.png?platform=QnA [3]: /api/attachments/156228-image.png?platform=QnA

    0 comments No comments

  3. Khan, Amir 1 Reputation point
    2021-12-09T16:16:04.563+00:00

    And when I run the command with "-Verbose" then I get the detail of the error.

    156341-image.png

    0 comments No comments