Skip to content

Commit c9948da

Browse files
author
SDK Automation
committed
Generated from 252aae51d01c13bd9f5f3215a5770e7a2c9e6213
Update readme for onboard autorest.schema to sdkautomation
1 parent 44ed22a commit c9948da

File tree

24 files changed

+1639
-1612
lines changed

24 files changed

+1639
-1612
lines changed

src/guestconfig/HISTORY.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.. :changelog:
2-
3-
Release History
4-
===============
5-
6-
0.1.0
7-
++++++
8-
* Initial release.
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
0.1.0
7+
++++++
8+
* Initial release.

src/guestconfig/README.md

Lines changed: 5 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,5 @@
1-
Microsoft Azure CLI 'guestconfig' Extension
2-
==========================================
3-
4-
This package is for the 'guestconfig' extension.
5-
i.e. 'az guestconfig'
6-
7-
## Azure CLI Guest Configuration Extension ##
8-
9-
Azure Policy Guest Configuration provides auditing Azure virtual machines
10-
and Arc connected servers.
11-
The commands below return compliance status, detailed compliance reasons,
12-
and compliance status history.
13-
For more information, please visit: https://aka.ms/gcpol.
14-
15-
### How to use ###
16-
17-
Install this extension using the below CLI command
18-
```
19-
az extension add --name guestconfig
20-
```
21-
22-
### Included Features
23-
24-
#### Azure Policy Guest Configuration assignments:
25-
26-
Provide details about the Guest Configuration assignments that have been created.
27-
These Azure resources represent each of the scenarios
28-
that will be audited inside the Azure virtual machine.
29-
30-
*Examples:*
31-
32-
```
33-
az guestconfig guest-configuration-assignment show
34-
--name "{GuestConfigurationAssignment}"
35-
--resource-group "{ResourceGroup}"
36-
--vm-name "{VMName}"
37-
```
38-
39-
```
40-
az guestconfig guest-configuration-assignment list
41-
--resource-group "{ResourceGroup}"
42-
--vm-name "{VMName}"
43-
```
44-
45-
#### Azure Policy Guest Configuration reports:
46-
47-
Returns detailed compliance reports
48-
from Guest Configuration for Azure virtual machines.
49-
The detailed reports include setting-by-setting information collected
50-
inside the machine that determines whether
51-
the Azure Policy is compliant or not-compliant.
52-
53-
*Examples:*
54-
55-
```
56-
az guestconfig guest-configuration-assignment-report show
57-
--guest-configuration-assignment-name "{GuestConfigurationAssignment}"
58-
--report-id "{ReportId}"
59-
--resource-group "{ResourceGroup}"
60-
--vm-name "{VMName}"
61-
```
62-
63-
```
64-
az guestconfig guest-configuration-assignment-report list
65-
--guest-configuration-assignment-name "{GuestConfigurationAssignment}"
66-
--resource-group "{ResourceGroup}"
67-
--vm-name "{VMName}"
68-
```
69-
70-
#### ARC Hybrid Machine Guest Configuration assignments:
71-
72-
Provide details about the Guest Configuration assignments that have been created.
73-
These Azure resources represent each of the scenarios
74-
that will be audited inside the Arc connected server.
75-
76-
*Examples:*
77-
```
78-
az guestconfig guest-configuration-hcrp-assignment show
79-
--guest-configuration-assignment-name "{GuestConfigurationAssignment}"
80-
--resource-group "{ResourceGroup}"
81-
--machine-name "{MachineName}"
82-
```
83-
84-
```
85-
az guestconfig guest-configuration-hcrp-assignment list
86-
--resource-group "{ResourceGroup}"
87-
--machine-name "{MachineName}"
88-
```
89-
90-
#### ARC Hybrid Machine Guest Configuration reports:
91-
92-
Returns detailed compliance reports
93-
from Guest Configuration for Arc connected servers.
94-
The detailed reports include setting-by-setting information collected
95-
inside the machine that determines whether
96-
the Azure Policy is compliant or not-compliant.
97-
98-
*Examples:*
99-
100-
```
101-
az guestconfig guest-configuration-hcrp-assignment-report show
102-
--guest-configuration-assignment-name "{GuestConfigurationAssignment}"
103-
--resource-group "{ResourceGroup}"
104-
--machine-name "{MachineName}"
105-
--report-id "{ReportId}"
106-
```
107-
108-
```
109-
az guestconfig guest-configuration-hcrp-assignment-report list
110-
--guest-configuration-assignment-name "{GuestConfigurationAssignment}"
111-
--resource-group "{ResourceGroup}"
112-
--machine-name "{MachineName}"
113-
```
114-
115-
If you have issues, please give feedback by opening an issue at https://github.com/Azure/azure-cli-extensions/issues.
1+
Microsoft Azure CLI 'guestconfig' Extension
2+
==========================================
3+
4+
This package is for the 'guestconfig' extension.
5+
i.e. 'az guestconfig'
Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
# --------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
3-
# Licensed under the MIT License. See License.txt in the project root for
4-
# license information.
5-
#
6-
# Code generated by Microsoft (R) AutoRest Code Generator.
7-
# Changes may cause incorrect behavior and will be lost if the code is
8-
# regenerated.
9-
# --------------------------------------------------------------------------
10-
11-
from azure.cli.core import AzCommandsLoader
12-
from azext_guestconfig.generated._help import helps # pylint: disable=unused-import
13-
14-
15-
class GuestConfigurationClientCommandsLoader(AzCommandsLoader):
16-
17-
def __init__(self, cli_ctx=None):
18-
from azure.cli.core.commands import CliCommandType
19-
from azext_guestconfig.generated._client_factory import cf_guestconfig
20-
guestconfig_custom = CliCommandType(
21-
operations_tmpl='azext_guestconfig.custom#{}',
22-
client_factory=cf_guestconfig)
23-
parent = super(GuestConfigurationClientCommandsLoader, self)
24-
parent.__init__(cli_ctx=cli_ctx, custom_command_type=guestconfig_custom)
25-
26-
def load_command_table(self, args):
27-
from azext_guestconfig.generated.commands import load_command_table
28-
load_command_table(self, args)
29-
try:
30-
from azext_guestconfig.manual.commands import load_command_table as load_command_table_manual
31-
load_command_table_manual(self, args)
32-
except ImportError:
33-
pass
34-
return self.command_table
35-
36-
def load_arguments(self, command):
37-
from azext_guestconfig.generated._params import load_arguments
38-
load_arguments(self, command)
39-
try:
40-
from azext_guestconfig.manual._params import load_arguments as load_arguments_manual
41-
load_arguments_manual(self, command)
42-
except ImportError:
43-
pass
44-
45-
46-
COMMAND_LOADER_CLS = GuestConfigurationClientCommandsLoader
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
11+
from azure.cli.core import AzCommandsLoader
12+
from azext_guestconfig.generated._help import helps # pylint: disable=unused-import
13+
14+
15+
class GuestConfigurationClientCommandsLoader(AzCommandsLoader):
16+
17+
def __init__(self, cli_ctx=None):
18+
from azure.cli.core.commands import CliCommandType
19+
from azext_guestconfig.generated._client_factory import cf_guestconfig
20+
guestconfig_custom = CliCommandType(
21+
operations_tmpl='azext_guestconfig.custom#{}',
22+
client_factory=cf_guestconfig)
23+
parent = super(GuestConfigurationClientCommandsLoader, self)
24+
parent.__init__(cli_ctx=cli_ctx, custom_command_type=guestconfig_custom)
25+
26+
def load_command_table(self, args):
27+
from azext_guestconfig.generated.commands import load_command_table
28+
load_command_table(self, args)
29+
try:
30+
from azext_guestconfig.manual.commands import load_command_table as load_command_table_manual
31+
load_command_table_manual(self, args)
32+
except ImportError:
33+
pass
34+
return self.command_table
35+
36+
def load_arguments(self, command):
37+
from azext_guestconfig.generated._params import load_arguments
38+
load_arguments(self, command)
39+
try:
40+
from azext_guestconfig.manual._params import load_arguments as load_arguments_manual
41+
load_arguments_manual(self, command)
42+
except ImportError:
43+
pass
44+
45+
46+
COMMAND_LOADER_CLS = GuestConfigurationClientCommandsLoader
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# --------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
3-
# Licensed under the MIT License. See License.txt in the project root for
4-
# license information.
5-
#
6-
# Code generated by Microsoft (R) AutoRest Code Generator.
7-
# Changes may cause incorrect behavior and will be lost if the code is
8-
# regenerated.
9-
# --------------------------------------------------------------------------
10-
# pylint: disable=wildcard-import
11-
# pylint: disable=unused-wildcard-import
12-
13-
from .generated.action import * # noqa: F403
14-
try:
15-
from .manual.action import * # noqa: F403
16-
except ImportError:
17-
pass
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
# pylint: disable=wildcard-import
11+
# pylint: disable=unused-wildcard-import
12+
13+
from .generated.action import * # noqa: F403
14+
try:
15+
from .manual.action import * # noqa: F403
16+
except ImportError:
17+
pass
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
2-
"azext.isExperimental": true,
3-
"azext.minCliCoreVersion": "2.3.1"
1+
{
2+
"azext.isExperimental": true,
3+
"azext.minCliCoreVersion": "2.3.1"
44
}
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# --------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
3-
# Licensed under the MIT License. See License.txt in the project root for
4-
# license information.
5-
#
6-
# Code generated by Microsoft (R) AutoRest Code Generator.
7-
# Changes may cause incorrect behavior and will be lost if the code is
8-
# regenerated.
9-
# --------------------------------------------------------------------------
10-
# pylint: disable=wildcard-import
11-
# pylint: disable=unused-wildcard-import
12-
13-
from .generated.custom import * # noqa: F403
14-
try:
15-
from .manual.custom import * # noqa: F403
16-
except ImportError:
17-
pass
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
# pylint: disable=wildcard-import
11+
# pylint: disable=unused-wildcard-import
12+
13+
from .generated.custom import * # noqa: F403
14+
try:
15+
from .manual.custom import * # noqa: F403
16+
except ImportError:
17+
pass
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# coding=utf-8
2-
# --------------------------------------------------------------------------
3-
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for
5-
# license information.
6-
#
7-
# Code generated by Microsoft (R) AutoRest Code Generator.
8-
# Changes may cause incorrect behavior and will be lost if the code is
9-
# regenerated.
10-
# --------------------------------------------------------------------------
11-
12-
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
# --------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
3-
# Licensed under the MIT License. See License.txt in the project root for
4-
# license information.
5-
#
6-
# Code generated by Microsoft (R) AutoRest Code Generator.
7-
# Changes may cause incorrect behavior and will be lost if the code is
8-
# regenerated.
9-
# --------------------------------------------------------------------------
10-
11-
12-
def cf_guestconfig(cli_ctx, *_):
13-
from azure.cli.core.commands.client_factory import get_mgmt_service_client
14-
from ..vendored_sdks.guestconfig import GuestConfigurationClient
15-
return get_mgmt_service_client(cli_ctx, GuestConfigurationClient)
16-
17-
18-
def cf_guest_configuration_assignment(cli_ctx, *_):
19-
return cf_guestconfig(cli_ctx).guest_configuration_assignment
20-
21-
22-
def cf_guest_configuration_assignment_report(cli_ctx, *_):
23-
return cf_guestconfig(cli_ctx).guest_configuration_assignment_report
24-
25-
26-
def cf_guest_configuration_hcrp_assignment(cli_ctx, *_):
27-
return cf_guestconfig(cli_ctx).guest_configuration_hcrp_assignment
28-
29-
30-
def cf_guest_configuration_hcrp_assignment_report(cli_ctx, *_):
31-
return cf_guestconfig(cli_ctx).guest_configuration_hcrp_assignment_report
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
11+
12+
def cf_guestconfig(cli_ctx, *_):
13+
from azure.cli.core.commands.client_factory import get_mgmt_service_client
14+
from ..vendored_sdks.guestconfig import GuestConfigurationClient
15+
return get_mgmt_service_client(cli_ctx, GuestConfigurationClient)
16+
17+
18+
def cf_guest_configuration_assignment(cli_ctx, *_):
19+
return cf_guestconfig(cli_ctx).guest_configuration_assignment
20+
21+
22+
def cf_guest_configuration_assignment_report(cli_ctx, *_):
23+
return cf_guestconfig(cli_ctx).guest_configuration_assignment_report
24+
25+
26+
def cf_guest_configuration_hcrp_assignment(cli_ctx, *_):
27+
return cf_guestconfig(cli_ctx).guest_configuration_hcrp_assignment
28+
29+
30+
def cf_guest_configuration_hcrp_assignment_report(cli_ctx, *_):
31+
return cf_guestconfig(cli_ctx).guest_configuration_hcrp_assignment_report

0 commit comments

Comments
 (0)