You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Policy Documentation contains "Error" in Effect field for
85175a36-2f12-419a-96b4-18d5b0096531 | Enable allLogs category group resource logging for supported resources to Event Hub
0884adba-2312-4468-abeb-5422caed1038 | Enable allLogs category group resource logging for supported resources to Log Analytics
b6b86da9-e527-49de-ac59-6af0a9db10b8 | Enable allLogs category group resource logging for supported resources to storage
1020d527-2764-4230-92cc-7035e4fcf8a7 | Enable audit category group resource logging for supported resources to Event Hub
f5b29bc4-feca-4cc6-a58a-772dd5e290a5 | Enable audit category group resource logging for supported resources to Log Analytics
8d723fb6-6680-45be-9d37-b1a4adb52207 | Enable audit category group resource logging for supported resources to storage
To Reproduce
Steps to reproduce the behavior:
Build-PolicyDocumentation with any of the listed policySets
Expected behavior
Return with effect value specified in the parameters
Screenshots
Convert-EffectToCsvString -Effect $effectDefault | This is the command that throws an error during the course of Build-PolicyDocumentation
This is the switch that is at the core of this command
$effectValueText = switch ($Effect) { "Modify" { "Modify" } "Append" { "Append" } "DenyAction" { "DenyAction" } "Deny" { "Deny" } "Audit" { "Audit" } "Manual" { "Manual" } "DeployIfNotExists" { "DeployIfNotExists" } "AuditIfNotExists" { "AuditIfNotExists" } "Disabled" { "Disabled" } default { "Error" } }
This switch within that command cannot accommodate the effect values used in the above policySets as they are equations rather than strings [if(contains(parameters('resourceTypeList'),'microsoft.cloudtest/hostedpools'),parameters('effect'),'Disabled')]
EPAC Version
Version of EPAC module you are using.
Tested with latest script based version of 10.8.2
The text was updated successfully, but these errors were encountered:
Describe the bug
Policy Documentation contains "Error" in Effect field for
85175a36-2f12-419a-96b4-18d5b0096531 | Enable allLogs category group resource logging for supported resources to Event Hub
0884adba-2312-4468-abeb-5422caed1038 | Enable allLogs category group resource logging for supported resources to Log Analytics
b6b86da9-e527-49de-ac59-6af0a9db10b8 | Enable allLogs category group resource logging for supported resources to storage
1020d527-2764-4230-92cc-7035e4fcf8a7 | Enable audit category group resource logging for supported resources to Event Hub
f5b29bc4-feca-4cc6-a58a-772dd5e290a5 | Enable audit category group resource logging for supported resources to Log Analytics
8d723fb6-6680-45be-9d37-b1a4adb52207 | Enable audit category group resource logging for supported resources to storage
To Reproduce
Steps to reproduce the behavior:
Build-PolicyDocumentation with any of the listed policySets
Expected behavior
Return with effect value specified in the parameters
Screenshots
Convert-EffectToCsvString -Effect $effectDefault | This is the command that throws an error during the course of Build-PolicyDocumentation
This is the switch that is at the core of this command
$effectValueText = switch ($Effect) { "Modify" { "Modify" } "Append" { "Append" } "DenyAction" { "DenyAction" } "Deny" { "Deny" } "Audit" { "Audit" } "Manual" { "Manual" } "DeployIfNotExists" { "DeployIfNotExists" } "AuditIfNotExists" { "AuditIfNotExists" } "Disabled" { "Disabled" } default { "Error" } }
This switch within that command cannot accommodate the effect values used in the above policySets as they are equations rather than strings [if(contains(parameters('resourceTypeList'),'microsoft.cloudtest/hostedpools'),parameters('effect'),'Disabled')]
EPAC Version
Version of EPAC module you are using.
Tested with latest script based version of 10.8.2
The text was updated successfully, but these errors were encountered: