Skip to content

Commit ff46602

Browse files
authoredJun 17, 2020
Naming templates (#129)
* refactor to support custom naming templates (ref #126) * cleaning Naming interface * refactored for custom naming template and initial set of unit tests * more unit tests * convert ARM template to use additional parameters * rename to better convey * fix ARM template sanity check * editorconfig, attributes and using clean-up * fixed implementation of FileNamingTemplates added more argument validation added unit tests * Integration test for naming template feature and some fixes and some doc notes * fix integration test cleanup should be moved to a special test command * factored out integration test cleanup that is delete all azure resources except for the resource group
1 parent 01dd13f commit ff46602

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+975
-187
lines changed
 

‎.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
insert_final_newline = true
7+
8+
[**.md]
9+
indent_size = 2
10+
trim_trailing_whitespace = false

‎doc/command-examples.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
11
# Sample Aggregator CLI usage
22

33
run `aggregator-cli.exe` (Windows), `aggregator-cli` (Linux) or `dotnet aggregator-cli.dll` followed by the command and any option.
4+
5+
6+
### Options valid for all command
47
All commands accept the `--verbose` option to print additional messages for troubleshooting.
58

9+
With `--namingTemplate`, you can specify affixes for all Azure resource that will be created or used.
10+
follows
11+
12+
```json
13+
{
14+
"ResourceGroupPrefix": "aggregator-",
15+
"ResourceGroupSuffix": "-sfx",
16+
"FunctionAppPrefix": "fp",
17+
"FunctionAppSuffix": "fs",
18+
"HostingPlanPrefix": "hp",
19+
"HostingPlanSuffix": "hs",
20+
"AppInsightPrefix": "aip",
21+
"AppInsightSuffix": "ais",
22+
"StorageAccountPrefix": "strg",
23+
"StorageAccountSuffix": "31415"
24+
}
25+
```
26+
27+
If you use this, the `--resourceGroup` option is mandatory.
28+
629

730
### Logon
831
You are required to log into both Azure and ADO. The credentials are cached locally and expire after 2 hours. _(Replace the below asterisks `*` with valid values.)_
@@ -181,4 +204,4 @@ Runs existing rule in Azure, no change is sent to Azure DevOps thanks to the `dr
181204
invoke.rule --instance my7 --resourceGroup test-aggregator7 --name r1 --event workitem.created --account giuliovaad --project WorkItemTracking --workItemId 14 --verbose --dryrun
182205
```
183206
If you want to see the log messages, run a `stream.logs` command in another window.
184-
This can be used (without the `dryrun` flag) to apply rules to existing work items.
207+
This can be used (without the `dryrun` flag) to apply rules to existing work items.

0 commit comments

Comments
 (0)
Please sign in to comment.