From 441e623d2be762f35b0cb4dfcb652c29a3530a69 Mon Sep 17 00:00:00 2001 From: Hentioe Date: Thu, 10 Dec 2020 22:06:59 +0800 Subject: Add run command related APIs --- lib/azure_ex.ex | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/azure_ex.ex') diff --git a/lib/azure_ex.ex b/lib/azure_ex.ex index 4e8b5dd..106776e 100644 --- a/lib/azure_ex.ex +++ b/lib/azure_ex.ex @@ -135,4 +135,14 @@ defmodule AzureEx do "ListByResourceGroupResources", "GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources?api-version=2020-06-01" ) + + defendpoint( + "RunCommandVirtualMachinesRunCommands", + "POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand?api-version=2020-06-01" + ) + + defendpoint( + "CreateOrUpdateVirtualMachineRunCommands", + "PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}?api-version=2020-06-01" + ) end -- cgit v1.2.3