How am I suppose to complete - Exercise - Use shared access signatures to delegate access to Azure Storage

Calum Mckinlay 0 Reputation points
2024-09-18T22:53:50.5466667+00:00

Exercise - Use shared access signatures to delegate access to Azure Storage

The exercise could not be completed after many attempts I realized there was an incompatibility. When trying to follow the exercise after trying to run to program it will not complete as the version used in the exercise does not match the version used by Powershell.

This question is related to the following Learning Module

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,730 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pradeep M 3,840 Reputation points Microsoft Vendor
    2024-09-19T06:35:48.9+00:00

    Hi Calum Mckinlay,

    I understand you're facing a .NET version mismatch in the Azure sandbox. Here’s how to resolve it:   

    If you can't install .NET 7.0, change your project to target .NET 8.0: 

    1.Access Cloud Shell: 

    Open Azure Sandbox 

    Launch Cloud Shell. 

    2.Navigate to Your Project: 

    cd ~/sas  
    
    

    3.Open the .csproj File: 

    code *.csproj
    
    

    4.Update the <TargetFramework>: Change this line: 

    <TargetFramework>net7.0</TargetFramework>
    
    

    to: 

    <TargetFramework>net8.0</TargetFramework>
    
    

    6.Save the Changes: After making the modification, save the file by pressing Ctrl + S or using the file menu. 

    7.Update gateway.json: Ensure that any relevant entries in gateway.json are also updated to match the new .NET version. 

     8.Rebuild and run your app: 

    dotnet build
    dotnet run
    
    

    If these steps are helpful, please click "Upvote" and "Accept Answer" on this post. 

    If you continue to experience issues, please provide screenshots or additional details in the comments, and we will be happy to assist further. 

    Thank you. 

    0 comments No comments

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.