AZVMExtension Error
Hi,
I'm trying to import a certificate which is stored in Key Vault. I'm using below Script and receiving error
$fileUri = @("https://name.blob.core.windows.net/wildcardcert/Certificate.PS1")
$settings = @{"fileUris" = $fileUri};
$storageAcctName = "name"
$storageKey = "/key"
$protectedSettings = @{"storageAccountName" = $storageAcctName; "storageAccountKey" = $storageKey; "commandToExecute" = "powershell -ExecutionPolicy Unrestricted -File Certificate.ps1"};
run command
Set-AzVMExtension -ResourceGroupName ResourceName
-Location "Australia East"
-VMName "name"
-Name "IIS"
-Publisher "Microsoft.Compute"
-ExtensionType "CustomScriptExtension"
-TypeHandlerVersion "1.10"
-Settings $settings
-ProtectedSettings $protectedSettings;
Error: