'Azure ML: how to change the "cluster purpose" of an existing inference cluster from "dev_test" to "production"?

I have a cluster whose "cluster_purpose" was set to "dev_test". I want to change it to "production". Couldn't find anything in the documentation.



Solution 1:[1]

I have a cluster whose "cluster_purpose" was set to "dev_test". I want to change it to "production". Couldn't find anything in the documentation.

As per documentation:

  • If you do not specify the cluster purpose, by defualt production cluster is created.

But, if you want to change it manually, you can do it via ClusterPurpose:

prov_config = AksCompute.provisioning_configuration(cluster_purpose = 
AksCompute.ClusterPurpose.FAST_PROD)
 attach_config = AksCompute.attach_configuration(resource_group = resource_group,
                                        cluster_name = cluster_name,
                                       cluster_purpose = AksCompute.ClusterPurpose.FAST_PROD)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1