Skip to content

Commit

Permalink
First version of the azure devops pipeline prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
arceegomes committed Oct 20, 2024
1 parent 0025765 commit 6afef87
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions samples/m365-azure-devops-pipeline-prompt/assets/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[
{
"name": "m365-azure-devops-pipeline-prompt",
"source": "pnp",
"title": "Azure DevOps Build and Release Pipelines",
"shortDescription": "Prompt to generate the build and release pipelines in Azure DevOps to automate the deployment of ASP.Net Core MVC Application to Azure Container Apps",
"url": "https://github.com/pnp/copilot-prompts/tree/main/samples/m365-azure-devops-pipeline-prompt",
"downloadUrl": "https://pnp.github.io/download-partial/?url=https://github.com/pnp/copilot-prompts/tree/main/samples/m365-azure-devops-pipeline-prompt",
"longDescription": [
"This prompt illustrates how to get the desired help from Copilot to automate the deployment of ASP.Net Core MVC Application to Azure Container Apps using the Build and Release Pipelines in Azure DevOps."
],
"creationDateTime": "2024-10-19",
"updateDateTime": "2024-10-19",
"products": [
"Microsoft 365 Copilot"
],
"metadata": [
],
"thumbnails": [
{
"type": "image",
"order": 100,
"url": "https://github.com/pnp/copilot-prompts/raw/main/samples/m365-azure-devops-pipeline-prompt/assets/prompt-query.jpg",
"alt": "Azure DevOps Build and Release Pipelines"
}
],
"authors": [
{
"gitHubAccount": "arceegomes",
"pictureUrl": "https://avatars.githubusercontent.com/u/26863017?v=4",
"name": "Arcee Gomes"
}
],
"references": [
{
"name": "Microsoft Copilot",
"description": "Microsoft Copilot",
"url": "https://copilot.microsoft.com/"
}
]
}
]
69 changes: 69 additions & 0 deletions samples/m365-azure-devops-pipeline-prompt/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# πŸ’» Azure DevOps Build and Release Pipelines πŸ§‘β€πŸ’»

![Prompt query](./assets/prompt-query.jpg)
![Demo answer Build Pipeline](./assets/prompt-output-build-pipeline.jpg)
![Demo answer Release Pipeline](./assets/prompt-output-release-pipeline.jpg)

## Summary

This is a Azure DevOps Build and Release Pipeline Prompt. The purpose is to illustrate the power of precise instructions to get the desired help in deployment automation.

## Prompt πŸ’‘

Help me with the Build and Release Pipeline in Azure DevOps for the ASP.Net Core MVC Project.<br/>
The build and release pipeline needs to use the hosted Windows Server agent pool "Build Server" present in Azure DevOps.<br/>
For the Build Pipeline, create a build based on the environment variable and use the corresponding appsettings.json file.<br/>
For the environment "DEV" use the appsettings.DEV.json<br/>
For the environment "UAT" use the appsettings.UAT.json<br/>
For the environment "PROD" use the appsettings.PROD.json<br/>
For the Release Pipeline, use the build generated from the build pipeline as an input to the Release Pipeline<br/>
The build needs to be deployed to an Azure Container App based on the Azure Publishing profile.<br/>
For DEV build use the "DEV.pubxml" publishing profile in the project settings and deploy the build to the DEV Container App in Azure<br/>
For UAT build use the "UAT.pubxml" publishing profile in the project settings and deploy the build to the UAT Container App in Azure<br/>
For PROD build use the "PROD.pubxml" publishing profile in the project settings and deploy the build to the PROD Container App in Azure<br/>

### Description ℹ️

Create the Build and Release Pipelines in Azure DevOps using Copilot.

## Contributors πŸ‘¨β€πŸ’»

[Arcee Gomes](https://github.com/arceegomes)

## Version history

Version|Date|Comments
-------|----|--------
1.0|October 19, 2024|Initial release

## Instructions πŸ“

1. Make sure you have Copilot for Microsoft 365 in your tenant
2. Open CoPilot App
3. Copy and paste the about prompt and click Submit

### Improvise Usage πŸš€

You can add more information to the prompt if needed to create more accurate response

## Prerequisites

* [Copilot for Microsoft 365](https://developer.microsoft.com/microsoft-365/dev-program)

## Help

We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

You can try looking at [issues related to this sample](https://github.com/pnp/copilot-prompts/issues?q=label%3A%22sample%3A%20m365-azure-devops-pipeline-prompt%22) to see if anybody else is having the same issues.

If you encounter any issues using this sample, [create a new issue](https://github.com/pnp/copilot-prompts/issues/new).

Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/copilot-prompts/issues/new).

## Disclaimer

**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**

![](https://m365-visitor-stats.azurewebsites.net/SamplesGallery/copilotprompts-m365-azure-devops-pipeline-prompt)


0 comments on commit 6afef87

Please sign in to comment.