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
azurerm_role_management_policy
New resource & data source
#25900
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal/services/authorization/parse/role_management_policy.go
Outdated
Show resolved
Hide resolved
internal/services/authorization/role_management_policy_data_source.go
Outdated
Show resolved
Hide resolved
Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { | ||
client := metadata.Client.Authorization.RoleManagementPoliciesClient | ||
|
||
var id *parse.RoleManagementPolicyId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, we can use the ID type from the sdk here
internal/services/authorization/role_management_policy_data_source.go
Outdated
Show resolved
Hide resolved
Computed: true, | ||
}, | ||
"default_recipients": { | ||
Description: "Whether the default recipients are notified", | ||
Type: pluginsdk.TypeBool, | ||
Computed: true, | ||
}, | ||
"additional_recipients": { | ||
Description: "The additional recipients to notify", | ||
Type: pluginsdk.TypeSet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and these
Community Note
Description
Add support for managing the policies for PIM assignments to Azure resources. Based on the work in hashicorp/terraform-provider-azuread#1327.
Closes #23295 as this has not been updated for 7 months and has merge conflicts with main. I also thought code consistency would be nice between providers. Also closes #20496.
Fixes #19912, fixes #22766, fixes #23458, fixes hashicorp/terraform-provider-azuread#1186
PR Checklist
Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_role_management_policy
- new resource [azurerm_role_management_policy
New resource & data source #25900]azurerm_role_management_policy
- new data source [azurerm_role_management_policy
New resource & data source #25900]This is a (please select all that apply):