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

Cannot retrieve built in policy definitions by name. #9073

Closed
Nepomuceno opened this issue Oct 29, 2020 · 3 comments
Closed

Cannot retrieve built in policy definitions by name. #9073

Nepomuceno opened this issue Oct 29, 2020 · 3 comments

Comments

@Nepomuceno
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

terraform version 0.13.5

Affected Resource(s)

  • azurerm_policy_definition

Terraform Configuration Files

provider "azurerm" {
  version = "=2.33.0"
  features {}
}

data "azurerm_policy_definition" "mfa_enabled" {
  name = "aa633080-8b72-40c4-a2d7-d00c03e80bed"
}

Expected Behavior

Policy was found and returned.

Actual Behavior

Error: reading Policy Definition "aa633080-8b72-40c4-a2d7-d00c03e80bed": policy.DefinitionsClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="PolicyDefinitionNotFound" Message="The policy definition 'aa633080-8b72-40c4-a2d7-d00c03e80bed' could not be found."

  on main.tf line 6, in data "azurerm_policy_definition" "mfa_enabled":
   6: data "azurerm_policy_definition" "mfa_enabled" {

Steps to Reproduce

  1. terraform apply
@neil-yechenwei

This comment has been minimized.

@magodo
Copy link
Collaborator

magodo commented Nov 13, 2020

I assume this is already fixed in #9078. So close it for now.

@magodo magodo closed this as completed Nov 13, 2020
@ghost
Copy link

ghost commented Dec 13, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Dec 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants