Hi all, I hope some kind soul here can help me. I ...
# azure
s
Hi all, I hope some kind soul here can help me. I am trying to create one Azure machine learning compute instance (the docs are here https://www.pulumi.com/registry/packages/azure-native/api-docs/machinelearningservices/machinelearningcompute/#create-an-computeinstance-compute) Here is the code (every resource needed for this compute instance has been successfully created beforehand): compute = azure_native.machinelearningservices.MachineLearningCompute( resource_name="kompjuter", compute_name="komputer", resource_group_name=rg.name, location=rg.location, workspace_name=workspace.name, properties=azure_native.machinelearningservices.ComputeInstanceArgs( compute_type="ComputeInstance", # Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role. properties=azure_native.machinelearningservices.ComputeInstancePropertiesArgs( application_sharing_policy="Personal", compute_instance_authorization_type="personal", # setup_scripts= subnet=vmsubnet.id, vm_size="Standard_D8_v4", personal_compute_instance_settings=azure_native.machinelearningservices.PersonalComputeInstanceSettingsArgs( assigned_user=azure_native.machinelearningservices.AssignedUserArgs( object_id="", tenant_id="", ) ), ssh_settings=azure_native.machinelearningservices.ComputeInstanceSshSettingsArgs( ssh_public_access="Disabled", ) ) ) ) The error I am getting is this: azure-nativemachinelearningservicesMachineLearningCompute (kompjuter): error: Code="UserError" Message="The request format was invalid. Details: {0} (Parameter 'Error converting value \"/subscriptions/SUBSCRIPTION_ID/resourceGroups/ml-test/providers/Microsoft.Network/virtualNetworks/mltestnet/subnets/vmsubnet\" to type 'Microsoft.MachineLearning.Common.BatchAIClient.ResourceId'. Path 'properties.subnet', line 1, position 520.')" Details=[] As far as I can tell I am providing the right ID for the subnet, the docs (what little there is) use the same id, and that crappy Pulumi "AI" is of no help as it's either giving the same answer as the docs or unusable junk.