Skip to content

Commit a2ecd95

Browse files
authored
DurableTask: New beta extension version for API version 2025-11-01 (#9369)
* DurableTask: New extension release 1.0b5 for first stable API * Update setup.py for new version * Add back deleted examples
1 parent 1df3362 commit a2ecd95

File tree

21 files changed

+91
-76
lines changed

21 files changed

+91
-76
lines changed

src/durabletask/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Release History
44
===============
55

6+
1.0.0b5
7+
+++++
8+
* Update ARM API version to first stable release `2025-11-01`
9+
610
1.0.0b4
711
+++++
812
* Adding various retention-policy commands.

src/durabletask/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ For more information on how to use this service, run the following CLI commands:
1010

1111
` az durabletask scheduler -h `
1212
` az durabletask taskhub -h `
13+
` az durabletask retention-policy -h `
1314

1415
You can create a scheduler with the following command:
1516
` az durabletask scheduler create -g "<resource-group-name>" -n "<scheduler-name>"`
@@ -33,4 +34,13 @@ Show information on a single taskhub:
3334
` az durabletask taskhub show -g <resource-group-name> -s <scheduler-name> -n <task-hub-name> `
3435

3536
Delete a taskhub:
36-
` az durabletask taskhub delete -g <resource-group-name> -s <scheduler-name> -n <task-hub-name> `
37+
` az durabletask taskhub delete -g <resource-group-name> -s <scheduler-name> -n <task-hub-name> `
38+
39+
Create a retention policy for a particular scheduler:
40+
` az durabletask retention-policy create -g <resource-group-name> --scheduler-name <scheduler-name> --default-days 30 `
41+
42+
Show a retention policy for a particular scheduler:
43+
` az durabletask retention-policy show -g <resource-group-name> --scheduler-name <scheduler-name> `
44+
45+
Delete a retention policy for a particular scheduler:
46+
` az durabletask retention-policy delete -g <resource-group-name> --scheduler-name <scheduler-name> `

src/durabletask/azext_durabletask/aaz/latest/durabletask/retention_policy/_create.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
"durabletask retention-policy create",
1616
)
1717
class Create(AAZCommand):
18-
"""Create a Retention Policy on a Durabletask Scheduler.
18+
"""Create a Retention Policy
1919
20-
:example: Create a new retention policy for a scheduler with a default retention period of 30 days.
21-
az durabletask retention-policy create -g "example-rg" --scheduler-name "example-scheduler" --retention-days 30
20+
:example: Create a new retention policy for a scheduler with a default retention period of 30 days
21+
az durabletask retention-policy create -g "example-rg" --scheduler-name "example-scheduler" --default-days 30
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2025-04-01-preview",
25+
"version": "2025-11-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}/retentionpolicies/default", "2025-04-01-preview"],
27+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}/retentionpolicies/default", "2025-11-01"],
2828
]
2929
}
3030

@@ -60,7 +60,11 @@ def _build_arguments_schema(cls, *args, **kwargs):
6060
# define Arg Group "Properties"
6161

6262
_args_schema = cls._args_schema
63-
_args_schema.retention_policies = AAZListArg()
63+
_args_schema.retention_policies = AAZListArg(
64+
options=["--retention-policies"],
65+
arg_group="Properties",
66+
help="The orchestration retention policies",
67+
)
6468

6569
retention_policies = cls._args_schema.retention_policies
6670
retention_policies.Element = AAZObjectArg()
@@ -76,7 +80,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
7680
help="The retention period in days after which the orchestration will be purged automatically",
7781
required=True,
7882
)
79-
8083
return cls._args_schema
8184

8285
def _execute_operations(self):
@@ -160,7 +163,7 @@ def url_parameters(self):
160163
def query_parameters(self):
161164
parameters = {
162165
**self.serialize_query_param(
163-
"api-version", "2025-04-01-preview",
166+
"api-version", "2025-11-01",
164167
required=True,
165168
),
166169
}

src/durabletask/azext_durabletask/aaz/latest/durabletask/retention_policy/_delete.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
confirmation="Are you sure you want to perform this operation?",
1717
)
1818
class Delete(AAZCommand):
19-
"""Delete a Retention Policy on a Durabletask Scheduler.
19+
"""Delete a Retention Policy
2020
21-
:example: Delete a Retention Policy on a Scheduler
21+
:example: Delete a Retention Policy on a Scheduler
2222
az durabletask retention-policy delete -g "example-rg" --scheduler-name "example-scheduler"
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2025-04-01-preview",
26+
"version": "2025-11-01",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}/retentionpolicies/default", "2025-04-01-preview"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}/retentionpolicies/default", "2025-11-01"],
2929
]
3030
}
3131

@@ -146,7 +146,7 @@ def url_parameters(self):
146146
def query_parameters(self):
147147
parameters = {
148148
**self.serialize_query_param(
149-
"api-version", "2025-04-01-preview",
149+
"api-version", "2025-11-01",
150150
required=True,
151151
),
152152
}

src/durabletask/azext_durabletask/aaz/latest/durabletask/retention_policy/_show.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@
1616
)
1717
class Show(AAZCommand):
1818
"""Get a Retention Policy
19-
20-
:example: Show details of a specific retention policy on a Scheduler.
21-
az durabletask retention-policy show -g "example-rg" --scheduler-name "example-scheduler"
2219
"""
2320

2421
_aaz_info = {
25-
"version": "2025-04-01-preview",
22+
"version": "2025-11-01",
2623
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}/retentionpolicies/default", "2025-04-01-preview"],
24+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}/retentionpolicies/default", "2025-11-01"],
2825
]
2926
}
3027

@@ -123,7 +120,7 @@ def url_parameters(self):
123120
def query_parameters(self):
124121
parameters = {
125122
**self.serialize_query_param(
126-
"api-version", "2025-04-01-preview",
123+
"api-version", "2025-11-01",
127124
required=True,
128125
),
129126
}

src/durabletask/azext_durabletask/aaz/latest/durabletask/retention_policy/_update.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class Update(AAZCommand):
1616
"""
1717

1818
_aaz_info = {
19-
"version": "2025-04-01-preview",
19+
"version": "2025-11-01",
2020
"resources": [
21-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}/retentionpolicies/default", "2025-04-01-preview"],
21+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}/retentionpolicies/default", "2025-11-01"],
2222
]
2323
}
2424

@@ -160,7 +160,7 @@ def url_parameters(self):
160160
def query_parameters(self):
161161
parameters = {
162162
**self.serialize_query_param(
163-
"api-version", "2025-04-01-preview",
163+
"api-version", "2025-11-01",
164164
required=True,
165165
),
166166
}
@@ -259,7 +259,7 @@ def url_parameters(self):
259259
def query_parameters(self):
260260
parameters = {
261261
**self.serialize_query_param(
262-
"api-version", "2025-04-01-preview",
262+
"api-version", "2025-11-01",
263263
required=True,
264264
),
265265
}

src/durabletask/azext_durabletask/aaz/latest/durabletask/retention_policy/_wait.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Wait(AAZWaitCommand):
2020

2121
_aaz_info = {
2222
"resources": [
23-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}/retentionpolicies/default", "2025-04-01-preview"],
23+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}/retentionpolicies/default", "2025-11-01"],
2424
]
2525
}
2626

@@ -119,7 +119,7 @@ def url_parameters(self):
119119
def query_parameters(self):
120120
parameters = {
121121
**self.serialize_query_param(
122-
"api-version", "2025-04-01-preview",
122+
"api-version", "2025-11-01",
123123
required=True,
124124
),
125125
}

src/durabletask/azext_durabletask/aaz/latest/durabletask/scheduler/_create.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class Create(AAZCommand):
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2024-10-01-preview",
25+
"version": "2025-11-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}", "2024-10-01-preview"],
27+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}", "2025-11-01"],
2828
]
2929
}
3030

@@ -101,6 +101,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
101101
options=["--sku-name"],
102102
arg_group="Sku",
103103
help="The name of the SKU",
104+
enum={"Consumption": "Consumption", "Dedicated": "Dedicated"},
104105
)
105106
return cls._args_schema
106107

@@ -185,7 +186,7 @@ def url_parameters(self):
185186
def query_parameters(self):
186187
parameters = {
187188
**self.serialize_query_param(
188-
"api-version", "2024-10-01-preview",
189+
"api-version", "2025-11-01",
189190
required=True,
190191
),
191192
}

src/durabletask/azext_durabletask/aaz/latest/durabletask/scheduler/_delete.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Delete(AAZCommand):
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2024-10-01-preview",
26+
"version": "2025-11-01",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}", "2024-10-01-preview"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers/{}", "2025-11-01"],
2929
]
3030
}
3131

@@ -146,7 +146,7 @@ def url_parameters(self):
146146
def query_parameters(self):
147147
parameters = {
148148
**self.serialize_query_param(
149-
"api-version", "2024-10-01-preview",
149+
"api-version", "2025-11-01",
150150
required=True,
151151
),
152152
}

src/durabletask/azext_durabletask/aaz/latest/durabletask/scheduler/_list.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ class List(AAZCommand):
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2024-10-01-preview",
25+
"version": "2025-11-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.durabletask/schedulers", "2024-10-01-preview"],
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers", "2024-10-01-preview"],
27+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.durabletask/schedulers", "2025-11-01"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.durabletask/schedulers", "2025-11-01"],
2929
]
3030
}
3131

@@ -112,7 +112,7 @@ def url_parameters(self):
112112
def query_parameters(self):
113113
parameters = {
114114
**self.serialize_query_param(
115-
"api-version", "2024-10-01-preview",
115+
"api-version", "2025-11-01",
116116
required=True,
117117
),
118118
}
@@ -273,7 +273,7 @@ def url_parameters(self):
273273
def query_parameters(self):
274274
parameters = {
275275
**self.serialize_query_param(
276-
"api-version", "2024-10-01-preview",
276+
"api-version", "2025-11-01",
277277
required=True,
278278
),
279279
}

0 commit comments

Comments
 (0)