Put script checking if this server is running on Azure

JackofallNow
Tera Contributor

Hi,

When checking the logs in Windows OS - Servers pattern I'm seeing an issue where step 40.2.2 tries to put a script into $scriptPath path which succeeds but no path is entered. In the Debug, a null value is returned. I've attached 2 screenshots with one where it does successfully put and execute the script and the other showing a null path. This leads to ${isAzure} : value=false and therefore object_id does not get set on guest server and no relationship to the VM instance is made.

3 REPLIES 3

Niklas Peterson
Mega Sage
Mega Sage

Hi,

Is the ConfirmAzureVM.ps1 script copied to the c:\temp folder? If not, then there may be some permission issues preventing that operation.

 

Regards,
Niklas

Hi Niklas. I am currently looking down this path. It may be due to security reasons or some differences in Group Policy that prevents copying despite having T1 level admin access and full control over the folders. I have another situation where the script does execute but times out. Overall, the server gets discovered but it's failing at a crucial step that stops the VM objects getting related to the guest server.

Asen Petrov
Tera Contributor

Hi Jack,

 

Have you found what the reason is behind this?

TIA