Azure expert: We need a script to restart Virtual Machine hosted in Azure
$30-250 USD
I përfunduar
Postuar over 2 years ago
$30-250 USD
Paguhet në dorëzim
Please read before bidding. Test included. Spam/generic bids will be deleted.
Our clients use Azure VM's loaded with our software. We need a script that we can provide our clients where they can restart a specific VM. It needs to be secure so the client only see what is needed. The individual settings (not sure what is needed) should be in a text config file. When running the script, the user should get a list of the available machines (pulled from config file) and then get a list like this
Choose a machine to restart
1. My dev
2. Marketing
3. Test test
4. Other VM name
The user would then simply press a number to restart the VM. Echo message like "[VM name] restarting. Check VM in 5 minutes"
Lastly, it needs to be secure so they don't have the Azure portal password. So potentially the script would use a secure web page as a middleman. Open to suggestions!
Config file should be in format below and have a file extension of .dzc
; semicolon at start of line is command and ignored
[Azure Credentials]
setting1=value
setting2=value
etc
[VM1 name]
setting1=value
setting2=value
etc
[VM2 name]
setting1=value
setting2=value
etc
Good luck!
I have a powershell script which can do this work easily. Please find the screenshot,
Write-Host "Remember this script will restart the VM's ." -ForegroundColor Cyan
Start-Sleep -s 1
Write-Host "Can you please tell me the VM Name ?" -ForegroundColor Cyan
Start-Sleep -s 1
Add-Type -AssemblyName [login to view URL]
$VMlist = [[login to view URL]]::InputBox('Please type VM name')
Write-Host "Great !! So I will continue with "$VMlist" vm" -ForegroundColor Yellow
Start-Sleep -s 1
Write-Host "Now you can sit back with a cup of coffee and relax . Process will notify you once the entire work is done." -ForegroundColor Cyan