Skip to content

Commit 924f212

Browse files
eladperetsArcturusZhang
authored andcommitted
[Hub Generated] Review request for Microsoft.PolicyInsights to add version stable/2021-10-01 (Azure#16250)
* Adds base for updating Microsoft.PolicyInsights from version stable/2019-07-01 to version 2021-10-01 * Updates readme * Updates API version in new specs and examples * Microsoft.PolicyInsights/remediations new API version: 2021-10-01 * Add Go tag * Add Java tag * Update specification/policyinsights/resource-manager/readme.md Co-authored-by: Dapeng Zhang <[email protected]> * Remove Go SDK generation flag Co-authored-by: Dapeng Zhang <[email protected]>
1 parent 61d889d commit 924f212

File tree

32 files changed

+3069
-15
lines changed

32 files changed

+3069
-15
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"managementGroupsNamespace": "Microsoft.Management",
4+
"managementGroupId": "financeMg",
5+
"api-version": "2021-10-01",
6+
"remediationName": "myRemediation"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"properties": {
13+
"policyAssignmentId": "/providers/Microsoft.Management/managementGroups/financeMg/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
14+
"provisioningState": "Cancelling",
15+
"createdOn": "2018-09-13T21:51:09.075918Z",
16+
"lastUpdatedOn": "2018-09-13T21:52:10.0011706Z",
17+
"resourceDiscoveryMode": "ExistingNonCompliant",
18+
"deploymentStatus": {
19+
"totalDeployments": 2,
20+
"successfulDeployments": 2,
21+
"failedDeployments": 0
22+
},
23+
"statusMessage": "Remediation extended status",
24+
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6",
25+
"resourceCount": 42,
26+
"parallelDeployments": 6,
27+
"failureThreshold": {
28+
"percentage": 0.1
29+
}
30+
},
31+
"id": "/providers/Microsoft.Management/managementGroups/financeMg/providers/microsoft.policyinsights/remediations/myRemediation",
32+
"name": "myRemediation",
33+
"type": "Microsoft.PolicyInsights/remediations",
34+
"systemData": {
35+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
36+
"createdByType": "User",
37+
"createdAt": "2018-09-13T21:51:09.075918Z",
38+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
39+
"lastModifiedByType": "User",
40+
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z"
41+
}
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "35ee058e-5fa0-414c-8145-3ebb8d09b6e2",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2021-10-01",
6+
"remediationName": "myRemediation"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"properties": {
13+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
14+
"provisioningState": "Cancelling",
15+
"createdOn": "2018-09-13T21:51:09.075918Z",
16+
"lastUpdatedOn": "2018-09-13T21:52:10.0011706Z",
17+
"resourceDiscoveryMode": "ExistingNonCompliant",
18+
"deploymentStatus": {
19+
"totalDeployments": 2,
20+
"successfulDeployments": 2,
21+
"failedDeployments": 0
22+
},
23+
"statusMessage": "Remediation extended status",
24+
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6",
25+
"resourceCount": 42,
26+
"parallelDeployments": 6,
27+
"failureThreshold": {
28+
"percentage": 0.1
29+
}
30+
},
31+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.policyinsights/remediations/myRemediation",
32+
"name": "myRemediation",
33+
"type": "Microsoft.PolicyInsights/remediations",
34+
"systemData": {
35+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
36+
"createdByType": "User",
37+
"createdAt": "2018-09-13T21:51:09.075918Z",
38+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
39+
"lastModifiedByType": "User",
40+
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z"
41+
}
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"resourceId": "subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.storage/storageaccounts/storAc1",
4+
"api-version": "2021-10-01",
5+
"remediationName": "myRemediation"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {},
10+
"body": {
11+
"properties": {
12+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
13+
"provisioningState": "Cancelling",
14+
"createdOn": "2018-09-13T21:51:09.085918Z",
15+
"lastUpdatedOn": "2018-09-13T21:52:10.0011706Z",
16+
"resourceDiscoveryMode": "ExistingNonCompliant",
17+
"deploymentStatus": {
18+
"totalDeployments": 1,
19+
"successfulDeployments": 1,
20+
"failedDeployments": 0
21+
},
22+
"statusMessage": "Remediation extended status",
23+
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6",
24+
"resourceCount": 42,
25+
"parallelDeployments": 6,
26+
"failureThreshold": {
27+
"percentage": 0.1
28+
}
29+
},
30+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.storage/storageaccounts/storAc1/providers/microsoft.policyinsights/remediations/myRemediation",
31+
"name": "myRemediation",
32+
"type": "Microsoft.PolicyInsights/remediations",
33+
"systemData": {
34+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
35+
"createdByType": "User",
36+
"createdAt": "2018-09-13T21:51:09.075918Z",
37+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
38+
"lastModifiedByType": "User",
39+
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z"
40+
}
41+
}
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "35ee058e-5fa0-414c-8145-3ebb8d09b6e2",
4+
"api-version": "2021-10-01",
5+
"remediationName": "myRemediation"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {},
10+
"body": {
11+
"properties": {
12+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
13+
"provisioningState": "Cancelling",
14+
"createdOn": "2018-09-13T21:51:09.075918Z",
15+
"lastUpdatedOn": "2018-09-13T21:52:10.0011706Z",
16+
"resourceDiscoveryMode": "ExistingNonCompliant",
17+
"deploymentStatus": {
18+
"totalDeployments": 2,
19+
"successfulDeployments": 2,
20+
"failedDeployments": 0
21+
},
22+
"statusMessage": "Remediation extended status",
23+
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6",
24+
"resourceCount": 42,
25+
"parallelDeployments": 6,
26+
"failureThreshold": {
27+
"percentage": 0.1
28+
}
29+
},
30+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.policyinsights/remediations/myRemediation",
31+
"name": "myRemediation",
32+
"type": "Microsoft.PolicyInsights/remediations",
33+
"systemData": {
34+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
35+
"createdByType": "User",
36+
"createdAt": "2018-09-13T21:51:09.075918Z",
37+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
38+
"lastModifiedByType": "User",
39+
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z"
40+
}
41+
}
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"parameters": {
3+
"managementGroupsNamespace": "Microsoft.Management",
4+
"managementGroupId": "financeMg",
5+
"remediationName": "storageRemediation",
6+
"api-version": "2021-10-01",
7+
"parameters": {
8+
"properties": {
9+
"policyAssignmentId": "/providers/microsoft.management/managementGroups/financeMg/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5"
10+
}
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"headers": {},
16+
"body": {
17+
"properties": {
18+
"policyAssignmentId": "/providers/microsoft.management/managementGroups/financeMg/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
19+
"provisioningState": "Accepted",
20+
"createdOn": "2018-09-12T20:58:58.7531298Z",
21+
"lastUpdatedOn": "2018-09-12T20:58:58.7531298Z",
22+
"resourceDiscoveryMode": "ExistingNonCompliant",
23+
"deploymentStatus": {
24+
"totalDeployments": 2,
25+
"successfulDeployments": 0,
26+
"failedDeployments": 0
27+
},
28+
"statusMessage": "Remediation extended status",
29+
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6"
30+
},
31+
"id": "/providers/microsoft.management/managementGroups/financeMg/providers/microsoft.policyinsights/remediations/storageRemediation",
32+
"name": "storageRemediation",
33+
"type": "Microsoft.PolicyInsights/remediations"
34+
}
35+
},
36+
"201": {
37+
"headers": {},
38+
"body": {
39+
"properties": {
40+
"policyAssignmentId": "/providers/microsoft.management/managementGroups/financeMg/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
41+
"provisioningState": "Accepted",
42+
"createdOn": "2018-09-12T20:58:58.7531298Z",
43+
"lastUpdatedOn": "2018-09-12T20:58:58.7531298Z",
44+
"resourceDiscoveryMode": "ExistingNonCompliant",
45+
"deploymentStatus": {
46+
"totalDeployments": 2,
47+
"successfulDeployments": 0,
48+
"failedDeployments": 0
49+
},
50+
"statusMessage": "Remediation extended status",
51+
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6"
52+
},
53+
"id": "/providers/microsoft.management/managementGroups/financeMg/providers/microsoft.policyinsights/remediations/storageRemediation",
54+
"name": "storageRemediation",
55+
"type": "Microsoft.PolicyInsights/remediations",
56+
"systemData": {
57+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
58+
"createdByType": "User",
59+
"createdAt": "2018-09-13T21:51:09.075918Z",
60+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
61+
"lastModifiedByType": "User",
62+
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z"
63+
}
64+
}
65+
}
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "35ee058e-5fa0-414c-8145-3ebb8d09b6e2",
4+
"resourceGroupName": "myResourceGroup",
5+
"remediationName": "storageRemediation",
6+
"api-version": "2021-10-01",
7+
"parameters": {
8+
"properties": {
9+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5"
10+
}
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"headers": {},
16+
"body": {
17+
"properties": {
18+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
19+
"provisioningState": "Accepted",
20+
"createdOn": "2018-09-12T20:58:58.7531298Z",
21+
"lastUpdatedOn": "2018-09-12T20:58:58.7531298Z",
22+
"resourceDiscoveryMode": "ExistingNonCompliant",
23+
"deploymentStatus": {
24+
"totalDeployments": 2,
25+
"successfulDeployments": 0,
26+
"failedDeployments": 0
27+
},
28+
"statusMessage": "Remediation extended status",
29+
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6"
30+
},
31+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/microsoft.policyinsights/remediations/storageRemediation",
32+
"name": "storageRemediation",
33+
"type": "Microsoft.PolicyInsights/remediations",
34+
"systemData": {
35+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
36+
"createdByType": "User",
37+
"createdAt": "2020-06-15T18:52:27Z",
38+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
39+
"lastModifiedByType": "User",
40+
"lastModifiedAt": "2020-06-15T18:52:27Z"
41+
}
42+
}
43+
},
44+
"201": {
45+
"headers": {},
46+
"body": {
47+
"properties": {
48+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
49+
"provisioningState": "Accepted",
50+
"createdOn": "2018-09-12T20:58:58.7531298Z",
51+
"lastUpdatedOn": "2018-09-12T20:58:58.7531298Z",
52+
"resourceDiscoveryMode": "ExistingNonCompliant",
53+
"deploymentStatus": {
54+
"totalDeployments": 2,
55+
"successfulDeployments": 0,
56+
"failedDeployments": 0
57+
},
58+
"statusMessage": "Remediation extended status",
59+
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6"
60+
},
61+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/microsoft.policyinsights/remediations/storageRemediation",
62+
"name": "storageRemediation",
63+
"type": "Microsoft.PolicyInsights/remediations",
64+
"systemData": {
65+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
66+
"createdByType": "User",
67+
"createdAt": "2018-09-13T21:51:09.075918Z",
68+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
69+
"lastModifiedByType": "User",
70+
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z"
71+
}
72+
}
73+
}
74+
}
75+
}

0 commit comments

Comments
 (0)