簡體   English   中英

在啟動時在 windows azure 虛擬機中運行腳本

[英]running script at boot time in windows azure vm

我必須在配置 windows 虛擬機時運行 ansible 劇本,它應該在每次系統重啟時運行。

我沒有在 azure 虛擬機中獲得任何功能。

請建議如何實現此用例。

利用

Restart-AzureRmVM
       [-ResourceGroupName] <String>
       [-Name] <String>
       [-AsJob]
       [-DefaultProfile <IAzureContextContainer>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

https://learn.microsoft.com/en-us/powershell/module/azurerm.compute/restart-azurermvm?view=azurermps-6.13.0

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM