Azure / Azure/azure-powershell

[Doc]: Update-AzRoleManagementPolicy error when running provided sample code : Unable to find type [RoleManagementPolicyExpirationRule]

Open
#21,297 8 comments 0 reactions 0 assignees View on GitHub
customer-reported Policy Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

Hi,
trying to run example 1 from https://learn.microsoft.com/en-us/powershell/module/az.resources/update-azrolemanagementpolicy?view=azps-9.5.0&tryIt=true#code-try-2 et getting the following error (cloudshell or powershell)
**`InvalidOperation: Unable to find type [RoleManagementPolicyExpirationRule]`**

![image](https://user-images.githubusercontent.com/1241767/227174086-de222c7c-016f-47ac-8a85-9b5081cc1d10.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.