Script used in this tutorial is listed below. param( [string]$ResourceGroupName = "ResourceGroup", [string]$VMName = "VMname" ) # "Logging in to Azure..." Connect-AzAccount -Identity # Set the context to a specific subscription Set-AzContext -SubscriptionId "subscriptionid" # Start the VM Start-AzVM -ResourceGroupName $ResourceGroupName -Name $VMName param( [string]$ResourceGroupName = "ResourceGroup", [string]$VMName = "VMName" ) # "Logging in to Azure..." Connect-AzAccount -Identity # Set the context to a specific subscription Set-AzContext -SubscriptionId "Subscriptionid" # Stop the VM Stop-AzVM -ResourceGroupName $ResourceGroupName -Name $VMName -Force
Failed to create automation task 'test' : 'The template validation failed: 'The value for the workflow parameter 'EmailID' at line '1' and column '8405' is not provided.'.'. I have done all the steps but when i'm trying to create the task it gives me the error above any suggestion how to solve it Note: i didn't put an email in the notify me section because it's not mandatory
Script used in this tutorial is listed below.
param(
[string]$ResourceGroupName = "ResourceGroup",
[string]$VMName = "VMname"
)
# "Logging in to Azure..."
Connect-AzAccount -Identity
# Set the context to a specific subscription
Set-AzContext -SubscriptionId "subscriptionid"
# Start the VM
Start-AzVM -ResourceGroupName $ResourceGroupName -Name $VMName
param(
[string]$ResourceGroupName = "ResourceGroup",
[string]$VMName = "VMName"
)
# "Logging in to Azure..."
Connect-AzAccount -Identity
# Set the context to a specific subscription
Set-AzContext -SubscriptionId "Subscriptionid"
# Stop the VM
Stop-AzVM -ResourceGroupName $ResourceGroupName -Name $VMName -Force
Very helpful tutorial. Thanks!
You're welcome!
👍👍
Thanks!
Failed to create automation task 'test' : 'The template validation failed: 'The value for the workflow parameter 'EmailID' at line '1' and column '8405' is not provided.'.'.
I have done all the steps but when i'm trying to create the task it gives me the error above any suggestion how to solve it
Note: i didn't put an email in the notify me section because it's not mandatory
Where is the script for Start and Stop - not pasted in here?
Check the Pinned Comment for the script