Class CreateResourceGroupTask
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.operation.OperationBase
-
- com.microsoft.azure.toolkit.lib.common.task.AzureTask<ResourceGroup>
-
- com.microsoft.azure.toolkit.lib.resource.task.CreateResourceGroupTask
-
- All Implemented Interfaces:
Operation
public class CreateResourceGroupTask extends AzureTask<ResourceGroup>
Create the resource group if the specified resource group name doesn't exist: `az group create -l westus -n MyResourceGroup`
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microsoft.azure.toolkit.lib.common.task.AzureTask
AzureTask.DefaultMonitor, AzureTask.Modality, AzureTask.Monitor
-
-
Field Summary
Fields Modifier and Type Field Description private Regionregionprivate StringresourceGroupNameprivate StringsubscriptionId-
Fields inherited from interface com.microsoft.azure.toolkit.lib.common.operation.Operation
UNKNOWN_NAME
-
-
Constructor Summary
Constructors Constructor Description CreateResourceGroupTask(String subscriptionId, String resourceGroupName, Region region)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceGroupdoExecute()-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.task.AzureTask
execute, getBody, getExecutionId, getId, toString
-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.operation.OperationBase
getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.operation.Operation
getActionParent, getDescription, getEffectiveParent, getParent, getType, setParent
-
-
-
-
Method Detail
-
doExecute
public ResourceGroup doExecute()
- Overrides:
doExecutein classAzureTask<ResourceGroup>
-
-