Hello , Welcome to MS Q&A
To create a new Azure Function using a Bicep pipeline with a service principal, you can follow these steps using Azure CLI:
- Log in with the Service Principal: Use the following command to log in to Azure using your service principal credentials:
az login --service-principal --username <appId> --password <password> --tenant <tenantId>
- Deploy the Bicep Template: Once logged in, you can deploy your Bicep template to create the Azure Function. Use the following command:
az deployment group create --resource-group <resourceGroup> --template-file <bicepFile> --parameters <parameters>
Replace <resourceGroup>, <bicepFile>, and <parameters> with your specific resource group name, Bicep file path, and any parameters required for your deployment.
These steps will help you deploy your Azure Function using the Bicep template with the service principal you have
Please let me know if you have ques
Kindly accept if it helps
Thanks
Deepanshu