-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bastion Host creation returns InvalidRequestFormat #5233
Comments
Thank you for opening this issue. I've routed it to the appropriate team that I think can help investigate it for you. |
Hi Daniel, I am a PM from the Azure Bastion team. Thank you for reporting the issue. We will take a look and circle back. |
Thanks for looking guys. I tried to raise a PR about it with the fix. This may help your team: |
@DanielMabbett I would have to look into this but these files should be auto-generated from our swagger specs. The swagger specs have these correct https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/bastionHost.json |
@DanielMabbett Is this issue resolved? Since the |
Forgive this post. I just needed to run I will check and get back to you. |
This is working now! Many thanks everyone for your help on this. Please close |
Bug Report
Bastion Host creation returns InvalidRequestFormat
import path of package in question, e.g.
.../services/compute/mgmt/2019-04-01/network
SDK version e.g.
latest
output of
go version
What happened?
When using the bastionHostsClient.CreateOrUpdate() function, you see an error:
When I marshalled the JSON, it was noticeable that the "Name" property for the BastionHostIPConfiguration was not being returned.
Looking into this further, it seems the Azure Management API is looking for this Name value. So it needs to NOT BE "READ ONLY" like the code suggests, and it needs to marshalled in.
bastionHost
and marshal it to JSON to see the cause of the issue.None.
The text was updated successfully, but these errors were encountered: