Open ArtisanByteCrafter opened 5 years ago
Agreed. Here's another example of trying to apply Az.ApplicationMonitor to a virtual machine for autoinstrumentation. I need to do this with DSC, but need to pass an additional flag for accepting the license. https://learn.microsoft.com/en-us/azure/azure-monitor/app/application-insights-asp-net-agent?tabs=getting-started
Otherwise, you'll see these errors in the DSC logs: {"time": "2023-05-12T10:03:54.990-5:00", "type": "error", "message": "License Acceptance is required for module 'Az.ApplicationMonitor'. Please specify '-AcceptLicense' to perform this operation."},
Example: Some modules require additional parameters for successful unattended installation.
Install-Module UniversalDashboard -AcceptLicense
When run from DSC, the following error is produced:
Something like this would be nice: