'VS Code extension for Azure Policy || error (command ‘kubernetesPolicyFromConstraintTemplate’ not found) [Mitigated]

ENV: VSC version 1.65.2

Issue:: VSC Command -- Azure Policy for Kubernetes: Create Policy Definition from Constraint Template, fail with the error message:

Error message: Visual Studio Code: Command Azure Policy for Kubernetes: Create Policy Definition from Constraint Template’ resulted in an error (command ‘kubernetesPolicyFromConstraintTemplate’ not found)`

To Mitigate this error message: enter image description here

Connect to Azure Cloud: enter image description here

Then go in the menu bar at View --> Open View --> Azure Policy

The last step go again in the menu bar at View --> Command Palette --> Azure Policy for Kubernetes: Create Policy Definition from Constraint Template

See more information here: https://github.com/dummy-andra/CloudEngineerNotes/blob/main/Azure/AzurePolicy/CustomPolicy/test.md



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source