Hi @Vishwakiran K A S ,
This error message indicates that PowerShell cannot find the policy named "TestPolicy". This may be due to several reasons:
- Incorrect policy name: Please make sure the policy name you entered is correct. In this case you should check if "Test Policy" is the correct policy name.
- Policy Not Created: If you did not successfully create the policy before trying to create the rule, you may see this error. Please make sure your
New-AutoSensitivityLabelPolicy
command has been executed successfully. - Latency Issue: In some cases, newly created policies may take some time to take effect in the system. This error may occur if you have just created a policy and then immediately try to create a rule. In this case, you can try waiting for a while and try creating the rule again.
Additionally, you can use the Get-Error
command to get more detailed information about the error.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.