Answered by:
Access the virtual Network list using Windows azure REST API

Question
-
I want to access the virtual Network list using Windows azure REST API and subscription id in this url
https://example.core.com:30005/<subscription-id>/services/networking/virtualnetwork
but i did not get any response from this service request. Please let me know if there is another way to access the virtual networks with their full details or there is any wrong parameter in above url.
Answers
-
Hi,
Do you mean list Virtual Network Sites? If that, please refer to http://msdn.microsoft.com/en-us/library/windowsazure/jj157185.aspx for more details, in this article, we also see the response body.
Hope this helps
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Marked as answer by Jambor yaoMicrosoft employee, Moderator Monday, March 17, 2014 1:14 AM
-
Hi,
Sorry for my delay.
I try to use rest API to list Virtual Network Sites in my local, it works fine, and returns request body the same as the link that was provided in my first post. The request body contains all networks that were listed in manage portal.
From your error message “the subscription is not allowed to access the resource provider”, I suggest you check your token, make sure your http request was certified.
Best Regards
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Marked as answer by Jambor yaoMicrosoft employee, Moderator Monday, March 17, 2014 1:14 AM
All replies
-
Hi,
Do you mean list Virtual Network Sites? If that, please refer to http://msdn.microsoft.com/en-us/library/windowsazure/jj157185.aspx for more details, in this article, we also see the response body.
Hope this helps
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Marked as answer by Jambor yaoMicrosoft employee, Moderator Monday, March 17, 2014 1:14 AM
-
Thanks Jambor for replying.
I have windows Azure pack setup in my lab on windows server 2012 along with System center and VMM.
I'm succeeded in registering the user to azure using service management api and subscribed the user to the plan using service management api. Now in the above mentioned wizard steps I have to show virtual networks available for that subscribed plan. So I used the below URL
https://example.core.com:30005/<subscription-id>/services/networking/virtualnetwork
I passed the user plan subscription Id in the url and passed the following in the header: Token, Principal id and Content type
I get the following Response:
http://screencast.com/t/G3ppDllWskM
Can you please tell me what wrong I'm doing. I'm stuck here.
I will really appreciate for the help
Thanks -
Hi,
Sorry for my delay.
I try to use rest API to list Virtual Network Sites in my local, it works fine, and returns request body the same as the link that was provided in my first post. The request body contains all networks that were listed in manage portal.
From your error message “the subscription is not allowed to access the resource provider”, I suggest you check your token, make sure your http request was certified.
Best Regards
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Marked as answer by Jambor yaoMicrosoft employee, Moderator Monday, March 17, 2014 1:14 AM
-
We are also received this exception through using the Ruby SDK against the WAP Tenant API (:30006). Management certificates are imported into Azure and the API returns a 403 ResourceProviderNotRegisteredForSubscription.
Downloading the publishsettings file and using that with the SDK does not seem to work either, resulting in the same error. Powershell commands don't give much of a debug.
This error doesn't seem to be documented anywhere in the WAP documentation, so it's a worry why it's returning it.
BPA with Azure returns no Errors.- Edited by JacobEvans Friday, May 23, 2014 3:23 AM
-