diff options
author | Hentioe <me@bluerain.io> | 2020-12-10 22:06:59 +0800 |
---|---|---|
committer | Hentioe <me@bluerain.io> | 2020-12-10 22:06:59 +0800 |
commit | 441e623d2be762f35b0cb4dfcb652c29a3530a69 (patch) | |
tree | 8963e4e129d0dcf2f1ed6a81af21758d30e91f97 /lib/azure_ex.ex | |
parent | Automatic retry of token application failure (diff) |
Add run command related APIs
Diffstat (limited to 'lib/azure_ex.ex')
-rw-r--r-- | lib/azure_ex.ex | 10 |
1 files changed, 10 insertions, 0 deletions
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 |