Skip to content

add new snippet: new Azure Resource Group #1549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 2, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/community_snippets.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ _To contribute, check out our [guide here](#contributing)._
| [PSCustomObject](#pscustomobject) | _A simple PSCustomObject by @brettmillerb_ |
| [Region Block](#region-block) | _Region Block for organizing and folding of your code_ |
| [Send-MailMessage](#send-mailmessage) | _Send an mail message with the most common parameters by @fullenw1_ |
| [New Azure Resource Group](#new-azure-resource-group) | _Create an Azure Resource group by @vmsilvamolina_ |

## Snippets

Expand Down Expand Up @@ -344,6 +345,23 @@ Add the Send-MailMessage cmdlet with the most common parameters in a hashtable f
}
```

### New Azure Resource Group

Create a Resource Group on Azure, by @vmsilvamolina.

#### Snippet

```json
"New Azure Resource Group": {
"prefix": "rg",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we follow the example set by the Send-MailMessage snippet (and other snippets that ship in the extension) perhaps the prefix should be ex-New-AzureRmResourceGroup?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we follow the example set by the Send-MailMessage snippet (and other snippets that ship in the extension) perhaps the prefix should be ex-New-AzureRmResourceGroup?

@rkeithhill Yes! You´re correct... I modified the snippet name with your suggestion. Thanks for the comment.

"body": [
"#New Resource Group",
"New-AzureRmResourceGroup -ResourceGroupName \"${1:ResourceGroup}\" -Location \"${2:EastUS}\""
],
"description": "Create an Azure Resource Group"
}
```

## Contributing

If you'd like to add a snippet to this list, [open a pull request](https://opensource.guide/how-to-contribute/#opening-a-pull-request) with the following changes:
Expand Down