Using the following script to update a vm with a custom script, I got the a warning message and the command hangs forever. I don't see where the error could be.
My script would look like the following
Set-AzVMCustomScriptExtension -Location "LOCATION" -VMName "VMNAME" -Name "EXTENTIONNAME" -StorageAccountName "STOTRAGEACCOUNTNAME" -StorageAccountKey "XXXXXX" -FileName "SCRIPTNAME.ps1" -ContainerName "CONTAINERNAME"| Update-AzVM -Verbose
WARNING message :
AVERTISSEMENT : No Run File has been assigned, and the Custom Script extension will try to use the first specified File
Name as the Run File.