Here are some examples of autocomplete suggestions:ĭefining a network interface card, which also has a reference to the subnet:Īdding a security rule for port 3389 as an inbound rule for a network security group:įor loop for creating multiple storage accounts based on the parAmountOfStorageAccounts parameter. This is my most frequent use of GitHub Copilot. Autocompletions based on GitHub Copilot suggestions In addition, I want to have some for the access policies, to show what the access policies array expects:ģ. For the demonstration, I want to decorate these parameters with the decorator for extra context. I have prepared an Azure Key Vault bicep with some parameters. To me, this is of real added value, since it helps me to keep focus on my technical work instead of thinking about documentation. In this use case, I will use GitHub Copilot to help me write inline documentation for parameters, variables or for creating metadata. GitHub Copilot for inline Bicep documentation GitHub Copilot uses the context to determine what the next follow-up question might need to be in order to complete the Bicep file.Ģ. This means that it understands the context of the code being written. GitHub Copilot will generate the following response: Write a Network Security Group bicep that allows RDP access from the Internet To achieve this, just simply ask GitHub Copilot the following question: For this demonstration, I want to create a network security group to open the 3389 RDP port for my Windows VM in Azure. In this use case, I ask GitHub Copilot to generate a code snippet based on a question. Here are three use cases for how I use GitHub Copilot: Once you’ve turned off telemetry, your usage data will no longer be collected by GitHub Copilot for product improvements.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |