az guestconfig guest-configuration-hcrp-assignment

Guestconfig guest-configuration-hcrp-assignment.

Commands

az guestconfig guest-configuration-hcrp-assignment create

Creates an association between a ARC machine and guest configuration.

az guestconfig guest-configuration-hcrp-assignment delete

Delete a guest configuration assignment.

az guestconfig guest-configuration-hcrp-assignment list

List all guest configuration assignments for an ARC machine.

az guestconfig guest-configuration-hcrp-assignment show

Get information about a guest configuration assignment.

az guestconfig guest-configuration-hcrp-assignment update

Creates an association between a ARC machine and guest configuration.

az guestconfig guest-configuration-hcrp-assignment wait

Place the CLI in a waiting state until a condition of the guestconfig guest-configuration-hcrp-assignment is met.

az guestconfig guest-configuration-hcrp-assignment create

Creates an association between a ARC machine and guest configuration.

az guestconfig guest-configuration-hcrp-assignment create --guest-configuration-assignment-name
                                                          --machine-name
                                                          --resource-group
                                                          [--context]
                                                          [--guest-configuration-configuration-parameter]
                                                          [--guest-configuration-configuration-setting]
                                                          [--guest-configuration-name]
                                                          [--guest-configuration-version]
                                                          [--latest-assignment-report-assignment]
                                                          [--location]
                                                          [--name]
                                                          [--no-wait]

Examples

Create or update guest configuration assignment

az guestconfig guest-configuration-hcrp-assignment create --guest-configuration-assignment-name "WhitelistedApplication" --machine-name "myMachineName" --guest-configuration-name "WhitelistedApplication" --location "westcentralus" --context "Azure policy" --guest-configuration-name "WhitelistedApplication" --guest-configuration-configuration-parameter name="[InstalledApplication]bwhitelistedapp;Name" value="NotePad,sql" --guest-configuration-configuration-setting action-after-reboot="ContinueConfiguration" configuration-mode="MonitorOnly" configuration-mode-frequency-mins=15 reboot-if-needed="False" --guest-configuration-version "1.*" --resource-group "myResourceGroupName"

Required Parameters

--guest-configuration-assignment-name

Name of the guest configuration assignment.

--machine-name

The name of the ARC machine.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--context

The source which initiated the guest configuration assignment. Ex: Azure Policy.

--guest-configuration-configuration-parameter

The configuration parameters for the guest configuration.

--guest-configuration-configuration-setting

The configuration setting for the guest configuration.

--guest-configuration-name

Name of the guest configuration.

--guest-configuration-version

Version of the guest configuration.

--latest-assignment-report-assignment

Configuration details of the guest configuration assignment. Expected value: json-string/@json-file.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name

Name of the guest configuration assignment.

--no-wait

Do not wait for the long-running operation to finish.

az guestconfig guest-configuration-hcrp-assignment delete

Delete a guest configuration assignment.

az guestconfig guest-configuration-hcrp-assignment delete --guest-configuration-assignment-name
                                                          --machine-name
                                                          --resource-group
                                                          [--no-wait]

Examples

Delete an guest configuration assignment

az guestconfig guest-configuration-hcrp-assignment delete --guest-configuration-assignment-name "SecureProtocol" --machine-name "myMachineName" --resource-group "myResourceGroupName"

Required Parameters

--guest-configuration-assignment-name

Name of the guest configuration assignment.

--machine-name

The name of the ARC machine.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az guestconfig guest-configuration-hcrp-assignment list

List all guest configuration assignments for an ARC machine.

az guestconfig guest-configuration-hcrp-assignment list --machine-name
                                                        --resource-group

Examples

List all guest configuration assignments for a virtual machine

az guestconfig guest-configuration-hcrp-assignment list --machine-name "myMachineName" --resource-group "myResourceGroupName"

Required Parameters

--machine-name

The name of the ARC machine.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az guestconfig guest-configuration-hcrp-assignment show

Get information about a guest configuration assignment.

az guestconfig guest-configuration-hcrp-assignment show --guest-configuration-assignment-name
                                                        --machine-name
                                                        --resource-group

Examples

Get a guest configuration assignment

az guestconfig guest-configuration-hcrp-assignment show --guest-configuration-assignment-name "SecureProtocol" --machine-name "myMachineName" --resource-group "myResourceGroupName"

Required Parameters

--guest-configuration-assignment-name

The guest configuration assignment name.

--machine-name

The name of the ARC machine.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az guestconfig guest-configuration-hcrp-assignment update

Creates an association between a ARC machine and guest configuration.

az guestconfig guest-configuration-hcrp-assignment update --guest-configuration-assignment-name
                                                          --machine-name
                                                          --resource-group
                                                          [--context]
                                                          [--guest-configuration-configuration-parameter]
                                                          [--guest-configuration-configuration-setting]
                                                          [--guest-configuration-name]
                                                          [--guest-configuration-version]
                                                          [--latest-assignment-report-assignment]
                                                          [--location]
                                                          [--name]
                                                          [--no-wait]

Examples

Create or update guest configuration assignment

az guestconfig guest-configuration-hcrp-assignment update --guest-configuration-assignment-name "WhitelistedApplication" --machine-name "myMachineName" --guest-configuration-name "WhitelistedApplication" --location "westcentralus" --context "Azure policy" --guest-configuration-name "WhitelistedApplication" --guest-configuration-configuration-parameter name="[InstalledApplication]bwhitelistedapp;Name" value="NotePad,sql" --guest-configuration-configuration-setting action-after-reboot="ContinueConfiguration" configuration-mode="MonitorOnly" configuration-mode-frequency-mins=15 reboot-if-needed="False" --guest-configuration-version "1.*" --resource-group "myResourceGroupName"

Required Parameters

--guest-configuration-assignment-name

Name of the guest configuration assignment.

--machine-name

The name of the ARC machine.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--context

The source which initiated the guest configuration assignment. Ex: Azure Policy.

--guest-configuration-configuration-parameter

The configuration parameters for the guest configuration.

--guest-configuration-configuration-setting

The configuration setting for the guest configuration.

--guest-configuration-name

Name of the guest configuration.

--guest-configuration-version

Version of the guest configuration.

--latest-assignment-report-assignment

Configuration details of the guest configuration assignment. Expected value: json-string/@json-file.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name

Name of the guest configuration assignment.

--no-wait

Do not wait for the long-running operation to finish.

az guestconfig guest-configuration-hcrp-assignment wait

Place the CLI in a waiting state until a condition of the guestconfig guest-configuration-hcrp-assignment is met.

az guestconfig guest-configuration-hcrp-assignment wait --guest-configuration-assignment-name
                                                        --machine-name
                                                        --resource-group
                                                        [--created]
                                                        [--custom]
                                                        [--deleted]
                                                        [--exists]
                                                        [--interval]
                                                        [--timeout]
                                                        [--updated]

Examples

Pause executing next line of CLI script until the guestconfig guest-configuration-hcrp-assignment is successfully created.

az guestconfig guest-configuration-hcrp-assignment wait --guest-configuration-assignment-name "SecureProtocol" --machine-name "myMachineName" --resource-group "myResourceGroupName" --created

Pause executing next line of CLI script until the guestconfig guest-configuration-hcrp-assignment is successfully deleted.

az guestconfig guest-configuration-hcrp-assignment wait --guest-configuration-assignment-name "SecureProtocol" --machine-name "myMachineName" --resource-group "myResourceGroupName" --deleted

Required Parameters

--guest-configuration-assignment-name

The guest configuration assignment name.

--machine-name

The name of the ARC machine.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

--exists

Wait until the resource exists.

--interval

Polling interval in seconds.

default value: 30
--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.