### Start the development server Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/intro/quickstart-agent-assist.md Command to install dependencies and start the Vite development server for a React SPA. ```bash npm install && npm run dev ``` -------------------------------- ### Install Go SDK Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/azure-mcp-server/how-to/github-copilot-sdk.md Get the Go SDK package using `go get`. ```bash go get github.com/github/copilot-sdk/go ``` -------------------------------- ### More example prompts Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/azure-mcp-server/get-started/tools/jet-brains.md Additional example prompts for interacting with Azure MCP Server. ```text List all of the storage accounts in my subscription Get the available tables in my storage accounts Show me the configuration of my App Service instances ``` -------------------------------- ### Manual install arguments Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/azure-mcp-server/get-started/tools/jet-brains.md Arguments for starting the Azure MCP Server manually. ```bash -y @azure/mcp@latest server start ``` -------------------------------- ### Follow-up Question and Response Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/java/toolkit-for-intellij/chatgpt-intellij.md Example of a follow-up question and response in a chat session with Azure OpenAI Service. ```output Most Surface models come with an integrated GPU (Graphics Processing Unit), which is sufficient for basic graphics tasks such as video playback and casual gaming. However, if you're looking for more powerful graphics performance, the Surface Book 3 and the Surface Studio 2 come with dedicated GPUs. The Surface Book 3 has an NVIDIA GeForce GTX GPU, while the Surface Studio 2 has an NVIDIA GeForce GTX 1060 or 1070 GPU, depending on the configuration. ``` -------------------------------- ### Build the project Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/azure-mcp-server/get-started/languages/dotnet.md Command to build the project and verify setup. ```console dotnet build ``` -------------------------------- ### Azurerm Frontdoor Frontend Endpoint Reference Change Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/terraform/provider-version-history-azurerm-2-0-0-to-2-99-0.md Example demonstrating the change in referencing frontend endpoints in azurerm_frontdoor due to an upcoming breaking change from List to Set. ```terraform azurerm_frontdoor.example.frontend_endpoints["exampleFrontendEndpoint2"] ``` -------------------------------- ### Chat Completion Example Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/java/toolkit-for-intellij/chatgpt-intellij.md Example of a chat completion response from Azure OpenAI Service. ```output Great! Which Surface model are you interested in? There are several options available such as the Surface Pro, Surface Laptop, Surface Book, Surface Go, and Surface Studio. Each one has its own unique features and specifications, so it's important to choose the one that best fits your needs. ``` -------------------------------- ### Get sample application - .NET Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/github-copilot-app-modernization/modernization-agent/quickstart.md Clone the .NET sample application and prepare it for modernization. ```bash git clone https://github.com/Azure-Samples/PhotoAlbum.git cd PhotoAlbum git checkout -b modernize ``` -------------------------------- ### Prompt for GitHub Copilot Chat Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/intro/quickstart-developer-tools.md An example prompt to ask GitHub Copilot for guidance on adding authentication to an Azure App Service. ```text How can I add authentication to my Azure App Service? ``` -------------------------------- ### Verify tool installation Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/intro/quickstart-agent-assist.md Commands to verify the installation of Visual Studio Code, GitHub Copilot, Node.js, Azure Developer CLI, and Azure Skills. ```bash code --version # GitHub Copilot code --list-extensions | grep -i github.copilot # Node.js node --version # Azure Developer CLI azd version # Azure Skills code --list-extensions | grep -i ms-azuretools.vscode-azure-mcp-server ``` -------------------------------- ### Complete Flow Example Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/azure-mcp-server/how-to/github-copilot-sdk.md This Go code demonstrates initializing the Copilot client, configuring the Azure MCP server, creating a session, handling events, and sending a prompt. ```go package main import ( "context" "fmt" "log" copilot "github.com/github/copilot-sdk/go" ) func main() { ctx := context.Background() // Initialize the Copilot client client, err := copilot.NewClient(copilot.ClientOptions{ CLIArgs: []string{ "--allow-all-tools", "--allow-all-paths", }, }) if err != nil { log.Fatal(err) } if err := client.Start(ctx); err != nil { log.Fatal(err) } defer client.Stop(ctx) // Configure Azure MCP server in session config azureMcpConfig := map[string]copilot.MCPServerConfig{ "azure-mcp": { Type: "local", Command: "npx", Args: []string{"-y", "@azure/mcp@latest", "server", "start"}, Tools: []string{"*"}, // Enable all Azure MCP tools }, } // Create session with MCP servers session, err := client.CreateSession(ctx, copilot.SessionConfig{ Model: "gpt-4.1", // Default model; BYOK can override Streaming: true, MCPServers: azureMcpConfig, }) if err != nil { log.Fatal(err) } // Handle events session.OnEvent(func(event copilot.SessionEvent) { switch event.Type { case copilot.AssistantMessageDelta: if event.Data.DeltaContent != "" { fmt.Print(event.Data.DeltaContent) } case copilot.ToolExecutionStart: fmt.Printf("\n[TOOL: %s]\n", event.Data.ToolName) } }) // Send prompt err = session.SendAndWait(ctx, copilot.Message{ Prompt: "List all resource groups in my Azure subscription", }) if err != nil { log.Fatal(err) } } ``` -------------------------------- ### Example question Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/java/ai/get-started-app-chat-template.md An example of a question to ask the chat app. ```text What is my deductible? ``` -------------------------------- ### Create the environment and install dependencies Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/azure-mcp-server/get-started/languages/python.md Install the dependencies from requirements.txt. ```console pip install -r requirements.txt ``` -------------------------------- ### Get sample application - Java Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/github-copilot-app-modernization/modernization-agent/quickstart.md Clone the Java sample application and prepare it for modernization. ```bash git clone https://github.com/Azure-Samples/PhotoAlbum-Java.git cd PhotoAlbum-Java git checkout -b modernize ``` -------------------------------- ### Get the autogenerated Jenkins password Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/jenkins/configure-on-linux-vm.md Retrieve the initial administrator password for Jenkins. ```bash sudo cat /var/lib/jenkins/secrets/initialAdminPassword ``` -------------------------------- ### Initialize project with a template Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/javascript/ai/get-started-app-chat-template.md Initializes the project by downloading the specified template from a GitHub repository. ```bash azd init -t azure-search-openai-javascript ``` -------------------------------- ### Example question for chat app Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/python/get-started-app-chat-template.md This is an example of a question to ask the chat app. ```text What happens in a performance review? ``` -------------------------------- ### cloud-init-jenkins.txt Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/jenkins/configure-on-linux-vm.md This cloud-init configuration file downloads and installs Jenkins on an Ubuntu VM. ```yaml #cloud-config package_upgrade: true runcmd: - sudo apt install openjdk-17-jre -y - curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null - echo 'deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/' | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null - sudo apt-get update && sudo apt-get install jenkins -y - sudo service jenkins restart ``` -------------------------------- ### Full example of creating a Virtual Machines client Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/go/management-libraries.md This is a complete code example demonstrating the creation of a Virtual Machines client, including necessary imports and credential setup. ```go package main import ( "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { // handle error } client, err := armcompute.NewVirtualMachinesClient("", cred, nil) if err != nil { // handle error } } ``` -------------------------------- ### Install .NET SDK Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/azure-mcp-server/how-to/github-copilot-sdk.md Add the contents of the NuGet package to your project. ```bash dotnet add package GitHub.Copilot.SDK ``` -------------------------------- ### Pack command output example Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/java/migration/migrate-weblogic-to-azure-vm-manually.md Example output after successfully packing the domain configuration. ```output [oracle@adminVM bin]$ bash pack.sh -domain=/u01/domains/wlsd -managed=true -template=/tmp/cluster.jar -template_name="wlsd" << read domain from "/u01/domains/wlsd" >> succeed: read domain from "/u01/domains/wlsd" << set config option Managed to "true" >> succeed: set config option Managed to "true" << write template to "/tmp/cluster.jar" .............................. >> succeed: write template to "/tmp/cluster.jar" << close template >> succeed: close template ``` -------------------------------- ### Install Ansible on the virtual machine Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/ansible/install-on-linux-vm.md Installs Ansible and the Azure collection on an Ubuntu virtual machine. ```bash #!/bin/bash sudo apt update sudo apt install software-properties-common sudo add-apt-repository --yes --update ppa:ansible/ansible sudo apt install ansible # Install Ansible az collection for interacting with Azure. (optional) ansible-galaxy collection install azure.azcollection --force # Install Ansible modules for Azure (optional) sudo pip3 install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements.txt ``` -------------------------------- ### Deployment completion output example Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/typespec/quickstart-scaffold-typescript.md Example of the output seen after a successful deployment. ```console Deploying services (azd deploy) (✓) Done: Deploying service api - Endpoint: https://container-app-123.ambitiouscliff-456.centralus.azurecontainerapps.io/ SUCCESS: Your up workflow to provision and deploy to Azure completed in 6 minutes 32 seconds. ``` -------------------------------- ### Unpack command output example on mspVM1 Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/java/migration/migrate-weblogic-to-azure-vm-manually.md Example output after successfully unpacking the domain configuration on mspVM1. ```output [oracle@mspVM1 bin]$ bash unpack.sh -domain=/u01/domains/wlsd -template=/tmp/cluster.jar << read template from "/tmp/cluster.jar" >> succeed: read template from "/tmp/cluster.jar" << set config option DomainName to "wlsd" >> succeed: set config option DomainName to "wlsd" >> validateConfig "KeyStorePasswords" >> succeed: validateConfig "KeyStorePasswords" << write Domain to "/u01/domains/wlsd" .................................................. >> succeed: write Domain to "/u01/domains/wlsd" << close template >> succeed: close template ``` -------------------------------- ### Example question Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/javascript/ai/get-started-app-chat-template.md An example question to test the chat app's response after changing settings. ```markdown What happens if the rental doesn't fit the description? ``` -------------------------------- ### Example prompts for other Azure MCP operations Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/azure-mcp-server/get-started/tools/eclipse.md These are example prompts for exploring other Azure MCP operations. ```text List all storage accounts in my subscription List available tables in my storage accounts Show the configuration of my App Service instances ``` -------------------------------- ### Initialize the project with a template (Visual Studio Code) Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/java/ai/get-started-app-chat-template.md Initializes the project by downloading the 'azure-search-openai-demo-java' template using the Azure Developer CLI. ```bash azd init -t azure-search-openai-demo-java ``` -------------------------------- ### Example log output Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/java/fundamentals/java-diagnostic-tools-java-diagnostic-agent-quickstart.md This is an example of the log output you might see after adding logging around a class function. It shows the start and end times, and the total execution time of the method. ```output ===== START ===== Method: updateInformation Start Time: 2024-12-12T07:37:55.404107848Z Done with the validation Done with the DB access Done with the data filtering ===== END ===== Method: updateInformation End Time: 2024-12-12T07:37:55.404316940Z Total Time: 0 milliseconds ``` -------------------------------- ### Create a new directory for your project Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/intro/quickstart-agent-assist.md Command to create a new directory for the to-do app and navigate into it. ```bash mkdir todo-app && cd todo-app ``` -------------------------------- ### Clone the repository Source: https://github.com/microsoftdocs/azure-dev-docs/blob/main/articles/github-copilot-azure/quickstart-deploy-app-agent-mode.md If you want to follow along with this tutorial, you can clone the following repo from GitHub to your local computer. ```bash git clone https://github.com/Azure-Samples/storage-blob-upload-from-webapp.git ```