QuestionQ96

VerifiedIntroduction to DevSecOps

Jeremy has installed and configured Chef InSpec and now wants to create the directory structure and profile containing all the required artifacts for his InSpec tests. Which command should he run to create a new folder named jyren-azureTests with all the necessary InSpec profile artifacts?

Explanation

The InSpec CLI provides the init subcommand for scaffolding new profiles. Running inspec init profile PROFILE_NAME generates a new folder named after the profile containing the standard InSpec profile structure, including the inspec.yml metadata file, a controls directory with a sample control, a libraries folder, and a README. The correct invocation uses the base inspec executable (not chef inspec) and the full subcommand profile (not the shortened prof), making 'inspec init profile jyren-azureTests' the valid command.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!