Disk Export URL Error: AuthenticationFailed

Burns 30 Reputation points
2023-06-20T19:34:39.9866667+00:00

I am trying to download a VHD of a Virtual Machine that I migrated from a local Hyper-V host and when I access the generated SAS URL I get the following error:

<Error>
  <Code>AuthenticationFailed</Code>

  <Message>
Server failed to authenticate the request. Make sure the value of Authorization header is formed 	    correctly including the signature. RequestId:XXX Time:2023-06-20T19:08:47.5440703Z

  </Message>
  <AuthenticationErrorDetail>

  SAS identifier cannot be found for specified signed identifier

  </AuthenticationErrorDetail>
</Error>

My user has the Owner, Contributor, and Data Operator for Managed Disks roles assigned at the Subscription level (shown below), and I have enabled data access authentication mode via the documentation here: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/download-vhd?tabs=azure-portal#enable-data-access-authentication-mode

User's image

Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
668 questions
{count} vote

Accepted answer
  1. Jackson Martins 10,606 Reputation points MVP Volunteer Moderator
    2023-06-20T21:10:40.4466667+00:00

    Hi @burns

    Shared Access Signatures are time-limited. Once the end time has passed, the SAS URL will no longer work. Try to generate a new SAS URL and see if you can access the resource with that.

    Try to check the firewall on Storage Account:

    User's image

    If you enable the option "Enabled from selected virtual network and IP address" means the firewall is enabled:

    Sem título

    You also can create a custom role and give the necessary permission to download the vhd:

    Go to Subscription -> IAM -> Add -> Add Custom role:

    custom role

    Select Microsoft.Compute/disks/Action:

    custom role2

    You can also remove the authentication mode by unchecking the option when creating the URL:

    User's image

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.