how to use Deploy to a Microsoft hosted network as a network connection in azure and how to know it's name or id

Dasra Khadka 0 Reputation points
2024-07-22T14:26:01.3466667+00:00

while using azapi_resource to create a pool for azure dev box , I am trying to use the deploy to ao microsoft hosted network as a netowrk so I don't have any name for this and I tried using "default" or "" as values but nothing seems to be working. When I create a dev box pool I can use the Microsoft hostednetwork as an option and create but with terraform I can't find a way to use this.

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,156 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dasra Khadka 0 Reputation points
    2024-07-22T19:36:27.2366667+00:00

    I can see that the value of managed network is managedNetwork in the template and when I use it via terraform I am getting “error”: { │ “code”: “ValidationError”, │ “message”: “The request is not valid.”, │ “details”: [ │ { │ “code”: “AttachedNetworkConnectionNotFound”, │ “target”: “”, │ “message”: “The Network Connection could not be found. Ensure the Network Connection is attached to the Dev Center.”, │ “details”: ,

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.