Coder Social home page Coder Social logo

Comments (2)

bigj51 avatar bigj51 commented on July 17, 2024

For anyone wanting to know how to do this:

Prereq:

  • AzSK deployed in Multi CA Central Mode
  • EventHub

Steps:

  1. Add an encrypted automation variable to the CA automation account named "eh_conn":
    New-AzAutomationVariable -Encrypted $True -AutomationAccountName <your value> -Name "eh_conn" -ResourceGroupName <your value> -Value "{'EventHubNamespace' : '<your value>', 'EventHubName' : '<your value>', 'EventHubSendKeyName' : '<your value>','EventHubSendKey' : '<your value>'}"

  2. Edit [org-name]\CA-Runbook\RunbookScanAgent.ps1 (defaults to desktop)

  3. Find the comment "# Main ScanAgent code" (currently around line 709, ver 4.14)

  4. In the "try" block add this code:
    Write-Output("SA: Setting up event hub endpoint...")
    $eh_conn = Get-AutomationVariable -Name "eh_conn"
    $eh_conn = $eh_conn | convertfrom-json
    Set-AzSKEventHubSettings -EventHubNamespace $eh_conn.EventHubNamespace -EventHubName $eh_conn.EventHubName
    -EventHubSendKeyName $eh_conn.EventHubSendKeyName -EventHubSendKey $eh_conn.EventHubSendKey #-Source "CA"
    Write-Output("SA: DONE Setting up event hub endpoint")

  5. Push the config to the storage account with Update-AzSKOrganizationPolicy

from devopskit.

ritika-msft avatar ritika-msft commented on July 17, 2024

Please let us know if you still have any issues here or we are good to close this issue as I can see you have already shared a solution that I believe worked for you.

Thanks,
Ritika

from devopskit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.