-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Elastic] Initial GA Elastic #3921
Merged
+9,127
−0
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4eaf6ed
first generation
00Kai0 aba41ea
regen the elastic extension
00Kai0 267acc1
fix sytle
00Kai0 c6f7e48
fix recording
00Kai0 c313e96
add codeowners
00Kai0 69f1926
rename commands
00Kai0 39544df
Merge remote-tracking branch 'origin/main' into kaihui-elastic-first-gen
00Kai0 b3ee85f
update readme
00Kai0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This CODEOWNERS file contains errors …
CODEOWNERS errors
-
Unknown owner on line 3: make sure @fengzhou-msft exists and has write access to the repository
…nter_exclusions.yml @kairu-ms @fengzhou-msft
-
Unknown owner on line 5: make sure @08nholloway exists and has write access to the repository
…@zhoxing-ms @evelyn-ys @xfz11 @08nholloway
-
Unknown owner on line 5: make sure @Juliehzl exists and has write access to the repository
…dy @houk-ms @kairu-ms @jsntcy @Juliehzl @jiasli @zhoxing-ms @evelyn-ys @xfz11 @08nholloway
-
Unknown owner on line 5: make sure @fengzhou-msft exists and has write access to the repository
/src/index.json @fengzhou-msft @qwordy @houk-ms @kairu-ms @jsntcy @Juliehzl @jiasli @zhoxing-ms @evelyn-ys @xfz11 @08nholloway
-
Unknown owner on line 5: make sure @xfz11 exists and has write access to the repository
…jiasli @zhoxing-ms @evelyn-ys @xfz11 @08nholloway
-
Unknown owner on line 5: make sure @qwordy exists and has write access to the repository
…src/index.json @fengzhou-msft @qwordy @houk-ms @kairu-ms @jsntcy @Juliehzl @jiasli @zhoxing-ms @evelyn-ys @xfz11 @08nholloway
-
Unknown owner on line 5: make sure @houk-ms exists and has write access to the repository
…x.json @fengzhou-msft @qwordy @houk-ms @kairu-ms @jsntcy @Juliehzl @jiasli @zhoxing-ms @evelyn-ys @xfz11 @08nholloway
-
Unknown owner on line 7: make sure @Diego-Perez-Botero exists and has write access to the repository
/src/footprint/ @jonunezd @Diego-Perez-Botero
-
Unknown owner on line 7: make sure @jonunezd exists and has write access to the repository
/src/footprint/ @jonunezd @Diego-Perez-Botero
-
Unknown owner on line 9: make sure @tamirkamara exists and has write access to the repository
/src/image-copy/ @tamirkamara
-
Unknown owner on line 11: make sure @dannysongg exists and has write access to the repository
/src/webapp/ @panchagnula @dannysongg
-
Unknown owner on line 11: make sure @panchagnula exists and has write access to the repository
/src/webapp/ @panchagnula @dannysongg
-
Unknown owner on line 13: make sure @qwordy exists and has write access to the repository
/src/aem/ @qwordy
-
Unknown owner on line 15: make sure @wilcobmsft exists and has write access to the repository
/src/subscription/ @wilcobmsft
-
Unknown owner on line 17: make sure @Juliehzl exists and has write access to the repository
/src/alias/ @Juliehzl
-
Unknown owner on line 19: make sure @jeffrey-ace exists and has write access to the repository
/src/managementpartner/ @jeffrey-ace
-
Unknown owner on line 21: make sure @kalyanaj exists and has write access to the repository
/src/eventgrid/ @kalyanaj
-
Unknown owner on line 23: make sure @Juliehzl exists and has write access to the repository
/src/storage-preview/ @Juliehzl
-
Unknown owner on line 25: make sure @Juliehzl exists and has write access to the repository
/src/db-up/ @Juliehzl
-
Unknown owner on line 27: make sure @amsoedal exists and has write access to the repository
/src/dev-spaces/ @amsoedal
-
Unknown owner on line 29: make sure @temandr exists and has write access to the repository
/src/dms-preview/ @temandr
-
Unknown owner on line 31: make sure @alegal exists and has write access to the repository
/src/dnc/ @alegal
-
Unknown owner on line 35: make sure @alexeldeib exists and has write access to the repository
/src/application-insights/ @alexeldeib
-
Unknown owner on line 37: make sure @alexeldeib exists and has write access to the repository
/src/log-analytics/ @alexeldeib
-
Unknown owner on line 39: make sure @jeffj6123 exists and has write access to the repository
/src/mesh/ @linggengmsft @jeffj6123
-
Unknown owner on line 39: make sure @linggengmsft exists and has write access to the repository
/src/mesh/ @linggengmsft @jeffj6123
-
Unknown owner on line 41: make sure @xiangyul exists and has write access to the repository
/src/mixed-reality/ @xiangyul
-
Unknown owner on line 43: make sure @demyanenko exists and has write access to the repository
/src/resource-graph/ @demyanenko @amirhbk @chiragg4u
-
Unknown owner on line 43: make sure @amirhbk exists and has write access to the repository
…c/resource-graph/ @demyanenko @amirhbk @chiragg4u
-
Unknown owner on line 43: make sure @chiragg4u exists and has write access to the repository
…e-graph/ @demyanenko @amirhbk @chiragg4u
-
Unknown owner on line 51: make sure @pichandwork exists and has write access to the repository
/src/front-door/ @pichandwork
-
Unknown owner on line 55: make sure @xizhamsft exists and has write access to the repository
…preview/ @zqingqing1 @gtracer @xizhamsft @andyliuliming
-
Unknown owner on line 55: make sure @gtracer exists and has write access to the repository
/src/aks-preview/ @zqingqing1 @gtracer @xizhamsft @andyliuliming
-
Unknown owner on line 55: make sure @zqingqing1 exists and has write access to the repository
/src/aks-preview/ @zqingqing1 @gtracer @xizhamsft @andyliuliming
-
Unknown owner on line 57: make sure @swbae31 exists and has write access to the repository
/src/vm-repair/ @swbae31
-
Unknown owner on line 59: make sure @b-lefr exists and has write access to the repository
/src/netappfiles-preview/ @b-lefr
-
Unknown owner on line 63: make sure @fengzhou-msft exists and has write access to the repository
/src/healthcareapis/ @fengzhou-msft @iviark
-
Unknown owner on line 63: make sure @iviark exists and has write access to the repository
…ealthcareapis/ @fengzhou-msft @iviark
-
Unknown owner on line 65: make sure @guy-microsoft exists and has write access to the repository
/src/healthbot/ @guy-microsoft
-
Unknown owner on line 67: make sure @geektrainer exists and has write access to the repository
/src/hack/ @geektrainer
-
Unknown owner on line 71: make sure @peizhou298 exists and has write access to the repository
/src/spring-cloud/ @peizhou298
-
Unknown owner on line 75: make sure @farehar exists and has write access to the repository
/src/connectedmachine/ @farehar
-
Unknown owner on line 79: make sure @alphaWizard exists and has write access to the repository
…c/connectedk8s/ @akashkeshari @alphaWizard
-
Unknown owner on line 79: make sure @akashkeshari exists and has write access to the repository
/src/connectedk8s/ @akashkeshari @alphaWizard
-
Unknown owner on line 83: make sure @gautamd-ms exists and has write access to the repository
/src/maintenance/ @gautamd-ms
-
Unknown owner on line 85: make sure @mirdaki exists and has write access to the repository
/src/ai-examples/ @mirdaki
-
Unknown owner on line 87: make sure @fengzhou-msft exists and has write access to the repository
/src/notification-hub/ @fengzhou-msft
-
Unknown owner on line 91: make sure @RudraSharma93Microsoft exists and has write access to the repository
…c/support/ @mit2nil @shahbj79 @RudraSharma93Microsoft
-
Unknown owner on line 91: make sure @shahbj79 exists and has write access to the repository
/src/support/ @mit2nil @shahbj79 @RudraSharma93Microsoft
-
Unknown owner on line 91: make sure @mit2nil exists and has write access to the repository
/src/support/ @mit2nil @shahbj79 @RudraSharma93Microsoft
-
Unknown owner on line 93: make sure @qwordy exists and has write access to the repository
/src/alertsmanagement/ @qwordy
-
Unknown owner on line 95: make sure @houk-ms exists and has write access to the repository
/src/stream-analytics/ @houk-ms
-
Unknown owner on line 97: make sure @fengzhou-msft exists and has write access to the repository
/src/databricks/ @fengzhou-msft @xfz11
-
Unknown owner on line 97: make sure @xfz11 exists and has write access to the repository
…rc/databricks/ @fengzhou-msft @xfz11
-
Unknown owner on line 99: make sure @Juliehzl exists and has write access to the repository
/src/powerbidedicated/ @Juliehzl @tarostok @evelyn-ys
-
Unknown owner on line 99: make sure @tarostok exists and has write access to the repository
…c/powerbidedicated/ @Juliehzl @tarostok @evelyn-ys
-
Unknown owner on line 101: make sure @fengzhou-msft exists and has write access to the repository
/src/blueprint/ @fengzhou-msft
-
Unknown owner on line 103: make sure @Juliehzl exists and has write access to the repository
/src/storage-blob-preview/ @Juliehzl
-
Unknown owner on line 105: make sure @kairu exists and has write access to the repository
/src/logic/ @jsntcy @kairu
-
Unknown owner on line 107: make sure @bquantump exists and has write access to the repository
…rc/hardware-security-modules/ @bquantump
-
Unknown owner on line 111: make sure @limingu exists and has write access to the repository
/src/datadog/ @limingu
-
Unknown owner on line 117: make sure @YalinLi0312 exists and has write access to the repository
/src/portal/ @YalinLi0312
-
Unknown owner on line 119: make sure @xfz11 exists and has write access to the repository
/src/import-export/ @xfz11
-
Unknown owner on line 121: make sure @fengzhou-msft exists and has write access to the repository
/src/account/ @jiasli @fengzhou-msft
-
Unknown owner on line 123: make sure @anpaz-msft exists and has write access to the repository
/src/quantum/ @anpaz-msft
-
Unknown owner on line 125: make sure @fengzhou-msft exists and has write access to the repository
/src/datashare/ @fengzhou-msft
-
Unknown owner on line 127: make sure @N6UDP exists and has write access to the repository
…iter @danybeam @fengzhou-msft @N6UDP
-
Unknown owner on line 127: make sure @danybeam exists and has write access to the repository
/src/ssh/ @rlrossiter @danybeam @fengzhou-msft @N6UDP
-
Unknown owner on line 127: make sure @rlrossiter exists and has write access to the repository
/src/ssh/ @rlrossiter @danybeam @fengzhou-msft @N6UDP
-
Unknown owner on line 127: make sure @fengzhou-msft exists and has write access to the repository
…rc/ssh/ @rlrossiter @danybeam @fengzhou-msft @N6UDP
-
Unknown owner on line 129: make sure @jonathan-innis exists and has write access to the repository
…sconfiguration/ @NarayanThiru @jonathan-innis
-
Unknown owner on line 129: make sure @NarayanThiru exists and has write access to the repository
/src/k8sconfiguration/ @NarayanThiru @jonathan-innis
-
Unknown owner on line 131: make sure @jonathan-innis exists and has write access to the repository
…-configuration/ @NarayanThiru @jonathan-innis
-
Unknown owner on line 131: make sure @NarayanThiru exists and has write access to the repository
/src/k8s-configuration/ @NarayanThiru @jonathan-innis
-
Unknown owner on line 133: make sure @jonathan-innis exists and has write access to the repository
…/k8s-extension/ @NarayanThiru @jonathan-innis
-
Unknown owner on line 133: make sure @NarayanThiru exists and has write access to the repository
/src/k8s-extension/ @NarayanThiru @jonathan-innis
-
Unknown owner on line 137: make sure @astauben exists and has write access to the repository
/src/kusto/ @ilayr @orhasban @astauben
-
Unknown owner on line 137: make sure @orhasban exists and has write access to the repository
/src/kusto/ @ilayr @orhasban @astauben
-
Unknown owner on line 137: make sure @ilayr exists and has write access to the repository
/src/kusto/ @ilayr @orhasban @astauben
-
Unknown owner on line 143: make sure @Juliehzl exists and has write access to the repository
…actory/ @kairu-ms @evelyn-ys @Juliehzl
-
Unknown owner on line 147: make sure @derekbekoe exists and has write access to the repository
/src/codespaces/ @derekbekoe
-
Unknown owner on line 149: make sure @changlong-liu exists and has write access to the repository
/src/desktopvirtualization/ @changlong-liu
-
Unknown owner on line 151: make sure @houk-ms exists and has write access to the repository
…src/attestation/ @YalinLi0312 @houk-ms
-
Unknown owner on line 151: make sure @YalinLi0312 exists and has write access to the repository
/src/attestation/ @YalinLi0312 @houk-ms
-
Unknown owner on line 153: make sure @gehuan exists and has write access to the repository
/src/guestconfig/ @gehuan
-
Unknown owner on line 157: make sure @sotaneja exists and has write access to the repository
/src/maintenance/ @sotaneja
-
Unknown owner on line 161: make sure @fengzhou-msft exists and has write access to the repository
/src/cli-translator/ @houk-ms @fengzhou-msft
-
Unknown owner on line 161: make sure @houk-ms exists and has write access to the repository
/src/cli-translator/ @houk-ms @fengzhou-msft
-
Unknown owner on line 163: make sure @Juliehzl exists and has write access to the repository
/src/vmware/ @Juliehzl @zhoxing-ms
-
Unknown owner on line 167: make sure @mabenedi exists and has write access to the repository
/src/acrtransfer/ @mabenedi
-
Unknown owner on line 169: make sure @houk-ms exists and has write access to the repository
/src/securityinsight/ @houk-ms
-
Unknown owner on line 177: make sure @mjain2 exists and has write access to the repository
/src/rdbms-connect/ @mjain2 @Juliehzl
-
Unknown owner on line 177: make sure @Juliehzl exists and has write access to the repository
/src/rdbms-connect/ @mjain2 @Juliehzl
-
Unknown owner on line 181: make sure @houk-ms exists and has write access to the repository
/src/offazure/ @houk-ms
-
Unknown owner on line 183: make sure @houk-ms exists and has write access to the repository
/src/resource-mover/ @houk-ms
-
Unknown owner on line 185: make sure @vikashj exists and has write access to the repository
/src/providerhub/ @wwendyc @vikashj
-
Unknown owner on line 185: make sure @wwendyc exists and has write access to the repository
/src/providerhub/ @wwendyc @vikashj
-
Unknown owner on line 187: make sure @kavskalyan exists and has write access to the repository
…view/ @wmengmsft @MehaKaushik @kavskalyan
-
Unknown owner on line 187: make sure @MehaKaushik exists and has write access to the repository
…/cosmosdb-preview/ @wmengmsft @MehaKaushik @kavskalyan
-
Unknown owner on line 187: make sure @wmengmsft exists and has write access to the repository
/src/cosmosdb-preview/ @wmengmsft @MehaKaushik @kavskalyan
-
Unknown owner on line 193: make sure @greenms exists and has write access to the repository
/src/redisenterprise/ @greenms
-
Unknown owner on line 197: make sure @zackliu exists and has write access to the repository
/src/webpubsub/ @zackliu
-
Unknown owner on line 199: make sure @sanmishra18 exists and has write access to the repository
/src/connectedvmware/ @sanmishra18
-
Unknown owner on line 201: make sure @Juliehzl exists and has write access to the repository
/src/diskpool/ @Juliehzl
-
Unknown owner on line 203: make sure @adrianabedon exists and has write access to the repository
/src/serial-console/ @adrianabedon
-
Unknown owner on line 205: make sure @sambitratha exists and has write access to the repository
/src/dataprotection/ @sambitratha
-
Unknown owner on line 207: make sure @mkarmark exists and has write access to the repository
/src/authV2/ @mkarmark
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 |
---|---|---|
|
@@ -207,3 +207,5 @@ | |
/src/authV2/ @mkarmark | ||
|
||
/src/purview/ @kairu-ms @jsntcy | ||
|
||
/src/elastic/ @kairu-ms @jsntcy |
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,8 @@ | ||
.. :changelog: | ||
Release History | ||
=============== | ||
|
||
0.1.0 | ||
++++++ | ||
* Initial release. |
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,82 @@ | ||
# Azure CLI elastic Extension # | ||
This is the extension for elastic | ||
|
||
### How to use ### | ||
Install this extension using the below CLI command | ||
``` | ||
az extension add --name elastic | ||
``` | ||
|
||
### Included Features ### | ||
#### elastic monitor #### | ||
##### Create ##### | ||
``` | ||
az elastic monitor create --monitor-name "myMonitor" --name "myMonitor" --location "West US 2" \ | ||
--user-info "{\\"companyInfo\\":{\\"business\\":\\"Technology\\",\\"country\\":\\"US\\",\\"domain\\":\\"microsoft.com\\",\\"employeeNumber\\":\\"10000\\",\\"state\\":\\"WA\\"},\\"companyName\\":\\"Microsoft\\",\\"emailAddress\\":\\"alice@microsoft.com\\",\\"firstName\\":\\"Alice\\",\\"lastName\\":\\"Bob\\"}" \ | ||
--name "free_Monthly" --tags Environment="Dev" --resource-group "myResourceGroup" | ||
|
||
az elastic monitor wait --created --monitor-name "{myMonitor}" --resource-group "{rg}" | ||
``` | ||
##### Show ##### | ||
``` | ||
az elastic monitor show --name "myMonitor" --resource-group "myResourceGroup" | ||
``` | ||
##### List ##### | ||
``` | ||
az elastic monitor list --resource-group "myResourceGroup" | ||
``` | ||
##### Update ##### | ||
``` | ||
az elastic monitor update --name "myMonitor" --tags Environment="Dev" --resource-group "myResourceGroup" | ||
``` | ||
##### Delete ##### | ||
``` | ||
az elastic monitor delete --name "myMonitor" --resource-group "myResourceGroup" | ||
``` | ||
#### elastic monitored-resource #### | ||
##### List ##### | ||
``` | ||
az elastic monitored-resource list --monitor-name "myMonitor" --resource-group "myResourceGroup" | ||
``` | ||
#### elastic deployment-info #### | ||
##### List ##### | ||
``` | ||
az elastic deployment-info list --monitor-name "myMonitor" --resource-group "myResourceGroup" | ||
``` | ||
#### elastic tag-rule #### | ||
##### Create ##### | ||
``` | ||
az elastic tag-rule create --monitor-name "myMonitor" \ | ||
--filtering-tags name="Environment" action="Include" value="Prod" \ | ||
--filtering-tags name="Environment" action="Exclude" value="Dev" --send-aad-logs false --send-activity-logs true \ | ||
--send-subscription-logs true --resource-group "myResourceGroup" --rule-set-name "default" | ||
``` | ||
##### Show ##### | ||
``` | ||
az elastic tag-rule show --monitor-name "myMonitor" --resource-group "myResourceGroup" --rule-set-name "default" | ||
``` | ||
##### List ##### | ||
``` | ||
az elastic tag-rule list --monitor-name "myMonitor" --resource-group "myResourceGroup" | ||
``` | ||
##### Delete ##### | ||
``` | ||
az elastic tag-rule delete --monitor-name "myMonitor" --resource-group "myResourceGroup" --rule-set-name "default" | ||
``` | ||
#### elastic vm-host #### | ||
##### List ##### | ||
``` | ||
az elastic vm-host list --monitor-name "myMonitor" --resource-group "myResourceGroup" | ||
``` | ||
#### elastic vm-ingestion #### | ||
##### Detail ##### | ||
``` | ||
az elastic vm-ingestion detail --monitor-name "myMonitor" --resource-group "myResourceGroup" | ||
``` | ||
#### elastic vm-collection #### | ||
##### Update ##### | ||
``` | ||
az elastic vm-collection update --monitor-name "myMonitor" --operation-name "Add" \ | ||
--vm-resource-id "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualmachines/myVM" \ | ||
--resource-group "myResourceGroup" | ||
``` |
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,53 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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 Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=unused-import | ||
|
||
import azext_elastic._help | ||
from azure.cli.core import AzCommandsLoader | ||
|
||
|
||
class MicrosoftElasticCommandsLoader(AzCommandsLoader): | ||
|
||
def __init__(self, cli_ctx=None): | ||
from azure.cli.core.commands import CliCommandType | ||
from azext_elastic.generated._client_factory import cf_elastic_cl | ||
elastic_custom = CliCommandType( | ||
operations_tmpl='azext_elastic.custom#{}', | ||
client_factory=cf_elastic_cl) | ||
parent = super(MicrosoftElasticCommandsLoader, self) | ||
parent.__init__(cli_ctx=cli_ctx, custom_command_type=elastic_custom) | ||
|
||
def load_command_table(self, args): | ||
from azext_elastic.generated.commands import load_command_table | ||
load_command_table(self, args) | ||
try: | ||
from azext_elastic.manual.commands import load_command_table as load_command_table_manual | ||
load_command_table_manual(self, args) | ||
except ImportError as e: | ||
if e.name.endswith('manual.commands'): | ||
pass | ||
else: | ||
raise e | ||
return self.command_table | ||
|
||
def load_arguments(self, command): | ||
from azext_elastic.generated._params import load_arguments | ||
load_arguments(self, command) | ||
try: | ||
from azext_elastic.manual._params import load_arguments as load_arguments_manual | ||
load_arguments_manual(self, command) | ||
except ImportError as e: | ||
if e.name.endswith('manual._params'): | ||
pass | ||
else: | ||
raise e | ||
|
||
|
||
COMMAND_LOADER_CLS = MicrosoftElasticCommandsLoader |
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,20 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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 Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wildcard-import | ||
# pylint: disable=unused-wildcard-import | ||
# pylint: disable=unused-import | ||
from .generated._help import helps # pylint: disable=reimported | ||
try: | ||
from .manual._help import helps # pylint: disable=reimported | ||
except ImportError as e: | ||
if e.name.endswith('manual._help'): | ||
pass | ||
else: | ||
raise e |
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,20 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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 Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wildcard-import | ||
# pylint: disable=unused-wildcard-import | ||
|
||
from .generated.action import * # noqa: F403 | ||
try: | ||
from .manual.action import * # noqa: F403 | ||
except ImportError as e: | ||
if e.name.endswith('manual.action'): | ||
pass | ||
else: | ||
raise e |
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,4 @@ | ||
{ | ||
"azext.isExperimental": true, | ||
"azext.minCliCoreVersion": "2.15.0" | ||
} |
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,20 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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 Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wildcard-import | ||
# pylint: disable=unused-wildcard-import | ||
|
||
from .generated.custom import * # noqa: F403 | ||
try: | ||
from .manual.custom import * # noqa: F403 | ||
except ImportError as e: | ||
if e.name.endswith('manual.custom'): | ||
pass | ||
else: | ||
raise e |
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,12 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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 Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
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,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 Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
|
||
def cf_elastic_cl(cli_ctx, *_): | ||
from azure.cli.core.commands.client_factory import get_mgmt_service_client | ||
from azext_elastic.vendored_sdks.elastic import MicrosoftElastic | ||
return get_mgmt_service_client(cli_ctx, | ||
MicrosoftElastic) | ||
|
||
|
||
def cf_monitor(cli_ctx, *_): | ||
return cf_elastic_cl(cli_ctx).monitors | ||
|
||
|
||
def cf_monitored_resource(cli_ctx, *_): | ||
return cf_elastic_cl(cli_ctx).monitored_resources | ||
|
||
|
||
def cf_deployment_info(cli_ctx, *_): | ||
return cf_elastic_cl(cli_ctx).deployment_info | ||
|
||
|
||
def cf_tag_rule(cli_ctx, *_): | ||
return cf_elastic_cl(cli_ctx).tag_rules | ||
|
||
|
||
def cf_vm_host(cli_ctx, *_): | ||
return cf_elastic_cl(cli_ctx).vm_host | ||
|
||
|
||
def cf_vm_ingestion(cli_ctx, *_): | ||
return cf_elastic_cl(cli_ctx).vm_ingestion | ||
|
||
|
||
def cf_vm_collection(cli_ctx, *_): | ||
return cf_elastic_cl(cli_ctx).vm_collection |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please correct the content in this file.