Skip to content
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

[BUG] Required parameter 'storageAccountId' is missing (null). #1048

Closed
saska1234 opened this issue Feb 21, 2020 · 5 comments · Fixed by #1049
Closed

[BUG] Required parameter 'storageAccountId' is missing (null). #1048

saska1234 opened this issue Feb 21, 2020 · 5 comments · Fixed by #1049
Assignees
Labels
Compute Mgmt Issues that refer to the management plane

Comments

@saska1234
Copy link

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):

  • OS: Linux
  • IDE : IntelliJ

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.

@joshfree
Copy link
Member

@xccc-msft can you please assist?

@xseeseesee
Copy link
Contributor

@saska1234 Do you mean you are using the SDK v1.31.0 of azure-parent?

@xseeseesee xseeseesee transferred this issue from Azure/azure-sdk-for-java Feb 25, 2020
@xseeseesee xseeseesee self-assigned this Feb 25, 2020
@xseeseesee xseeseesee added the Mgmt Issues that refer to the management plane label Feb 25, 2020
@saska1234
Copy link
Author

@xccc-msft I don't think it's that one, I'm using https://mvnrepository.com/artifact/com.microsoft.azure/azure/1.31.0 .

@xseeseesee
Copy link
Contributor

@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?

@saska1234
Copy link
Author

@xccc-msft , thank you. Blob belongs to the same subscription.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compute Mgmt Issues that refer to the management plane
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants