-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Invalid URI: The format of the URI could not be determined. #35526
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
Please see the stack trace of the exception - |
Hi @campionite , thank you for the feedback. |
Thank you for the quick turnaround on this @HarveyLink. |
Azure.ResourceManager.DataProtectionBackup new package released. |
Library name and version
Azure.ResourceManager.DataProtectionBackup 1.1.1
Query/Question
The error originates from DataSourceInfo.Serialization.cs(probably on Line#112 -
resourceUri = new Uri(property.Value.GetString());
)Here is the code snippet that throws the exception -
`
`
Here is another code snippet that throws the same exception.
`
`
Both the snippets provided are trying to get a BackupInstanceResource object
Based on my research, the resourceUri property that gets returned in the REST api call is not a valid Uri. In the Azure portal it shows up like this. Added placeholders to show some confidential Ids.
"resourceUri": "/subscriptions/{subscriptionId}/resourceGroups/myRg/providers/Microsoft.Storage/storageAccounts/samplestorageaccount"
Environment
Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
Version 17.2.5
The text was updated successfully, but these errors were encountered: