AzureFileCopyV4 failed when uploading to Azure Storage Static Website "$web"

I was able to get it working by creating a variable with the $web container. This will prevent it from being read as a token.

task: AzureCLI@2
  displayName: Azure CLI File Copy
  inputs:
    azureSubscription: {subscription}
    scriptType: ps
    scriptLocation: inlineScript
    inlineScript: |
      $Container = '$web'
      az storage copy -s $(System.ArtifactsDirectory)/{your files}/*.* --destination-account-name {accountname} --destination-container $Container --recursive