Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial release of managed devops pools #7351

Merged
merged 9 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
rename the extension
  • Loading branch information
ajaykn committed Mar 7, 2024
commit 955867ababb5a0b807a0b262081837e25f2f3f10
File renamed without changes.
14 changes: 7 additions & 7 deletions src/devopsinfrastructure/README.md → src/mdp/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Azure CLI DevOpsInfrastructure Extension #
This is an extension to Azure CLI to manage [DevOpsInfrastructure resources](https://aka.ms/mdp-docs).
# Azure CLI Managed DevOps Pools Extension #
This is an extension to Azure CLI to manage [Managed DevOps Pools resources](https://aka.ms/mdp-docs).

### How to use ###
Install this extension using the below CLI command
``` sh
az extension add --name dev-ops-infrastructure
az extension add --name mdp
```

### Usage ###
See [Managed DevOps Pools](https://learn.microsoft.com/cli/azure/devopsinfrastructure?view=azure-cli-latest)

#### devcenter pool ####
Manage resources with Managed DevOps Pools/
Manage resources with Managed DevOps Pools
``` sh
az dev-ops-infrastructure pool
az mdp pool
```

### Update ###
Update this extension using the below CLI command
``` sh
az extension update --name dev-ops-infrastructure
az extension update --name mdp
```
### Uninstall ###
Run `az extension list` to see if the extension is installed.
Expand All @@ -28,5 +28,5 @@ Run `az --version` to see the current verion of the extension.

To remove the extension use the below CLI command
``` sh
az extension remove --name dev-ops-infrastructure
az extension remove --name mdp
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
# --------------------------------------------------------------------------------------------

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


class DevopsinfrastructureCommandsLoader(AzCommandsLoader):
class MdpCommandsLoader(AzCommandsLoader):

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

def load_command_table(self, args):
from azext_devopsinfrastructure.commands import load_command_table
from azext_mdp.commands import load_command_table
from azure.cli.core.aaz import load_aaz_command_table
try:
from . import aaz
Expand All @@ -35,8 +35,8 @@ def load_command_table(self, args):
return self.command_table

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


COMMAND_LOADER_CLS = DevopsinfrastructureCommandsLoader
COMMAND_LOADER_CLS = MdpCommandsLoader
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


@register_command_group(
"dev-ops-infrastructure",
"mdp",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@


@register_command_group(
"dev-ops-infrastructure pool",
"mdp pool",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage resources of Managed DevOps pools
"""Manage a pool resource
"""
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


@register_command(
"dev-ops-infrastructure pool create",
"mdp pool create",
is_preview=True,
)
class Create(AAZCommand):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


@register_command(
"dev-ops-infrastructure pool delete",
"mdp pool delete",
is_preview=True,
confirmation="Are you sure you want to perform this operation?",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


@register_command(
"dev-ops-infrastructure pool list",
"mdp pool list",
is_preview=True,
)
class List(AAZCommand):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


@register_command(
"dev-ops-infrastructure pool show",
"mdp pool show",
is_preview=True,
)
class Show(AAZCommand):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


@register_command(
"dev-ops-infrastructure pool update",
"mdp pool update",
is_preview=True,
)
class Update(AAZCommand):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


@register_command(
"dev-ops-infrastructure pool wait",
"mdp pool wait",
)
class Wait(AAZWaitCommand):
"""Place the CLI in a waiting state until a condition is met.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
from azure.cli.testsdk import *


class DevopsinfrastructureScenario(ScenarioTest):
class MdpScenario(ScenarioTest):
# TODO: add tests here
pass
File renamed without changes.
8 changes: 4 additions & 4 deletions src/devopsinfrastructure/setup.py → src/mdp/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
HISTORY = f.read()

setup(
name='devopsinfrastructure',
name='mdp',
version=VERSION,
description='Microsoft Azure Command-Line Tools Devopsinfrastructure Extension.',
description='Microsoft Azure Command-Line Tools Mdp Extension.',
long_description=README + '\n\n' + HISTORY,
license='MIT',
author='Microsoft Corporation',
author_email='azpycli@microsoft.com',
url='https://github.com/Azure/azure-cli-extensions/tree/main/src/devopsinfrastructure',
url='https://github.com/Azure/azure-cli-extensions/tree/main/src/mdp',
classifiers=CLASSIFIERS,
packages=find_packages(exclude=["tests"]),
package_data={'azext_devopsinfrastructure': ['azext_metadata.json']},
package_data={'azext_mdp': ['azext_metadata.json']},
install_requires=DEPENDENCIES
)
Loading