Hi, I've encountered a few issues when trying to user resource locks.
I believe the Get function should be called GetAtSubscriptionLevel, looking at the code it performs a Get for locks under the subscription scope.
This function doesn't exist, I can't see any other functions to use for this purpose instead.
parentResourcePath paramThe parentResourcePath path param is used in the CreateOrUpdateAtResourceLevel function, but I don't understand which part of a resource ID this refers to.
/subscriptions/abc-def/resourceGroups/res-group-1/providers/Microsoft.Storage/storageAccounts/storage-account
resourceGroupName = res-group
resourceProviderNamespace = Microsoft.Storage
parentResourcePath = ???
resourceType = storageAccounts
resourceName = storage-account
Hello @pmcatominey !
Thanks for reporting the missing functions. I already sent a PR to the azure-rest-api-specs repo, so the SDK can be regenerated later.
The parentResourcePath parameter is to be used when you need some extra stuff in the path... For example SQL Databases. For other resources you can just pass an empty string without problems.
Hi @mcardosos
Thanks for sending the PR to the specs repo!
Would it be possible to reopen this issue until the fix has landed in the SDK?
The above was released with version v8.0.0-beta.
Most helpful comment
The above was released with version
v8.0.0-beta.