Skip to content

Commit 4994cbe

Browse files
[Hub Generated] Review request for Microsoft.PolicyInsights to add version stable/2022-09-01 (#20557)
* Adds base for updating Microsoft.PolicyInsights from version stable/2021-01-01 to version 2022-09-01 * Updates readme * Updates API version in new specs and examples * Modified readme and readme.go * Modified attestations.json and examples * prettier check * modified tag * Added tag for java
1 parent 9a312bb commit 4994cbe

19 files changed

+1732
-3
lines changed

specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2022-09-01/attestations.json

Lines changed: 791 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "35ee058e-5fa0-414c-8145-3ebb8d09b6e2",
4+
"api-version": "2022-09-01",
5+
"resourceGroupName": "myRg",
6+
"attestationName": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
7+
"parameters": {
8+
"properties": {
9+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
10+
"policyDefinitionReferenceId": "0b158b46-ff42-4799-8e39-08a5c23b4551",
11+
"complianceState": "Compliant",
12+
"expiresOn": "2021-06-15T00:00:00Z",
13+
"owner": "55a32e28-3aa5-4eea-9b5a-4cd85153b966",
14+
"comments": "This subscription has passed a security audit.",
15+
"evidence": [
16+
{
17+
"description": "The results of the security audit.",
18+
"sourceUri": "https://gist.github.com/contoso/9573e238762c60166c090ae16b814011"
19+
}
20+
],
21+
"assessmentDate": "2021-06-10T00:00:00Z",
22+
"metadata": {
23+
"departmentId": "NYC-MARKETING-1"
24+
}
25+
}
26+
}
27+
},
28+
"responses": {
29+
"200": {
30+
"headers": {},
31+
"body": {
32+
"properties": {
33+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
34+
"policyDefinitionReferenceId": "0b158b46-ff42-4799-8e39-08a5c23b4551",
35+
"complianceState": "Compliant",
36+
"lastComplianceStateChangeAt": "2020-06-15T18:52:27Z",
37+
"expiresOn": "2021-06-15T00:00:00Z",
38+
"owner": "55a32e28-3aa5-4eea-9b5a-4cd85153b966",
39+
"comments": "This subscription has passed a security audit.",
40+
"evidence": [
41+
{
42+
"description": "The results of the security audit.",
43+
"sourceUri": "https://gist.github.com/contoso/9573e238762c60166c090ae16b814011"
44+
}
45+
],
46+
"assessmentDate": "2021-06-10T00:00:00Z",
47+
"metadata": {
48+
"departmentId": "NYC-MARKETING-1"
49+
},
50+
"provisioningState": "Succeeded"
51+
},
52+
"systemData": {
53+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
54+
"createdByType": "User",
55+
"createdAt": "2020-06-15T18:52:27Z",
56+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
57+
"lastModifiedByType": "User",
58+
"lastModifiedAt": "2020-06-15T18:52:27Z"
59+
},
60+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myrg/providers/microsoft.policyinsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
61+
"name": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
62+
"type": "Microsoft.PolicyInsights/attestations"
63+
}
64+
},
65+
"201": {
66+
"headers": {},
67+
"body": {
68+
"properties": {
69+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
70+
"policyDefinitionReferenceId": "0b158b46-ff42-4799-8e39-08a5c23b4551",
71+
"complianceState": "Compliant",
72+
"lastComplianceStateChangeAt": "2020-06-15T18:52:27Z",
73+
"expiresOn": "2021-06-15T00:00:00Z",
74+
"owner": "55a32e28-3aa5-4eea-9b5a-4cd85153b966",
75+
"comments": "This subscription has passed a security audit.",
76+
"evidence": [
77+
{
78+
"description": "The results of the security audit.",
79+
"sourceUri": "https://gist.github.com/contoso/9573e238762c60166c090ae16b814011"
80+
}
81+
],
82+
"assessmentDate": "2021-06-10T00:00:00Z",
83+
"metadata": {
84+
"departmentId": "NYC-MARKETING-1"
85+
},
86+
"provisioningState": "Succeeded"
87+
},
88+
"systemData": {
89+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
90+
"createdByType": "User",
91+
"createdAt": "2020-06-15T18:52:27Z",
92+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
93+
"lastModifiedByType": "User",
94+
"lastModifiedAt": "2020-06-15T18:52:27Z"
95+
},
96+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myrg/providers/microsoft.policyinsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
97+
"name": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
98+
"type": "Microsoft.PolicyInsights/attestations"
99+
}
100+
}
101+
}
102+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"parameters": {
3+
"resourceId": "subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myrg/providers/microsoft.compute/virtualMachines/devVM",
4+
"api-version": "2022-09-01",
5+
"attestationName": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
6+
"parameters": {
7+
"properties": {
8+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
9+
"policyDefinitionReferenceId": "0b158b46-ff42-4799-8e39-08a5c23b4551",
10+
"complianceState": "Compliant",
11+
"expiresOn": "2021-06-15T00:00:00Z",
12+
"owner": "55a32e28-3aa5-4eea-9b5a-4cd85153b966",
13+
"comments": "This subscription has passed a security audit.",
14+
"evidence": [
15+
{
16+
"description": "The results of the security audit.",
17+
"sourceUri": "https://gist.github.com/contoso/9573e238762c60166c090ae16b814011"
18+
}
19+
],
20+
"assessmentDate": "2021-06-10T00:00:00Z",
21+
"metadata": {
22+
"departmentId": "NYC-MARKETING-1"
23+
}
24+
}
25+
}
26+
},
27+
"responses": {
28+
"200": {
29+
"headers": {},
30+
"body": {
31+
"properties": {
32+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
33+
"policyDefinitionReferenceId": "0b158b46-ff42-4799-8e39-08a5c23b4551",
34+
"complianceState": "Compliant",
35+
"lastComplianceStateChangeAt": "2020-06-15T18:52:27Z",
36+
"expiresOn": "2021-06-15T00:00:00Z",
37+
"owner": "55a32e28-3aa5-4eea-9b5a-4cd85153b966",
38+
"comments": "This subscription has passed a security audit.",
39+
"evidence": [
40+
{
41+
"description": "The results of the security audit.",
42+
"sourceUri": "https://gist.github.com/contoso/9573e238762c60166c090ae16b814011"
43+
}
44+
],
45+
"assessmentDate": "2021-06-10T00:00:00Z",
46+
"metadata": {
47+
"departmentId": "NYC-MARKETING-1"
48+
},
49+
"provisioningState": "Succeeded"
50+
},
51+
"systemData": {
52+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
53+
"createdByType": "User",
54+
"createdAt": "2020-06-15T18:52:27Z",
55+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
56+
"lastModifiedByType": "User",
57+
"lastModifiedAt": "2020-06-15T18:52:27Z"
58+
},
59+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myrg/providers/microsoft.compute/virtualMachines/devVM/providers/microsoft.policyinsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
60+
"name": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
61+
"type": "Microsoft.PolicyInsights/attestations"
62+
}
63+
},
64+
"201": {
65+
"headers": {},
66+
"body": {
67+
"properties": {
68+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
69+
"policyDefinitionReferenceId": "0b158b46-ff42-4799-8e39-08a5c23b4551",
70+
"complianceState": "Compliant",
71+
"lastComplianceStateChangeAt": "2020-06-15T18:52:27Z",
72+
"expiresOn": "2021-06-15T00:00:00Z",
73+
"owner": "55a32e28-3aa5-4eea-9b5a-4cd85153b966",
74+
"comments": "This subscription has passed a security audit.",
75+
"evidence": [
76+
{
77+
"description": "The results of the security audit.",
78+
"sourceUri": "https://gist.github.com/contoso/9573e238762c60166c090ae16b814011"
79+
}
80+
],
81+
"assessmentDate": "2021-06-10T00:00:00Z",
82+
"metadata": {
83+
"departmentId": "NYC-MARKETING-1"
84+
},
85+
"provisioningState": "Succeeded"
86+
},
87+
"systemData": {
88+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
89+
"createdByType": "User",
90+
"createdAt": "2020-06-15T18:52:27Z",
91+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
92+
"lastModifiedByType": "User",
93+
"lastModifiedAt": "2020-06-15T18:52:27Z"
94+
},
95+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myrg/providers/microsoft.compute/virtualMachines/devVM/providers/microsoft.policyinsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
96+
"name": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
97+
"type": "Microsoft.PolicyInsights/attestations"
98+
}
99+
}
100+
}
101+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "35ee058e-5fa0-414c-8145-3ebb8d09b6e2",
4+
"api-version": "2022-09-01",
5+
"attestationName": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
6+
"parameters": {
7+
"properties": {
8+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
9+
"complianceState": "Compliant"
10+
}
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"headers": {},
16+
"body": {
17+
"properties": {
18+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
19+
"complianceState": "Compliant",
20+
"lastComplianceStateChangeAt": "2020-06-15T18:52:27Z",
21+
"provisioningState": "Succeeded"
22+
},
23+
"systemData": {
24+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
25+
"createdByType": "User",
26+
"createdAt": "2020-06-15T18:52:27Z",
27+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
28+
"lastModifiedByType": "User",
29+
"lastModifiedAt": "2020-06-15T18:52:27Z"
30+
},
31+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.policyinsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
32+
"name": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
33+
"type": "Microsoft.PolicyInsights/attestations"
34+
}
35+
},
36+
"201": {
37+
"headers": {},
38+
"body": {
39+
"properties": {
40+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
41+
"complianceState": "Compliant",
42+
"lastComplianceStateChangeAt": "2020-06-15T18:52:27Z",
43+
"provisioningState": "Succeeded"
44+
},
45+
"systemData": {
46+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
47+
"createdByType": "User",
48+
"createdAt": "2020-06-15T18:52:27Z",
49+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
50+
"lastModifiedByType": "User",
51+
"lastModifiedAt": "2020-06-15T18:52:27Z"
52+
},
53+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.policyinsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
54+
"name": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
55+
"type": "Microsoft.PolicyInsights/attestations"
56+
}
57+
}
58+
}
59+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "35ee058e-5fa0-414c-8145-3ebb8d09b6e2",
4+
"api-version": "2022-09-01",
5+
"attestationName": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
6+
"parameters": {
7+
"properties": {
8+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
9+
"policyDefinitionReferenceId": "0b158b46-ff42-4799-8e39-08a5c23b4551",
10+
"complianceState": "Compliant",
11+
"expiresOn": "2021-06-15T00:00:00Z",
12+
"owner": "55a32e28-3aa5-4eea-9b5a-4cd85153b966",
13+
"comments": "This subscription has passed a security audit.",
14+
"evidence": [
15+
{
16+
"description": "The results of the security audit.",
17+
"sourceUri": "https://gist.github.com/contoso/9573e238762c60166c090ae16b814011"
18+
}
19+
],
20+
"assessmentDate": "2021-06-10T00:00:00Z",
21+
"metadata": {
22+
"departmentId": "NYC-MARKETING-1"
23+
}
24+
}
25+
}
26+
},
27+
"responses": {
28+
"200": {
29+
"headers": {},
30+
"body": {
31+
"properties": {
32+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
33+
"policyDefinitionReferenceId": "0b158b46-ff42-4799-8e39-08a5c23b4551",
34+
"complianceState": "Compliant",
35+
"lastComplianceStateChangeAt": "2020-06-15T18:52:27Z",
36+
"expiresOn": "2021-06-15T00:00:00Z",
37+
"owner": "55a32e28-3aa5-4eea-9b5a-4cd85153b966",
38+
"comments": "This subscription has passed a security audit.",
39+
"evidence": [
40+
{
41+
"description": "The results of the security audit.",
42+
"sourceUri": "https://gist.github.com/contoso/9573e238762c60166c090ae16b814011"
43+
}
44+
],
45+
"assessmentDate": "2021-06-10T00:00:00Z",
46+
"metadata": {
47+
"departmentId": "NYC-MARKETING-1"
48+
},
49+
"provisioningState": "Succeeded"
50+
},
51+
"systemData": {
52+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
53+
"createdByType": "User",
54+
"createdAt": "2020-06-15T18:52:27Z",
55+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
56+
"lastModifiedByType": "User",
57+
"lastModifiedAt": "2020-06-15T18:52:27Z"
58+
},
59+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.policyinsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
60+
"name": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
61+
"type": "Microsoft.PolicyInsights/attestations"
62+
}
63+
},
64+
"201": {
65+
"headers": {},
66+
"body": {
67+
"properties": {
68+
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5",
69+
"policyDefinitionReferenceId": "0b158b46-ff42-4799-8e39-08a5c23b4551",
70+
"complianceState": "Compliant",
71+
"lastComplianceStateChangeAt": "2020-06-15T18:52:27Z",
72+
"expiresOn": "2021-06-15T00:00:00Z",
73+
"owner": "55a32e28-3aa5-4eea-9b5a-4cd85153b966",
74+
"comments": "This subscription has passed a security audit.",
75+
"evidence": [
76+
{
77+
"description": "The results of the security audit.",
78+
"sourceUri": "https://gist.github.com/contoso/9573e238762c60166c090ae16b814011"
79+
}
80+
],
81+
"assessmentDate": "2021-06-10T00:00:00Z",
82+
"metadata": {
83+
"departmentId": "NYC-MARKETING-1"
84+
},
85+
"provisioningState": "Succeeded"
86+
},
87+
"systemData": {
88+
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
89+
"createdByType": "User",
90+
"createdAt": "2020-06-15T18:52:27Z",
91+
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6",
92+
"lastModifiedByType": "User",
93+
"lastModifiedAt": "2020-06-15T18:52:27Z"
94+
},
95+
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.policyinsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
96+
"name": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e",
97+
"type": "Microsoft.PolicyInsights/attestations"
98+
}
99+
}
100+
}
101+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "35ee058e-5fa0-414c-8145-3ebb8d09b6e2",
4+
"resourceGroupName": "myRg",
5+
"api-version": "2022-09-01",
6+
"attestationName": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {}
11+
},
12+
"204": {
13+
"headers": {}
14+
}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"resourceId": "subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myrg/providers/microsoft.compute/virtualMachines/devVM",
4+
"api-version": "2022-09-01",
5+
"attestationName": "790996e6-9871-4b1f-9cd9-ec42cd6ced1e"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {}
10+
},
11+
"204": {
12+
"headers": {}
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)