You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@saska1234 The link you shared is the same. I transferred your issue here for tracking. I just created PR to fix this.
For your blobUri, does your blob belong to the same subscription or a different one?
Describe the bug
With the upgrade of the azure sdk to 1.31.0, we are now having the issue with creating the snapshot with the code in the snippet.
Exception or Stack Trace
Stacktrace:
java.lang.IllegalStateException: java.util.concurrent.ExecutionException: com.microsoft.azure.CloudException: Required parameter 'storageAccountId' is missing (null).: Required parameter 'storageAccountId' is missing (null).
To Reproduce
Steps to reproduce the behavior:
Try using the provided api for creating the snapshot.
Code Snippet
final Snapshot snapshot = azureClient.snapshots()
.define(SNAPSHOT_PREFIX + blobName)
.withRegion(region)
.withExistingResourceGroup(resourceGroup)
.withLinuxFromVhd(blobUri)
.create();
Expected behavior
Snapshot is created.
Setup (please complete the following information):
Additional context
I see that this issue is fixed in the azure cli (Azure/azure-cli-extensions#1172) but azure sdk for java should also support it.
The text was updated successfully, but these errors were encountered: