Esri / arcgis-powershell-dsc

This repository contains scripts, code and samples for automating the install and configuration of ArcGIS (Enterprise and Desktop) using Microsoft Windows PowerShell DSC (Desired State Configuration).
Apache License 2.0
110 stars 61 forks source link

expose Invoke-DSCJob function to allow for more flexibility for modul… #480

Closed AndrewQuartic closed 7 months ago

AndrewQuartic commented 12 months ago

I could see scenarios where we would need to do more than Install, InstallLicense, and InstallLicenseConfigure through the Invoke-ArcGISConfiguration function. We may seek to InstallLicense each component, but then configure via federation. This is especially true in scenarios where we seek to pass in configuration options through an ARM template using Microsoft.Compute/virtualMachines/extensions. In that scenario, we do not have a clear understanding of how to implement without lower level access to submodules. We should at least have the option to work through these edge cases.

shailesh91 commented 7 months ago

@AndrewQuartic Instead of adding a function to the DSC Module, consider creating a separate script that can be utilized with Azure's Custom Script Extension. This script can wrap Invoke-ArcGISConfiguration as done in your PR.

ARM Template - template.json Sample Script - Script.ps1.txt

https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows