Hi Pallavi M
Yes, it is possible to create Azure Cognitive Services through Devops pipeline with help of CLI commands as the pipeline .yaml includes CLI commands as actions.
You can pull the templates from azure repo and use CLI commands as actions in pipeline yamls to create the resources
Kindly check below documentation for ARM/CLI/Terraform deployment of Azure Resources.
- ARM template - We create a Json file and use CLI or Custom Template deployment links to create our resources
- CLI commands
- Terraform - Go through validate, init and apply stages to deploy the resources
- Bicep template - Similar to ARM templates
We need to change Kind of Cognitive services (OpenAI, Face etc) and other details tier type or custom domain etc. to create cognitive resources with desired name and tier type.
Reference document leveraging Azure Devops and Bicep template
Hope it helps.
Thank you.