microsoft / StigRepo

Automated PowerSTIG Repository for Active Directory environments
35 stars 6 forks source link

Import-AzDscConfigurations fails if the Start-AzAutomationDscCompilationJob Runbook is not already imported into the Azure Automation Account #11

Open JakeDean3631 opened 3 years ago

JakeDean3631 commented 3 years ago

Describe the bug Compiling the Azure DSC Configurations fails if the Start-AzAutomationDscCompilationJob runbook is not manually added into the Azure Automation account.

To Reproduce Steps to reproduce the behavior:

  1. Create a new Azure Automation Account
  2. Run New-AzSystemData, Export-AzDscConfigurations, and Import-AzDscConfigurations and see that it fails due to the Start-AzAutomationDscCompilationJob runbook being missing.

Expected behavior AzDsc Configuration import works successfully and compiles the DSC configurations.

Screenshots image image

Additional context A solution is needed that automates the runbook being uploaded to the Azure Automation account prior to importing the AzDsc configurations.