-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make new fileshares discoverable as protectable items (#3865)
This is a fix for this error: ``` {"error":{"code":"BMSUserErrorProtectedItemNameIncorrectFormat","message":"Protected Item name is not in the correct format."}} ``` This happens when we fail to look up the internal or system name of a fileshare. As [this TF PR](hashicorp/terraform-provider-azurerm#14238) shows, it seems that one needs tp call the pretty much undocumented /inquire API to make new fileshares discoverable to Recovery Services. One problem is that the [docs](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/[email protected]#ProtectionContainersClient.Inquire) say > Inquire - This is an async operation and the results should be tracked using location header or Azure-async-url. but the SDK provides no way that I could see to actually track the operation. The "x-ms-location" header is unaccessible and the `Inquire` method returns an empty struct. As the next best thing, I'm waiting for up to ten minutes for the fileshare to appear.
- Loading branch information
Showing
2 changed files
with
89 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters