Hi Venkat.
Thank you for your apply!
I tried to Method 1.
First, VM was authenticated using public access.
Secondly, I add that private endpoint IP : management.azure.com
in /etc/hosts
.
Lastly, I try to create vm using azure cli but same error is still occured.
az vm restart -g mw-resource-group-2 -n testvm
(PrivateLinkAccessRestricted) Request originated from private virtual network for resource '/subscriptions/<Subscription ID>/resourceGroups/mw-resource-group-2/providers/Microsoft.Compute/virtualMachines/testvm/restart', but this resource can not be accessed from a private endpoint. To connect to this resource, please use the public network without a private endpoint.
Code: PrivateLinkAccessRestricted
Message: Request originated from private virtual network for resource '/subscriptions/
<Subscription ID>/resourceGroups/mw-resource-group-2/providers/Microsoft.Compute/virtualMachines/testvm/restart', but this resource can not be accessed from a private endpoint. To connect to this resource, please use the public network without a private endpoint.
Which commands is working correctly using private endpoint? What is resource-level operations?