-
I'm new to PSRule and though I'm following the documentation, I'm running into issues/questions. I've installed the required modules:
When I run 'Export-AzRuleData -Subscription from PowerShell, I get a .json file. When I subsequently run 'Invoke-PSRule -InputPath 'c:\temp\PSRule' -Module 'PSRule.Rules.Azure' -As Summary', nothing happens, just new line. Note: the required syntax for -InputPath switch is unclear to me and 'get-help Invoke-PSRule -detailed' doesn't provide additional information. When I run ''Invoke-PSRule -Module 'PSRule.Rules.Azure' -As Summary' and provide the full path+filename as inputObject, I get a warning: WARNING: Target object '3c46b38c47d7697e1a83b4af6ff9db26ae02b0ce' has not been processed because no matching rules were found. I also created a default 'ps-rule.yaml' file in my working directory, but no apparent effect. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Update: |
Beta Was this translation helpful? Give feedback.
Update:
When I run 'Invoke-PSRule -InputPath '.' -Module 'PSRule.Rules.Azure', it runs the assessment.