Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Export-AzPolicyAssignmentRuleData unable to export Azure policy as PSRule (The function "field" was not found) [Microsoft policy ID: 817dcf37-e83d-4999-a472-644eada2ea1e] #2724

Closed
Marc013 opened this issue Mar 5, 2024 · 0 comments · Fixed by #2740
Assignees
Labels
bug Something isn't working feature: policy-as-rules Issues that related to exporting policy as rules.
Milestone

Comments

@Marc013
Copy link

Marc013 commented Mar 5, 2024

Existing rule

No response

Description of the issue

Unable to export policy assignment data to PSRule.

PolicyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/817dcf37-e83d-4999-a472-644eada2ea1e
DisplayName: App Service Environment should be configured with strongest TLS Cipher suites

Error messages

An error occurred evaluating expression '[less(length(field('Microsoft.Web/HostingEnvironments/clusterSettings[*].value')), 80)]' line 8658. The function "field" was not found.

Reproduction

Exporting policy assignment data of Microsoft policy /providers/Microsoft.Authorization/policyDefinitions/817dcf37-e83d-4999-a472-644eada2ea1e

Version of PSRule

2.9.0

Version of PSRule for Azure

1.33.2

Additional context

This bug is related to #1323

@Marc013 Marc013 added bug Something isn't working Needs: Triage 🔍 Needs attention from the team. labels Mar 5, 2024
@BernieWhite BernieWhite added feature: policy-as-rules Issues that related to exporting policy as rules. and removed Needs: Triage 🔍 Needs attention from the team. labels Mar 6, 2024
@BernieWhite BernieWhite added this to the v1.34.1 milestone Mar 6, 2024
@BernieWhite BernieWhite self-assigned this Mar 6, 2024
BernieWhite added a commit to BernieWhite/PSRule.Rules.Azure that referenced this issue Mar 6, 2024
BernieWhite added a commit that referenced this issue Mar 6, 2024
* Fixes for policy as rules export issues #2724 #2725 #2726

* Additional fixes
@BernieWhite BernieWhite mentioned this issue Mar 6, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature: policy-as-rules Issues that related to exporting policy as rules.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants