Azure 基础 : 使用 Automation 定时开机

》一文(只要把 demo 中重启虚机的命令改为启动命令就可以了)。但是这种方式有一个缺点:我们保存在文件中的登录信息会过期。也就是说每隔一段时间都需要重新登录一遍并导出新的登录信息到文件中。

= = =Get-AutomationConnection -Name ---TenantId -ApplicationId -CertificateThumbprint -AzureRmVM -Name 'vm name' - = (! = -Error -Message = = ConvertTo-SecureString -AsPlainText - = New-Object System.Management.Automation.PSCredential , = = = = = -MailMessage -smtpServer ` -Credential ` -Usessl ` -Port 587 ` -from ` -to ` -subject ` -Body ` --Output

= = ConvertTo-SecureString -AsPlainText - = New-Object System.Management.Automation.PSCredential , = = = = = -MailMessage -smtpServer ` -Credential ` -Usessl ` -Port 587 ` -from ` -to ` -subject ` -Body ` --Output

相关文章

Microsoft云包括了Azure、PowerPlatform、Microsoft365、Git...
《WindowsAzurePlatform系列文章目录》 我们在使用AzureAPI...
微软免费使用一年的Azure虚拟机,默认提供了一个64G的磁盘,...
上篇请访问这里做一个能对标阿里云的前端APM工具(上)样本多...
一年一度的MicrosoftBuild终于来了,带来了非常非常多的新技...