Skip to content

Commit 16fd8c6

Browse files
Zim KalinowskiAnuTalluri
authored andcommitted
Adding ResourceGroup example (Azure#4971)
* fixed some invalid values in dl account examples * adding resource group sample * removed . * updating script to handle output of batch processing from autorest (Azure#5081)
1 parent 494ab1d commit 16fd8c6

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2018-05-01",
6+
"parameters": {
7+
"location": "eastus"
8+
}
9+
},
10+
"responses": {
11+
"201": {
12+
"body": {
13+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup",
14+
"name": "myResourceGroup",
15+
"location": "eastus",
16+
"properties": {
17+
"provisioningState":"Succeeded"
18+
}
19+
}
20+
},
21+
"200": {
22+
"body": {
23+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup",
24+
"name": "myResourceGroup",
25+
"location": "eastus",
26+
"properties": {
27+
"provisioningState":"Succeeded"
28+
}
29+
}
30+
}
31+
}
32+
}

specification/resources/resource-manager/Microsoft.Resources/stable/2018-05-01/resources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,9 @@
10141014
"tags": [
10151015
"ResourceGroups"
10161016
],
1017+
"x-ms-examples": {
1018+
"Create or update a resource group": { "$ref": "./examples/CreateResourceGroup.json" }
1019+
},
10171020
"operationId": "ResourceGroups_CreateOrUpdate",
10181021
"description": "Creates or updates a resource group.",
10191022
"parameters": [

0 commit comments

Comments
 (0)