-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added list-available command for addon * added list command for addon * added show command for addon * added 5 new commands and refactored code into separate files * updated version * code cleanup * added license headers * fixed flake8 errors * added help text for commands * added exclusion for long param * added test for list * added fix for error function params * added new test cases * fixed test cases and recordings * added test exclusions * added new tests that should pass in pipeline * updated formatting and tests * code quality changes * reverted code quality changes * code quality changes added back in * clearer history message * update release history * fix vendor * fix url version in test recording data * fix aks preview version * add e2e for list_available * add live only tag Co-authored-by: Ishan <t-ishanarya@microsoft.com> Co-authored-by: Tingting Liu <tilnl@microsoft.com>
- Loading branch information
1 parent
a43f1b1
commit f469ebf
Showing
29 changed files
with
16,050 additions
and
800 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# -------------------------------------------------------------------------------------------- | ||
|
||
from knack.util import CLIError | ||
from ._client_factory import cf_resource_groups | ||
|
||
|
||
def get_rg_location(ctx, resource_group_name, subscription_id=None): | ||
groups = cf_resource_groups(ctx, subscription_id=subscription_id) | ||
# Just do the get, we don't need the result, it will error out if the group doesn't exist. | ||
rg = groups.get(resource_group_name) | ||
if rg is None: | ||
raise CLIError(f"Resource group {resource_group_name} not found.") | ||
return rg.location |
Oops, something went wrong.