Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/provisionedmachine/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. :changelog:

Release History
===============
1.0.0b1
++++++
* Initial preview release.
* ``az provisionedmachine list`` - List edge machines by subscription or resource group.
* ``az provisionedmachine show`` - Get details of a specific edge machine.
* ``az provisionedmachine delete`` - Delete an edge machine.
37 changes: 37 additions & 0 deletions src/provisionedmachine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Provisioned Machine

Manage Azure Stack HCI Edge Machines using the Azure CLI.

## Commands

| Command | Description |
|---------|-------------|
| `az provisionedmachine list` | List edge machines by subscription or resource group |
| `az provisionedmachine show` | Get details of a specific edge machine |
| `az provisionedmachine delete` | Delete an edge machine |

## Examples

### List all edge machines in a subscription

```bash
az provisionedmachine list
```

### List edge machines in a resource group

```bash
az provisionedmachine list -g myResourceGroup
```

### Show an edge machine

```bash
az provisionedmachine show -n myEdgeMachine -g myResourceGroup
```

### Delete an edge machine

```bash
az provisionedmachine delete -n myEdgeMachine -g myResourceGroup
```
44 changes: 44 additions & 0 deletions src/provisionedmachine/azext_provisionedmachine/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azext_provisionedmachine._help import helps # pylint: disable=unused-import

__version__ = '1.0.0b1'


class ProvisionedMachineCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
custom_command_type = CliCommandType(
operations_tmpl='azext_provisionedmachine.custom#{}')
super().__init__(cli_ctx=cli_ctx,
custom_command_type=custom_command_type)

def load_command_table(self, args):
from azext_provisionedmachine.commands import load_command_table
from azure.cli.core.aaz import load_aaz_command_table
try:
from . import aaz
except ImportError:
aaz = None
if aaz:
load_aaz_command_table(
loader=self,
aaz_pkg_name=aaz.__name__,
args=args
)
load_command_table(self, args)
return self.command_table

def load_arguments(self, command):
from azext_provisionedmachine._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = ProvisionedMachineCommandsLoader
11 changes: 11 additions & 0 deletions src/provisionedmachine/azext_provisionedmachine/_help.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: disable=line-too-long
# pylint: disable=too-many-lines

from knack.help_files import helps # pylint: disable=unused-import
13 changes: 13 additions & 0 deletions src/provisionedmachine/azext_provisionedmachine/_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: disable=too-many-lines
# pylint: disable=too-many-statements


def load_arguments(self, _): # pylint: disable=unused-argument
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"provisionedmachine",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Stack HCI Edge Machines.
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._create import *
from ._delete import *
from ._install_os import *
from ._list import *
from ._reset_os import *
from ._show import *
Loading
Loading