Skip to content

Commit 7f49b11

Browse files
mc3784ArcturusZhang
authored andcommitted
Miceru/fix for automanage completeness (Azure#18752)
* Add HybridCompute paths * Add AzureStackHci paths * fix spelling * formatting * formatting * fix LintDiff errors * fix LintDiff warnings * implemented collection GET for configurationProfileAssignments resources * fix LintDiff warnings * change description to NoContent * enable go track 2 pipeline Co-authored-by: ArcturusZhang <dapzhang@microsoft.com>
1 parent 6082a70 commit 7f49b11

15 files changed

+1484
-82
lines changed

specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/automanage.json

Lines changed: 846 additions & 81 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"clusterName": "myClusterName",
6+
"configurationProfileAssignmentName": "default",
7+
"api-version": "2021-04-30-preview",
8+
"parameters": {
9+
"properties": {
10+
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"201": {
16+
"headers": {},
17+
"body": {
18+
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName/providers/Microsoft.Automanage/AutomanageAssignments/default",
19+
"name": "default",
20+
"properties": {
21+
"targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName",
22+
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction",
23+
"profileOverrides": null,
24+
"status": null
25+
},
26+
"systemData": {
27+
"createdBy": "user1@outlook.com",
28+
"createdByType": "User",
29+
"createdAt": "2020-02-03T01:01:01.1075056Z",
30+
"lastModifiedBy": "user2@outlook.com",
31+
"lastModifiedByType": "User",
32+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
33+
}
34+
}
35+
},
36+
"200": {
37+
"headers": {},
38+
"body": {
39+
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName/providers/Microsoft.Automanage/AutomanageAssignments/default",
40+
"name": "default",
41+
"properties": {
42+
"targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName",
43+
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction",
44+
"profileOverrides": null,
45+
"status": null
46+
},
47+
"systemData": {
48+
"createdBy": "user1@outlook.com",
49+
"createdByType": "User",
50+
"createdAt": "2020-02-03T01:01:01.1075056Z",
51+
"lastModifiedBy": "user2@outlook.com",
52+
"lastModifiedByType": "User",
53+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
54+
}
55+
}
56+
}
57+
}
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"machineName": "myMachineName",
6+
"configurationProfileAssignmentName": "default",
7+
"api-version": "2021-04-30-preview",
8+
"parameters": {
9+
"properties": {
10+
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"201": {
16+
"headers": {},
17+
"body": {
18+
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.Automanage/AutomanageAssignments/default",
19+
"name": "default",
20+
"properties": {
21+
"targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName",
22+
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction",
23+
"profileOverrides": null,
24+
"status": null
25+
},
26+
"systemData": {
27+
"createdBy": "user1@outlook.com",
28+
"createdByType": "User",
29+
"createdAt": "2020-02-03T01:01:01.1075056Z",
30+
"lastModifiedBy": "user2@outlook.com",
31+
"lastModifiedByType": "User",
32+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
33+
}
34+
}
35+
},
36+
"200": {
37+
"headers": {},
38+
"body": {
39+
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.Automanage/AutomanageAssignments/default",
40+
"name": "default",
41+
"properties": {
42+
"targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName",
43+
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction",
44+
"profileOverrides": null,
45+
"status": null
46+
},
47+
"systemData": {
48+
"createdBy": "user1@outlook.com",
49+
"createdByType": "User",
50+
"createdAt": "2020-02-03T01:01:01.1075056Z",
51+
"lastModifiedBy": "user2@outlook.com",
52+
"lastModifiedByType": "User",
53+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
54+
}
55+
}
56+
}
57+
}
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"clusterName": "myClusterName",
6+
"configurationProfileAssignmentName": "default",
7+
"api-version": "2021-04-30-preview"
8+
},
9+
"responses": {
10+
"200": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"machineName": "myMachineName",
6+
"configurationProfileAssignmentName": "default",
7+
"api-version": "2021-04-30-preview"
8+
},
9+
"responses": {
10+
"200": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"clusterName": "myClusterName",
6+
"configurationProfileAssignmentName": "default",
7+
"api-version": "2021-04-30-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {},
12+
"body": {
13+
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/Microsoft.AzureStackHci/clusters/machines/myClusterName/providers/Microsoft.Automanage/configurationProfileAssignments/default",
14+
"name": "default",
15+
"type": "Microsoft.Automanage/ConfigurationProfileAssignments",
16+
"properties": {
17+
"targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/Microsoft.AzureStackHci/clusters/machines/myClusterName",
18+
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest",
19+
"profileOverrides": null,
20+
"status": "Compliant"
21+
},
22+
"systemData": {
23+
"createdBy": "user1@outlook.com",
24+
"createdByType": "User",
25+
"createdAt": "2020-02-03T01:01:01.1075056Z",
26+
"lastModifiedBy": "user2@outlook.com",
27+
"lastModifiedByType": "User",
28+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
29+
}
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"machineName": "myMachineName",
6+
"configurationProfileAssignmentName": "default",
7+
"api-version": "2021-04-30-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {},
12+
"body": {
13+
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.Automanage/configurationProfileAssignments/default",
14+
"name": "default",
15+
"type": "Microsoft.Automanage/ConfigurationProfileAssignments",
16+
"properties": {
17+
"targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName",
18+
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest",
19+
"profileOverrides": null,
20+
"status": "Compliant"
21+
},
22+
"systemData": {
23+
"createdBy": "user1@outlook.com",
24+
"createdByType": "User",
25+
"createdAt": "2020-02-03T01:01:01.1075056Z",
26+
"lastModifiedBy": "user2@outlook.com",
27+
"lastModifiedByType": "User",
28+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
29+
}
30+
}
31+
}
32+
}
33+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"clusterName": "myClusterName",
6+
"configurationProfileAssignmentName": "default",
7+
"reportName": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4",
8+
"api-version": "2021-04-30-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {},
13+
"body": {
14+
"id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4",
15+
"name": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4",
16+
"type": "Microsoft.Automanage/configurationProfileAssignments/reports",
17+
"properties": {
18+
"startTime": "2021-03-31T22:13:06Z",
19+
"endTime": "2021-03-31T22:17:42Z",
20+
"lastModifiedTime": "2021-03-31T22:32:42Z",
21+
"duration": "PT15M32S",
22+
"type": "Consistency",
23+
"status": "Conformant",
24+
"configurationProfile": "anyConfigurationProfile",
25+
"resources": [
26+
{
27+
"name": "myResourceGroupName",
28+
"id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName",
29+
"type": "Microsoft.Resources/resourceGroups",
30+
"status": "Conformant",
31+
"error": null
32+
}
33+
],
34+
"error": null,
35+
"reportFormatVersion": "1.0"
36+
},
37+
"systemData": {
38+
"createdBy": "user1@outlook.com",
39+
"createdByType": "User",
40+
"createdAt": "2020-02-03T01:01:01.1075056Z",
41+
"lastModifiedBy": "user2@outlook.com",
42+
"lastModifiedByType": "User",
43+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
44+
}
45+
}
46+
}
47+
}
48+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"machineName": "myMachineName",
6+
"configurationProfileAssignmentName": "default",
7+
"reportName": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4",
8+
"api-version": "2021-04-30-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {},
13+
"body": {
14+
"id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myClustereName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4",
15+
"name": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4",
16+
"type": "Microsoft.Automanage/configurationProfileAssignments/reports",
17+
"properties": {
18+
"startTime": "2021-03-31T22:13:06Z",
19+
"endTime": "2021-03-31T22:17:42Z",
20+
"lastModifiedTime": "2021-03-31T22:32:42Z",
21+
"duration": "PT15M32S",
22+
"type": "Consistency",
23+
"status": "Conformant",
24+
"configurationProfile": "anyConfigurationProfile",
25+
"resources": [
26+
{
27+
"name": "myResourceGroupName",
28+
"id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName",
29+
"type": "Microsoft.Resources/resourceGroups",
30+
"status": "Conformant",
31+
"error": null
32+
}
33+
],
34+
"error": null,
35+
"reportFormatVersion": "1.0"
36+
},
37+
"systemData": {
38+
"createdBy": "user1@outlook.com",
39+
"createdByType": "User",
40+
"createdAt": "2020-02-03T01:01:01.1075056Z",
41+
"lastModifiedBy": "user2@outlook.com",
42+
"lastModifiedByType": "User",
43+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
44+
}
45+
}
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "mySubscriptionId",
4+
"resourceGroupName": "myResourceGroupName",
5+
"clusterName": "myClusterName",
6+
"api-version": "2021-04-30-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/configurationProfileAssignments/default",
15+
"name": "default",
16+
"type": "Microsoft.Automanage/ConfigurationProfileAssignments",
17+
"properties": {
18+
"targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName",
19+
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest",
20+
"profileOverrides": null,
21+
"status": "Compliant"
22+
},
23+
"systemData": {
24+
"createdBy": "user1@outlook.com",
25+
"createdByType": "User",
26+
"createdAt": "2020-02-03T01:01:01.1075056Z",
27+
"lastModifiedBy": "user2@outlook.com",
28+
"lastModifiedByType": "User",
29+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
30+
}
31+
},
32+
{
33+
"id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName/providers/Microsoft.Automanage/configurationProfileAssignments/default",
34+
"name": "default",
35+
"type": "Microsoft.Automanage/ConfigurationProfileAssignments",
36+
"properties": {
37+
"targetId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName",
38+
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction",
39+
"profileOverrides": null,
40+
"status": "NotCompliant "
41+
},
42+
"systemData": {
43+
"createdBy": "user1@outlook.com",
44+
"createdByType": "User",
45+
"createdAt": "2020-02-03T01:01:01.1075056Z",
46+
"lastModifiedBy": "user2@outlook.com",
47+
"lastModifiedByType": "User",
48+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
49+
}
50+
}
51+
]
52+
}
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)