Azure / manage-azure-policy

GiHub Action to manage Azure policy from GitHub workflows
MIT License
56 stars 25 forks source link

Task success on fail #60

Closed sbugalski closed 3 years ago

sbugalski commented 3 years ago

There is an issue, where policy is incorrectly defined, gives fail message task, but task status stays successful.

Run azure/manage-azure-policy@c693881e3b39a41eadc4b74de0ab032a73eeab3b
----------------------------------------------------------------------------------------------------
Failed to get policy with id /subscriptions/#{SubscriptionId}#/providers/Microsoft.Authorization/policyAssignments/<redacted>, path config-files/policy/initiatives/<redacted>/assign.<redacted>.json. Error : {"code":"MissingApiVersionParameter","message":"The api-version query parameter (?api-version=) is required for all requests."}

image

tauhid621 commented 3 years ago

Fixed in #63 #56

You can use v0 tag for the latest version