Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 760 Bytes

Demo-scharp.md

File metadata and controls

26 lines (17 loc) · 760 Bytes

AZ-204 Demo: Retry Policy

In the script you will demonstrate code to get access to storage account with using retry attempt.

Before delivery:

  • update Program.cs file with connection string to your storage account

In class:

  1. Open in VS code folder CSharp
  2. Demonstrate code and explain the recursion.
  3. Use following commands to update firewall settings in Azure Storage Account.
az storage account update  --name "az204egsubdemo" --default-action Deny
  1. Run the code and demonstrate it CANNOT access to storage account.

  2. Run following command to enable access and run the code again

az storage account update  --name "az204egsubdemo" --default-action Allow
  1. Now the you should get access from first attempt.