Currently I am trying to create Virtual Network using the GoLang code:
client := network.NewVirtualNetworksClient(subscriptionID)
var parameters network.VirtualNetwork
c := make(<-chan struct{})
c1, err := client.CreateOrUpdate(resourceGroupName, virtualNetworkName, parameters, c)
utils.Info.Println(err.Error())
utils.Info.Println(c1)
But the code isn't working fine. It throws the following exception:
Failure sending request: StatusCode=401 -- Original Error: Long running operation terminated with status 'Failed': Code="AuthenticationFailed" Message="Authentication failed. The 'Authorization' header is missing."
Your help will be highly appreciated.