Skip to content

Commit f3b5b4c

Browse files
authored
Merge branch 'main' into vikeshi26/arm-leases-2026-05-28-partner-prs
2 parents 9363ab1 + a6943a9 commit f3b5b4c

1,511 files changed

Lines changed: 239033 additions & 6888 deletions

File tree

Some content is hidden

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

.github/policies/pr.stale.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
id: pr.stale
2+
name: GitOps.PullRequestIssueManagement
3+
description: Mark and close stale pull requests
4+
owner:
5+
resource: repository
6+
disabled: false
7+
where:
8+
configuration:
9+
resourceManagementConfiguration:
10+
scheduledSearches:
11+
- description: Mark PRs with no activity for 14 days as stale
12+
frequencies:
13+
- weekday:
14+
day: Monday
15+
time: 13:0
16+
filters:
17+
- isPullRequest
18+
- isOpen
19+
- isNotLabeledWith:
20+
label: no-recent-activity
21+
- noActivitySince:
22+
days: 14
23+
actions:
24+
- addLabel:
25+
label: no-recent-activity
26+
- addReply:
27+
reply: >-
28+
Hi @${issueAuthor}.
29+
Your PR has had no activity for 14 days and is marked as stale. If no further updates are made within 14 days, this PR will automatically be closed.
30+
To keep this PR active, please remove the `no-recent-activity` label or push new changes.
31+
32+
- description: Close PRs that have been stale for 14 more days (28 days total)
33+
frequencies:
34+
- weekday:
35+
day: Monday
36+
time: 13:0
37+
filters:
38+
- isPullRequest
39+
- isOpen
40+
- hasLabel:
41+
label: no-recent-activity
42+
- noActivitySince:
43+
days: 14
44+
actions:
45+
- closeIssue
46+
- addReply:
47+
reply: >-
48+
Hi @${issueAuthor}.
49+
This PR has been closed since it had no activity for 28 days. If you still need this change, please reopen the PR and @mention the assignee for review.
50+
51+
onFailure:
52+
onSuccess:

.github/policies/resourceManagement.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,42 +41,21 @@ configuration:
4141
label: no-recent-activity
4242
- addReply:
4343
reply: Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next **7 days**. If we don't hear back from you within **14 days** of this comment the issue will be automatically closed. Thank you!
44-
- description:
45-
frequencies:
46-
- weekday:
47-
day: Monday
48-
time: 0:0
49-
filters:
50-
- noActivitySince:
51-
days: 14
52-
- isOpen
53-
- isNotLabeledWith:
54-
label: no-recent-activity
55-
- isNotLabeledWith:
56-
label: customer-reported
57-
- isPullRequest
58-
- isNotDraftPullRequest
59-
actions:
60-
- addReply:
61-
reply: 'Hi, @${issueAuthor}. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove `no-recent-activity` label. '
62-
- addLabel:
63-
label: no-recent-activity
6444
- description:
6545
frequencies:
6646
- daily:
6747
time: 13:0
6848
filters:
49+
- isIssue
6950
- isOpen
7051
- hasLabel:
7152
label: no-recent-activity
7253
- noActivitySince:
7354
days: 14
74-
- isNotLabeledWith:
75-
label: customer-reported
7655
actions:
7756
- closeIssue
7857
- addReply:
79-
reply: Hi, @${issueAuthor}. The PR will be closed since the PR has no update for 28 days. If you still need the PR review to proceed, please reopen it and @ mention PR assignee.
58+
reply: Hi, @${issueAuthor}. This issue has been closed since it had no activity for 14 days after being marked as stale. If you still need help, please reopen it.
8059
eventResponderTasks:
8160
- if:
8261
- payloadType: Issue_Comment

specification/advisor/resource-manager/Microsoft.Advisor/Advisor/TriageRecommendation.tsp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ import "@azure-tools/typespec-azure-core";
22
import "@azure-tools/typespec-azure-resource-manager";
33
import "@typespec/openapi";
44
import "@typespec/rest";
5+
import "@typespec/versioning";
56
import "./models.tsp";
67
import "./ResiliencyReview.tsp";
78

89
using TypeSpec.Rest;
910
using Azure.ResourceManager;
1011
using TypeSpec.Http;
1112
using TypeSpec.OpenAPI;
13+
using TypeSpec.Versioning;
1214

1315
namespace Microsoft.Advisor;
1416
/**
1517
* Triage recommendation data structure.
1618
*/
19+
@removed(Versions.v2026_03_01_preview)
1720
@parentResource(ResiliencyReview)
1821
model TriageRecommendation
1922
is Azure.ResourceManager.ProxyResource<TriageRecommendationProperties> {
@@ -26,6 +29,7 @@ model TriageRecommendation
2629
}
2730

2831
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
32+
@removed(Versions.v2026_03_01_preview)
2933
interface TriageRecommendationOps
3034
extends Azure.ResourceManager.Legacy.LegacyOperations<
3135
{
@@ -50,6 +54,7 @@ interface TriageRecommendationOps
5054
> {}
5155

5256
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
57+
@removed(Versions.v2026_03_01_preview)
5358
interface TriageRecommendations {
5459
/**
5560
* Get an existing recommendation by id for an existing Azure Advisor Resiliency Review Id.

specification/advisor/resource-manager/Microsoft.Advisor/Advisor/TriageResource.tsp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ import "@azure-tools/typespec-azure-core";
22
import "@azure-tools/typespec-azure-resource-manager";
33
import "@typespec/openapi";
44
import "@typespec/rest";
5+
import "@typespec/versioning";
56
import "./models.tsp";
67
import "./TriageRecommendation.tsp";
78

89
using TypeSpec.Rest;
910
using Azure.ResourceManager;
1011
using TypeSpec.Http;
1112
using TypeSpec.OpenAPI;
13+
using TypeSpec.Versioning;
1214

1315
namespace Microsoft.Advisor;
1416
/**
1517
* Triage resource data structure.
1618
*/
19+
@removed(Versions.v2026_03_01_preview)
1720
@parentResource(TriageRecommendation)
1821
model TriageResource
1922
is Azure.ResourceManager.ProxyResource<TriageResourceProperties> {
@@ -26,6 +29,7 @@ model TriageResource
2629
}
2730

2831
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
32+
@removed(Versions.v2026_03_01_preview)
2933
interface TriageResourceOps
3034
extends Azure.ResourceManager.Legacy.LegacyOperations<
3135
{
@@ -42,6 +46,7 @@ interface TriageResourceOps
4246
> {}
4347

4448
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
49+
@removed(Versions.v2026_03_01_preview)
4550
interface TriageResources {
4651
/**
4752
* Get a triage resource for a given review and recommendation.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "58c3f667-7a62-4bfd-a658-846493e9a493",
4+
"resourceGroup": "resourceGroup",
5+
"configurationName": "default",
6+
"configContract": {
7+
"properties": {
8+
"lowCpuThreshold": "5",
9+
"duration": "7",
10+
"exclude": true,
11+
"digests": [
12+
{
13+
"name": "digestConfigName",
14+
"actionGroupResourceId": "/subscriptions/58c3f667-7a62-4bfd-a658-846493e9a493/resourceGroups/resourceGroup/providers/microsoft.insights/actionGroups/actionGroupName",
15+
"frequency": 30,
16+
"categories": [
17+
"HighAvailability",
18+
"Security",
19+
"Performance",
20+
"Cost",
21+
"OperationalExcellence"
22+
],
23+
"language": "en",
24+
"state": "Active"
25+
}
26+
]
27+
}
28+
},
29+
"api-version": "2026-03-01-preview"
30+
},
31+
"responses": {
32+
"200": {
33+
"body": {
34+
"id": "/subscriptions/58c3f667-7a62-4bfd-a658-846493e9a493/resourceGroups/resourceGroup/providers/Microsoft.Advisor/configurations/default",
35+
"type": "Microsoft.Advisor/configurations",
36+
"name": "default",
37+
"properties": {
38+
"lowCpuThreshold": "5",
39+
"duration": "7",
40+
"exclude": true,
41+
"digests": [
42+
{
43+
"name": "digestConfigName",
44+
"actionGroupResourceId": "/subscriptions/58c3f667-7a62-4bfd-a658-846493e9a493/resourceGroups/resourceGroup/providers/microsoft.insights/actionGroups/actionGroupName",
45+
"frequency": 30,
46+
"categories": [
47+
"HighAvailability",
48+
"Security",
49+
"Performance",
50+
"Cost",
51+
"OperationalExcellence"
52+
],
53+
"language": "en",
54+
"state": "Active"
55+
}
56+
]
57+
}
58+
}
59+
}
60+
},
61+
"operationId": "Configurations_CreateInResourceGroup",
62+
"title": "PutConfigurations"
63+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "58c3f667-7a62-4bfd-a658-846493e9a493",
4+
"resourceGroup": "resourceGroup",
5+
"configurationName": "default",
6+
"configContract": {
7+
"properties": {
8+
"lowCpuThreshold": "5",
9+
"duration": "7",
10+
"exclude": true,
11+
"digests": [
12+
{
13+
"name": "digestConfigName",
14+
"actionGroupResourceId": "/subscriptions/58c3f667-7a62-4bfd-a658-846493e9a493/resourceGroups/resourceGroup/providers/microsoft.insights/actionGroups/actionGroupName",
15+
"frequency": 30,
16+
"categories": [
17+
"HighAvailability",
18+
"Security",
19+
"Performance",
20+
"Cost",
21+
"OperationalExcellence"
22+
],
23+
"language": "en",
24+
"state": "Active"
25+
}
26+
]
27+
}
28+
},
29+
"api-version": "2026-03-01-preview"
30+
},
31+
"responses": {
32+
"200": {
33+
"body": {
34+
"id": "/subscriptions/58c3f667-7a62-4bfd-a658-846493e9a493/resourceGroups/resourceGroup/providers/Microsoft.Advisor/configurations/default",
35+
"type": "Microsoft.Advisor/configurations",
36+
"name": "default",
37+
"properties": {
38+
"lowCpuThreshold": "5",
39+
"duration": "7",
40+
"exclude": true,
41+
"digests": [
42+
{
43+
"name": "digestConfigName",
44+
"actionGroupResourceId": "/subscriptions/58c3f667-7a62-4bfd-a658-846493e9a493/resourceGroups/resourceGroup/providers/microsoft.insights/actionGroups/actionGroupName",
45+
"frequency": 30,
46+
"categories": [
47+
"HighAvailability",
48+
"Security",
49+
"Performance",
50+
"Cost",
51+
"OperationalExcellence"
52+
],
53+
"language": "en",
54+
"state": "Active"
55+
}
56+
]
57+
}
58+
}
59+
}
60+
},
61+
"operationId": "Configurations_CreateInSubscription",
62+
"title": "PutConfigurations"
63+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "resourceUri",
4+
"recommendationId": "2e7c72b2d7987ec224a1ebae03398b0fbdaa9a5a6a762e6fcf1c806599744b36",
5+
"name": "2e7c72b2d7987ec224a1ebae03398b0fbdaa9a5a6a762e6fcf1c806599744b45",
6+
"suppressionContract": {
7+
"properties": {
8+
"ttl": "07:00:00:00"
9+
}
10+
},
11+
"api-version": "2026-03-01-preview"
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"id": "/subscriptions/a5481ee1-95df-47d0-85d4-dd3f0dfa19bc/resourceGroups/resourceGroup/providers/Microsoft.Compute/availabilitysets/armavset/providers/Microsoft.Advisor/recommendations/2e7c72b2d7987ec224a1ebae03398b0fbdaa9a5a6a762e6fcf1c806599744b36/suppressions/HardcodedSuppressionName",
17+
"name": "HardcodedSuppressionName",
18+
"type": "Microsoft.Advisor/suppressions",
19+
"properties": {
20+
"suppressionId": "2e7c72b2d7987ec224a1ebae03398b0fbdaa9a5a6a762e6fcf1c806599744b45",
21+
"ttl": "07:00:00:00"
22+
}
23+
}
24+
},
25+
"404": {
26+
"body": {
27+
"error": {
28+
"code": "NotFound",
29+
"message": "Recommendation to be suppressed is not found. Subscription Id:{0} Recommendation Id:{1}"
30+
}
31+
}
32+
}
33+
},
34+
"operationId": "Suppressions_Create",
35+
"title": "CreateSuppression"
36+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"api-version": "2026-03-01-preview",
4+
"assessmentName": "assessment1",
5+
"subscriptionId": "00000000-1111-2222-3333-444444444444"
6+
},
7+
"responses": {
8+
"200": {},
9+
"204": {
10+
"description": "The Assessment is not found or has been deleted already."
11+
}
12+
},
13+
"operationId": "Assessments_Delete",
14+
"title": "DeleteAssessment"
15+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"name": "HardcodedSuppressionName",
4+
"api-version": "2026-03-01-preview",
5+
"recommendationId": "recommendationId",
6+
"resourceUri": "resourceUri"
7+
},
8+
"responses": {
9+
"204": {}
10+
},
11+
"operationId": "Suppressions_Delete",
12+
"title": "DeleteSuppression"
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"operationId": "123e4567-e89b-12d3-a456-426614174000",
4+
"api-version": "2026-03-01-preview",
5+
"subscriptionId": "12345678-1234-1234-1234-123456789012"
6+
},
7+
"responses": {
8+
"202": {},
9+
"204": {}
10+
},
11+
"operationId": "Recommendations_GetGenerateStatus",
12+
"title": "GetGenerateStatus"
13+
}

0 commit comments

Comments
 (0)