Attempting to tag an existing azure public ip of an instance within a vm scaleset gives a resource not found #23395
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Network
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Bug Report
import path of package in question, e.g.
.../services/compute/mgmt/2018-06-01/compute
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5"
SDK version e.g.
master
,latest
,18.1.0
column output by
go list -m <module>
, for examplego list -m github.com/Azure/azure-sdk-for-go/sdk/azcore
.output of
go version
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.14.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5 v5.2.0
I deployed a VM scaleset with 1 instance that has both the public and private IPs created.
On calling go sdk function -
func (client *PublicIPAddressesClient) UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters TagsObject, options *PublicIPAddressesClientUpdateTagsOptions) (PublicIPAddressesClientUpdateTagsResponse, error)
,it gives the following errorOn checking the fully qualified namespace of the public IP created for the instance within the namespace, it looks like the SDK call is looking for the public IP address in a different namespace and the public IP for the instance in the VM scaleset is created in a different namespace.
/subscriptions/<identifier>/resourceGroups/<identifier>/providers/Microsoft.Compute/virtualMachineScaleSets/<identifier>/virtualMachines/0/networkInterfaces/<identifier>/ipConfigurations/<identifier>/publicIPAddresses/<identifier>
Not sure if a wrong SDK method is called here or is this a bug?
What did you expect or want to happen?
I expected the public IP belonging to the instance in the VM scaleset to be updated with all the tags i provided.
How can we reproduce it?
Using the azure golang sdk.
Please deploy a VM scaleset with 1 instance and check the public IP is assigned.
Call the method above to update the tags of the public IP address.
The tag updation fails with the error mentioned above.
Anything we should know about your environment.
N/A
The text was updated successfully, but these errors were encountered: