az maintenance assignment

Megjegyzés

Ez a hivatkozás az Azure CLI karbantartási bővítményének része (2.15.0-s vagy újabb verzió). A bővítmény automatikusan telepíti az az maintenance assignment parancs első futtatásakor. További információ a bővítményekről.

Konfiguráció-hozzárendelés kezelése karbantartással.

Parancsok

az maintenance assignment create

Regisztrálja az erőforrás konfigurációját.

az maintenance assignment create-or-update-parent

Regisztrálja az erőforrás konfigurációját.

az maintenance assignment delete

Törölje az erőforrás konfigurációjának regisztrációját.

az maintenance assignment delete-parent

Törölje az erőforrás konfigurációjának regisztrációját.

az maintenance assignment list

Az erőforrás konfigurációs hozzárendeléseinek listázása.

az maintenance assignment list-parent

Az erőforrás konfigurációs hozzárendeléseinek listázása.

az maintenance assignment show

Erőforrás konfigurációjának lekérése.

az maintenance assignment show-parent

Erőforrás konfigurációjának lekérése.

az maintenance assignment update

Regisztrálja az erőforrás konfigurációját.

az maintenance assignment create

Regisztrálja az erőforrás konfigurációját.

az maintenance assignment create --configuration-assignment-name
                                 --provider-name
                                 --resource-group
                                 --resource-name
                                 --resource-type
                                 [--config-id]
                                 [--location]
                                 [--resource-id]

Példák

ConfigurationAssignments_CreateOrUpdate

az maintenance assignment create --maintenance-configuration-id "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1" --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"

Kötelező paraméterek

--configuration-assignment-name --name -n

Konfiguráció-hozzárendelés neve.

--provider-name

Erőforrás-szolgáltató neve.

--resource-group -g

Az erőforráscsoport neve. Az alapértelmezett csoportot a használatával az configure --defaults group=<name>konfigurálhatja.

--resource-name

Erőforrás-azonosító.

--resource-type

Erőforrástípus.

Opcionális paraméterek

--config-id --maintenance-configuration-id

A karbantartási konfiguráció azonosítója.

--location -l

Tartózkodási hely beállításnál. Értékek innen: az account list-locations. Az alapértelmezett helyet a használatával az configure --defaults location=<location>konfigurálhatja.

--resource-id

Az egyedi erőforrás-azonosító.

az maintenance assignment create-or-update-parent

Regisztrálja az erőforrás konfigurációját.

az maintenance assignment create-or-update-parent --configuration-assignment-name
                                                  --provider-name
                                                  --resource-group
                                                  --resource-name
                                                  --resource-parent-name
                                                  --resource-parent-type
                                                  --resource-type
                                                  [--location]
                                                  [--maintenance-configuration-id]
                                                  [--resource-id]

Példák

ConfigurationAssignments_CreateOrUpdateParent

az maintenance assignment create-or-update-parent --maintenance-configuration-id "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1" --name "workervmPolicy" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"

Kötelező paraméterek

--configuration-assignment-name --name -n

Konfiguráció-hozzárendelés neve.

--provider-name

Erőforrás-szolgáltató neve.

--resource-group -g

Az erőforráscsoport neve. Az alapértelmezett csoportot a használatával az configure --defaults group=<name>konfigurálhatja.

--resource-name

Erőforrás-azonosító.

--resource-parent-name

Erőforrás szülőazonosítója.

--resource-parent-type

Erőforrás szülőtípusa.

--resource-type

Erőforrástípus.

Opcionális paraméterek

--location -l

Tartózkodási hely beállításnál. Értékek innen: az account list-locations. Az alapértelmezett helyet a használatával az configure --defaults location=<location>konfigurálhatja.

--maintenance-configuration-id

A karbantartási konfiguráció azonosítója.

--resource-id

Az egyedi erőforrás-azonosító.

az maintenance assignment delete

Törölje az erőforrás konfigurációjának regisztrációját.

az maintenance assignment delete --configuration-assignment-name
                                 --provider-name
                                 --resource-group
                                 --resource-name
                                 --resource-type
                                 [--yes]

Példák

ConfigurationAssignments_Delete

az maintenance assignment delete --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"

Kötelező paraméterek

--configuration-assignment-name --name -n

Egyedi konfiguráció-hozzárendelés neve.

--provider-name

Erőforrás-szolgáltató neve.

--resource-group -g

Az erőforráscsoport neve. Az alapértelmezett csoportot a használatával az configure --defaults group=<name>konfigurálhatja.

--resource-name

Erőforrás-azonosító.

--resource-type

Erőforrástípus.

Opcionális paraméterek

--yes -y

Ne kérje a megerősítést.

az maintenance assignment delete-parent

Törölje az erőforrás konfigurációjának regisztrációját.

az maintenance assignment delete-parent --configuration-assignment-name
                                        --provider-name
                                        --resource-group
                                        --resource-name
                                        --resource-parent-name
                                        --resource-parent-type
                                        --resource-type

Példák

ConfigurationAssignments_DeleteParent

az maintenance assignment delete-parent --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"

Kötelező paraméterek

--configuration-assignment-name --name -n

Egyedi konfiguráció-hozzárendelés neve.

--provider-name

Erőforrás-szolgáltató neve.

--resource-group -g

Az erőforráscsoport neve. Az alapértelmezett csoportot a használatával az configure --defaults group=<name>konfigurálhatja.

--resource-name

Erőforrás-azonosító.

--resource-parent-name

Erőforrás szülőazonosítója.

--resource-parent-type

Erőforrás szülőtípusa.

--resource-type

Erőforrástípus.

az maintenance assignment list

Az erőforrás konfigurációs hozzárendeléseinek listázása.

az maintenance assignment list --provider-name
                               --resource-group
                               --resource-name
                               --resource-type

Példák

ConfigurationAssignments_List

az maintenance assignment list --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"

Kötelező paraméterek

--provider-name

Erőforrás-szolgáltató neve.

--resource-group -g

Az erőforráscsoport neve. Az alapértelmezett csoportot a használatával az configure --defaults group=<name>konfigurálhatja.

--resource-name

Erőforrás-azonosító.

--resource-type

Erőforrástípus.

az maintenance assignment list-parent

Az erőforrás konfigurációs hozzárendeléseinek listázása.

az maintenance assignment list-parent --provider-name
                                      --resource-group
                                      --resource-name
                                      --resource-parent-name
                                      --resource-parent-type
                                      --resource-type

Példák

ConfigurationAssignments_ListParent

az maintenance assignment list-parent --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtestvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"

Kötelező paraméterek

--provider-name

Erőforrás-szolgáltató neve.

--resource-group -g

Az erőforráscsoport neve. Az alapértelmezett csoportot a használatával az configure --defaults group=<name>konfigurálhatja.

--resource-name

Erőforrás-azonosító.

--resource-parent-name

Erőforrás szülőazonosítója.

--resource-parent-type

Erőforrás szülőtípusa.

--resource-type

Erőforrástípus.

az maintenance assignment show

Erőforrás konfigurációjának lekérése.

az maintenance assignment show --configuration-assignment-name
                               --provider-name
                               --resource-group
                               --resource-name
                               --resource-type

Példák

ConfigurationAssignments_Get

az maintenance assignment show --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"

Kötelező paraméterek

--configuration-assignment-name --name -n

Konfiguráció-hozzárendelés neve.

--provider-name

Erőforrás-szolgáltató neve.

--resource-group -g

Az erőforráscsoport neve. Az alapértelmezett csoportot a használatával az configure --defaults group=<name>konfigurálhatja.

--resource-name

Erőforrás-azonosító.

--resource-type

Erőforrástípus.

az maintenance assignment show-parent

Erőforrás konfigurációjának lekérése.

az maintenance assignment show-parent --configuration-assignment-name
                                      --provider-name
                                      --resource-group
                                      --resource-name
                                      --resource-parent-name
                                      --resource-parent-type
                                      --resource-type

Példák

ConfigurationAssignments_GetParent

az maintenance assignment show-parent --name "workervmPolicy" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"

Kötelező paraméterek

--configuration-assignment-name --name -n

Konfiguráció-hozzárendelés neve.

--provider-name

Erőforrás-szolgáltató neve.

--resource-group -g

Az erőforráscsoport neve. Az alapértelmezett csoportot a használatával az configure --defaults group=<name>konfigurálhatja.

--resource-name

Erőforrás-azonosító.

--resource-parent-name

Erőforrás szülőazonosítója.

--resource-parent-type

Erőforrás szülőtípusa.

--resource-type

Erőforrástípus.

az maintenance assignment update

Az erőforrás konfigurációjának regisztrálása.

az maintenance assignment update --configuration-assignment-name
                                 --provider-name
                                 --resource-group
                                 --resource-name
                                 --resource-type
                                 [--config-id]
                                 [--location]
                                 [--resource-id]

Kötelező paraméterek

--configuration-assignment-name --name -n

Konfiguráció-hozzárendelés neve.

--provider-name

Erőforrás-szolgáltató neve.

--resource-group -g

Az erőforráscsoport neve. Az alapértelmezett csoportot a következővel az configure --defaults group=<name>konfigurálhatja: .

--resource-name

Erőforrás-azonosító.

--resource-type

Erőforrástípus.

Opcionális paraméterek

--config-id --maintenance-configuration-id

A karbantartási konfiguráció azonosítója.

--location -l

Tartózkodási hely beállításnál. Értékek innen: az account list-locations. Az alapértelmezett helyet a használatával az configure --defaults location=<location>konfigurálhatja.

--resource-id

Az egyedi resourceId.