Skip to content

Commit 7350d23

Browse files
vmsilvamolinaTylerLeonhardt
authored andcommitted
[Ignore] add new snippet: new Azure Resource Group (#1549)
* add new snippet: new Azure Resource Group * fix the name of the snippet * fix the order list!
1 parent dfffdb9 commit 7350d23

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/community_snippets.md

+18
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ _To contribute, check out our [guide here](#contributing)._
2626
| [Error-Terminating](#error-terminating) | _Create a full terminating error by @omniomi_ |
2727
| [IfShouldProcess](#ifshouldprocess) | _Added If Should Process_ |
2828
| [MaxColumnLengthinDataTable](#maxcolumnlengthindatatable) | _Gets the max length of string columns in datatables_ |
29+
| [New Azure Resource Group](#new-azure-resource-group) | _Create an Azure Resource group by @vmsilvamolina_ |
2930
| [Parameter-Credential](#parameter-credential) | _Add a standard credential parameter to your function by @omniomi_ |
3031
| [PesterTestForMandatoryParameter](#pestertestformandatoryparameter) | _Create Pester test for a mandatory parameter_ |
3132
| [PesterTestForParameter](#pestertestforparameter) | _Create Pester test for parameter_ |
@@ -219,6 +220,23 @@ Takes a datatable object and iterates through it to get the max length of the st
219220
}
220221
```
221222

223+
### New Azure Resource Group
224+
225+
Create a Resource Group on Azure, by @vmsilvamolina.
226+
227+
#### Snippet
228+
229+
```json
230+
"New Azure Resource Group": {
231+
"prefix": "ex-New-AzureRmResourceGroup",
232+
"body": [
233+
"#New Resource Group",
234+
"New-AzureRmResourceGroup -ResourceGroupName \"${1:ResourceGroup}\" -Location \"${2:EastUS}\""
235+
],
236+
"description": "Create an Azure Resource Group"
237+
}
238+
```
239+
222240
### Parameter-Credential
223241

224242
Add a `-Credential` parameter that supports a PSCredential object in a variable, `-Credential (Get-Credential)`, or `-Credential Username` (will prompt). Includes an empty PSCredential object as the default value but this is the first tabstop so pressing backspace after inserting the snippet removes it. by @omniomi

0 commit comments

Comments
 (0)