• /
  • EnglishEspañolFrançais日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

英語版と翻訳版に矛盾がある場合は、英語版が優先されます。詳細については、このページを参照してください。

問題を作成する

Azure仮想マシンを再起動する

|View as Markdown (English)

Azure仮想マシン(VM)アクションを使用すると、ワークフローから直接Azure VMのライフサイクルを管理できます。

仮想マシンを再起動する

このアクションは、Azure 計算 VM - Restart REST APIを使用してAzure VMを再起動します。

入力

タイプ

説明

clientId

弦

Required. An Azure Service Principal clientID. See how to register an Azure app. Must be passed as a secret.

clientSecret

弦

Required. An Azure Service Principal clientSecret. See how to register an Azure app. Must be passed as a secret.

tenantId

弦

必須。Azureテナント識別子。シークレットとして渡すことができます。

subscriptionId

弦

必須。Azureサブスクリプション識別子(例:"12345678-1234-1234-1234-123456789abc")。

resourceGroupName

弦

必須。仮想マシンを含むリソースグループの名前。例:"my-demo-rg"。

vmName

弦

必須。再起動する仮想マシンの名前。例:"my-demo-vm"。

selectors

リスト

オプション。レスポンスから特定の値を抽出するために使用されるセレクターのリスト。例:[{"name": "statusCode", "expression": ".response.status_code"}]。

出力

タイプ

説明

success

ブール値

success: true | false

errorMessage

弦

失敗の理由をメッセージとして表示します。

response

オブジェクト

<azure api body response>。詳細については、Azure 計算 VM - Restart - REST APIを参照してください。

name: azure-restart-vm
steps:
- name: azure_vm_restart_1
type: action
action: azure.vm.restart
version: 1
inputs:
clientId: ${{ :secrets:my-client-id }}
clientSecret: ${{ :secrets:my-client-secret }}
tenantId: ${{ :secrets:my-tenant-id }}
subscriptionId: "12345678-1234-1234-1234-123456789abc"
resourceGroupName: "my-demo-rg"
vmName: "my-demo-vm"
selectors:
- name: statusCode
expression: ".response.status_code"
Copyright © 2026 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.