@@ -488,14 +488,11 @@ storage_account_parameters = StorageAccountCreateParameters(
488
488
sku = Sku(name = " Standard_LRS" ), kind = " Storage" , location = workspace_location
489
489
)
490
490
491
- poller = storage_client.storage_accounts.begin_create(
491
+ storage_account = storage_client.storage_accounts.begin_create(
492
492
resource_group_name = resource_group,
493
493
account_name = storage_account_name,
494
494
parameters = storage_account_parameters,
495
- )
496
- poller.wait()
497
-
498
- storage_account = poller.result()
495
+ ).result()
499
496
```
500
497
501
498
Next, create the blob container in the storage account:
@@ -555,14 +552,11 @@ storage_account_parameters = StorageAccountCreateParameters(
555
552
sku = Sku(name = " Standard_LRS" ), kind = " Storage" , location = workspace_location
556
553
)
557
554
558
- poller = storage_client.storage_accounts.begin_create(
555
+ storage_account = storage_client.storage_accounts.begin_create(
559
556
resource_group_name = resource_group,
560
557
account_name = storage_account_name,
561
558
parameters = storage_account_parameters,
562
- )
563
- poller.wait()
564
-
565
- storage_account = poller.result()
559
+ ).result()
566
560
```
567
561
568
562
Next, create the blob container in the storage account:
@@ -635,7 +629,7 @@ If you encounter any issues, see [Troubleshooting online endpoints deployment an
635
629
When you create an online endpoint, a system-assigned managed identity is created for the endpoint by default.
636
630
637
631
``` python
638
- endpoint = ml_client.online_endpoints.begin_create_or_update(endpoint)
632
+ endpoint = ml_client.online_endpoints.begin_create_or_update(endpoint).result()
639
633
```
640
634
641
635
Check the status of the endpoint via the details of the deployed endpoint object with the following code:
@@ -670,7 +664,7 @@ endpoint = ManagedOnlineEndpoint(
670
664
),
671
665
)
672
666
673
- ml_client.online_endpoints.begin_create_or_update(endpoint)
667
+ ml_client.online_endpoints.begin_create_or_update(endpoint).result()
674
668
```
675
669
676
670
Check the status of the endpoint via the details of the deployed endpoint object with the following code:
@@ -954,7 +948,7 @@ To check the init method output, see the deployment log with the following code.
954
948
First, create the deployment:
955
949
956
950
``` python
957
- deployment = ml_client.online_deployments.begin_create_or_update(deployment)
951
+ deployment = ml_client.online_deployments.begin_create_or_update(deployment).result()
958
952
```
959
953
960
954
Once deployment completes, check its status and confirm its identity details:
@@ -980,7 +974,7 @@ Now that the deployment is confirmed, set the traffic to 100%:
980
974
981
975
``` python
982
976
endpoint.traffic = {str (deployment.name): 100 }
983
- ml_client.begin_create_or_update(endpoint)
977
+ ml_client.begin_create_or_update(endpoint).result()
984
978
```
985
979
986
980
# [ User-assigned (Python)] ( #tab/user-identity-python )
@@ -994,7 +988,7 @@ deployment.environment_variables['UAI_CLIENT_ID'] = uai_client_id
994
988
Now, create the deployment:
995
989
996
990
``` python
997
- deployment = ml_client.online_deployments.begin_create_or_update(deployment)
991
+ deployment = ml_client.online_deployments.begin_create_or_update(deployment).result()
998
992
```
999
993
1000
994
Once deployment completes, check its status and confirm its identity details:
@@ -1019,7 +1013,7 @@ Now that the deployment is confirmed, set the traffic to 100%:
1019
1013
1020
1014
``` python
1021
1015
endpoint.traffic = {str (deployment.name): 100 }
1022
- ml_client.begin_create_or_update(endpoint)
1016
+ ml_client.begin_create_or_update(endpoint).result()
1023
1017
```
1024
1018
1025
1019
---
0 commit comments