Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Dmytro Rastoropov · Jul 28, 2020 at 02:05 PM · windows

Run Filebeat with PowerShell as administrator

Hi PlayFab! :)

We are going to use Filebeat (https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html) service to get logs from the server (Photon). We created a PowerShell script to setup and run Filebeat (https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html) as a windows service, but the script execution requires administrator rights.

Questions:

  1. How can we run a Power Shell script as administrator without a connecting by RDP and running it manually?
  2. Is it possible to get windows server administrator credentials to run it during deploy?
Thanks in advance!,

Hi PlayFab! :)

We are going to use Filebeat (https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html) service to get logs from the server (Photon). We created a PowerShell script to setup and run Filebeat (https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html) as a windows service, but the script execution requires administrator rights.

Questions:

1. How can we run a Power Shell script as administrator without a connecting by RDP and running it manually?

2. Is it possible to get windows server administrator credentials to run it during deploy?

Thanks in advance!

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Jul 28, 2020 at 05:28 PM

Photon is not a PlayFab service - it's a service provided by Exit Games (https://www.photonengine.com/). We provide an integration in our Add-ons marketplace, to allow you to easily integrate your Photon usage with your PlayFab game. You'd need to talk to the Exit Games team directly to determine whether Filebeat is compatible with their service, and how to use it if it is.

Comment
Dmytro Rastoropov

People who like this

1 Show 7 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dmytro Rastoropov · Jul 29, 2020 at 12:17 PM 0
Share

Thanks for response :)

avatar image Dmytro Rastoropov · Jul 30, 2020 at 06:37 AM 0
Share

Hi!
We investigated an issue deeper and another question appear.
We run PowerShell scripts through Shim (.NET console Application). It ran successfully on the PlayFab server. But when we tried to check Filebeat service with a Power Shell “service filebeat” we got a response “service: Cannot find any service with service name ‘filebeat’” and there is no installed filebeat service on the PlayFab server. When we connecting to a virtual machine with RDP and run PowerShell scripts manually than service installed successfully. But we want to run them automatically with our Shim application. It is a part of our CI/CD process. Our PowerShell scripts and logs from it in the attachments.zip.

Is it possible to install custom services on the PlayFab virtual machines from the Shim?

Thanks in advance!

attachments.zip

attachments.zip (1.6 kB)
avatar image Brendan ♦♦ Dmytro Rastoropov · Aug 04, 2020 at 12:26 AM 0
Share

If I'm interpreting your question correctly, you are currently uploading a build into our multiplayer server hosting, in order to use it to run a PowerShell script through Shim. Is that correct? Going that route, you would need to package any components you need that are not part of the base server in your build.

avatar image Dmytro Rastoropov Brendan ♦♦ · Aug 04, 2020 at 11:42 AM 0
Share

Hi, thanks for your reply.

Yes, it is correct.

During the deploy, we package Shim, Filebeat, and our PowerShell scripts to zip archive and publish it to your multiplayer server hosting.

Shim is a .NET console application, that runs PowerShell scripts (one of them is for installing Filebeat as a windows service and the second one is for starting installed service).

After Shim is completed in our logs we can see that PowerShell scripts completed correctly. But when we try to check Filebeat service on the multiplayer service (using RDP connection) we cannot find it and there is no Filebeat service installed on the multiplayer server.

Could You please give us an advice is it possible to install new windows services on the multiplayer server?

If it is possible, are there any logs of your multiplayer server hosting to check what is going on with the windows services?

Thanks in advance!

Show more comments
avatar image Dmytro Rastoropov · Aug 03, 2020 at 10:33 AM 0
Share

@Brendan Sorry for troubling, any updates?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Push Notification UWP Windows10 1 Answer

    Where can I get all Error details of PlayFab Errors? 2 Answers

    Costs for password reset 1 Answer

    How to obtain missing system32 dlls 1 Answer

    Reset Password failed 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges