Skip to content

Commit 1b72b70

Browse files
Merge pull request #220142 from jameelahmeds/fix-migrate-to-v2-resource-compute
fix SDK v2 sample code to be runable
2 parents 3e71214 + 4089f84 commit 1b72b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/machine-learning/migrate-to-v2-resource-compute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This article gives a comparison of scenario(s) in SDK v1 and SDK v2.
5151
import datetime
5252

5353
ci_basic_name = "basic-ci" + datetime.datetime.now().strftime("%Y%m%d%H%M")
54-
ci_basic = ComputeInstance(name=ci_basic_name, size="STANDARD_DS3_v2")
54+
ci_basic = ComputeInstance(name=ci_basic_name, size="STANDARD_DS3_v2", idle_time_before_shutdown_minutes="30")
5555
ml_client.begin_create_or_update(ci_basic)
5656
```
5757

0 commit comments

Comments
 (0)