bare_metal_machines
Creates, updates, deletes, gets or lists a bare_metal_machines resource.
Overview
| Name | bare_metal_machines |
| Type | Resource |
| Id | azure_extras.network_cloud.bare_metal_machines |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_resource_group
- list_by_subscription
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
actionStates | array | The current state of any in progress or completed actions. The most recent known instance of each action type is shown. |
associatedResourceIds | array | The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. |
bmcConnectionString | string | The connection string for the baseboard management controller including IP address and protocol. Required. |
bmcCredentials | object | The credentials of the baseboard management controller on this bare metal machine. Required. |
bmcIpv4Address | string | The IPv4 address of the BMC interface for the bare metal machine. |
bmcIpv6Address | string | The IPv6 address of the BMC interface for the bare metal machine. |
bmcMacAddress | string | The MAC address of the BMC device. Required. |
bootMacAddress | string | The MAC address of a NIC connected to the PXE network. Required. |
caCertificate | object | The CA certificate information issued by the platform for connecting to TLS interfaces for the bare metal machine. Callers add this certificate to the trusted CA store on the Kubernetes control plane nodes to allow secure communication with the bare metal machine. |
clusterId | string | The resource ID of the cluster this bare metal machine is associated with. |
cordonStatus | string | The cordon status of the bare metal machine. Known values are: "Cordoned" and "Uncordoned". (Cordoned, Uncordoned) |
detailedStatus | string | The more detailed status of the bare metal machine. Known values are: "Preparing", "Error", "Available", "Provisioning", "Provisioned", and "Deprovisioning". (Preparing, Error, Available, Provisioning, Provisioned, Deprovisioning) |
detailedStatusMessage | string | The descriptive message about the current detailed status. |
etag | string | "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). |
extendedLocation | object | The extended location of the resource. This property is required when creating the resource. Required. |
hardwareInventory | object | The hardware inventory, including information acquired from the model/sku information and from the ironic inspector. |
hardwareValidationStatus | object | The details of the latest hardware validation performed for this bare metal machine. |
hybridAksClustersAssociatedIds | array | Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the HybridAksClusters that have nodes hosted on this bare metal machine. |
kubernetesNodeName | string | The name of this machine represented by the host object in the Cluster's Kubernetes control plane. |
kubernetesVersion | string | The version of Kubernetes running on this machine. |
location | string | The geo-location where the resource lives. Required. |
machineClusterVersion | string | The cluster version that has been applied to this machine during deployment or a version update. |
machineDetails | string | The custom details provided by the customer. Required. |
machineName | string | The OS-level hostname assigned to this machine. Required. |
machineRoles | array | The list of roles that are assigned to the cluster node running on this machine. |
machineSkuId | string | The unique internal identifier of the bare metal machine SKU. Required. |
monitoringConfigurationStatus | object | The monitoring configuration status of the bare metal machine. |
oamIpv4Address | string | The IPv4 address that is assigned to the bare metal machine during the cluster deployment. |
oamIpv6Address | string | The IPv6 address that is assigned to the bare metal machine during the cluster deployment. |
osImage | string | The image that is currently provisioned to the OS disk. |
powerState | string | The power state derived from the baseboard management controller. Known values are: "On" and "Off". (On, Off) |
provisioningState | string | The provisioning state of the bare metal machine. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Accepted) |
rackId | string | The resource ID of the rack where this bare metal machine resides. Required. |
rackSlot | integer | The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1. Required. |
readyState | string | The indicator of whether the bare metal machine is ready to receive workloads. Known values are: "True" and "False". (True, False) |
runtimeProtectionStatus | object | The runtime protection status of the bare metal machine. |
secretRotationStatus | array | The list of statuses that represent secret rotation activity. |
serialNumber | string | The serial number of the bare metal machine. Required. |
serviceTag | string | The discovered value of the machine's service tag. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
virtualMachinesAssociatedIds | array | Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the VirtualMachines that are hosted on this bare metal machine. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
actionStates | array | The current state of any in progress or completed actions. The most recent known instance of each action type is shown. |
associatedResourceIds | array | The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. |
bmcConnectionString | string | The connection string for the baseboard management controller including IP address and protocol. Required. |
bmcCredentials | object | The credentials of the baseboard management controller on this bare metal machine. Required. |
bmcIpv4Address | string | The IPv4 address of the BMC interface for the bare metal machine. |
bmcIpv6Address | string | The IPv6 address of the BMC interface for the bare metal machine. |
bmcMacAddress | string | The MAC address of the BMC device. Required. |
bootMacAddress | string | The MAC address of a NIC connected to the PXE network. Required. |
caCertificate | object | The CA certificate information issued by the platform for connecting to TLS interfaces for the bare metal machine. Callers add this certificate to the trusted CA store on the Kubernetes control plane nodes to allow secure communication with the bare metal machine. |
clusterId | string | The resource ID of the cluster this bare metal machine is associated with. |
cordonStatus | string | The cordon status of the bare metal machine. Known values are: "Cordoned" and "Uncordoned". (Cordoned, Uncordoned) |
detailedStatus | string | The more detailed status of the bare metal machine. Known values are: "Preparing", "Error", "Available", "Provisioning", "Provisioned", and "Deprovisioning". (Preparing, Error, Available, Provisioning, Provisioned, Deprovisioning) |
detailedStatusMessage | string | The descriptive message about the current detailed status. |
etag | string | "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). |
extendedLocation | object | The extended location of the resource. This property is required when creating the resource. Required. |
hardwareInventory | object | The hardware inventory, including information acquired from the model/sku information and from the ironic inspector. |
hardwareValidationStatus | object | The details of the latest hardware validation performed for this bare metal machine. |
hybridAksClustersAssociatedIds | array | Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the HybridAksClusters that have nodes hosted on this bare metal machine. |
kubernetesNodeName | string | The name of this machine represented by the host object in the Cluster's Kubernetes control plane. |
kubernetesVersion | string | The version of Kubernetes running on this machine. |
location | string | The geo-location where the resource lives. Required. |
machineClusterVersion | string | The cluster version that has been applied to this machine during deployment or a version update. |
machineDetails | string | The custom details provided by the customer. Required. |
machineName | string | The OS-level hostname assigned to this machine. Required. |
machineRoles | array | The list of roles that are assigned to the cluster node running on this machine. |
machineSkuId | string | The unique internal identifier of the bare metal machine SKU. Required. |
monitoringConfigurationStatus | object | The monitoring configuration status of the bare metal machine. |
oamIpv4Address | string | The IPv4 address that is assigned to the bare metal machine during the cluster deployment. |
oamIpv6Address | string | The IPv6 address that is assigned to the bare metal machine during the cluster deployment. |
osImage | string | The image that is currently provisioned to the OS disk. |
powerState | string | The power state derived from the baseboard management controller. Known values are: "On" and "Off". (On, Off) |
provisioningState | string | The provisioning state of the bare metal machine. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Accepted) |
rackId | string | The resource ID of the rack where this bare metal machine resides. Required. |
rackSlot | integer | The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1. Required. |
readyState | string | The indicator of whether the bare metal machine is ready to receive workloads. Known values are: "True" and "False". (True, False) |
runtimeProtectionStatus | object | The runtime protection status of the bare metal machine. |
secretRotationStatus | array | The list of statuses that represent secret rotation activity. |
serialNumber | string | The serial number of the bare metal machine. Required. |
serviceTag | string | The discovered value of the machine's service tag. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
virtualMachinesAssociatedIds | array | Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the VirtualMachines that are hosted on this bare metal machine. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
actionStates | array | The current state of any in progress or completed actions. The most recent known instance of each action type is shown. |
associatedResourceIds | array | The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. |
bmcConnectionString | string | The connection string for the baseboard management controller including IP address and protocol. Required. |
bmcCredentials | object | The credentials of the baseboard management controller on this bare metal machine. Required. |
bmcIpv4Address | string | The IPv4 address of the BMC interface for the bare metal machine. |
bmcIpv6Address | string | The IPv6 address of the BMC interface for the bare metal machine. |
bmcMacAddress | string | The MAC address of the BMC device. Required. |
bootMacAddress | string | The MAC address of a NIC connected to the PXE network. Required. |
caCertificate | object | The CA certificate information issued by the platform for connecting to TLS interfaces for the bare metal machine. Callers add this certificate to the trusted CA store on the Kubernetes control plane nodes to allow secure communication with the bare metal machine. |
clusterId | string | The resource ID of the cluster this bare metal machine is associated with. |
cordonStatus | string | The cordon status of the bare metal machine. Known values are: "Cordoned" and "Uncordoned". (Cordoned, Uncordoned) |
detailedStatus | string | The more detailed status of the bare metal machine. Known values are: "Preparing", "Error", "Available", "Provisioning", "Provisioned", and "Deprovisioning". (Preparing, Error, Available, Provisioning, Provisioned, Deprovisioning) |
detailedStatusMessage | string | The descriptive message about the current detailed status. |
etag | string | "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). |
extendedLocation | object | The extended location of the resource. This property is required when creating the resource. Required. |
hardwareInventory | object | The hardware inventory, including information acquired from the model/sku information and from the ironic inspector. |
hardwareValidationStatus | object | The details of the latest hardware validation performed for this bare metal machine. |
hybridAksClustersAssociatedIds | array | Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the HybridAksClusters that have nodes hosted on this bare metal machine. |
kubernetesNodeName | string | The name of this machine represented by the host object in the Cluster's Kubernetes control plane. |
kubernetesVersion | string | The version of Kubernetes running on this machine. |
location | string | The geo-location where the resource lives. Required. |
machineClusterVersion | string | The cluster version that has been applied to this machine during deployment or a version update. |
machineDetails | string | The custom details provided by the customer. Required. |
machineName | string | The OS-level hostname assigned to this machine. Required. |
machineRoles | array | The list of roles that are assigned to the cluster node running on this machine. |
machineSkuId | string | The unique internal identifier of the bare metal machine SKU. Required. |
monitoringConfigurationStatus | object | The monitoring configuration status of the bare metal machine. |
oamIpv4Address | string | The IPv4 address that is assigned to the bare metal machine during the cluster deployment. |
oamIpv6Address | string | The IPv6 address that is assigned to the bare metal machine during the cluster deployment. |
osImage | string | The image that is currently provisioned to the OS disk. |
powerState | string | The power state derived from the baseboard management controller. Known values are: "On" and "Off". (On, Off) |
provisioningState | string | The provisioning state of the bare metal machine. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Accepted) |
rackId | string | The resource ID of the rack where this bare metal machine resides. Required. |
rackSlot | integer | The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1. Required. |
readyState | string | The indicator of whether the bare metal machine is ready to receive workloads. Known values are: "True" and "False". (True, False) |
runtimeProtectionStatus | object | The runtime protection status of the bare metal machine. |
secretRotationStatus | array | The list of statuses that represent secret rotation activity. |
serialNumber | string | The serial number of the bare metal machine. Required. |
serviceTag | string | The discovered value of the machine's service tag. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
virtualMachinesAssociatedIds | array | Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the VirtualMachines that are hosted on this bare metal machine. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, bare_metal_machine_name, subscription_id | Get properties of the provided bare metal machine. | |
list_by_resource_group | select | resource_group_name, subscription_id | $top, $skipToken | Get a list of bare metal machines in the provided resource group. |
list_by_subscription | select | subscription_id | $top, $skipToken | Get a list of bare metal machines in the provided subscription. |
create_or_update | insert | resource_group_name, bare_metal_machine_name, subscription_id, location, properties, extendedLocation | Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. | |
update | update | resource_group_name, bare_metal_machine_name, subscription_id | Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. | |
create_or_update | replace | resource_group_name, bare_metal_machine_name, subscription_id, location, properties, extendedLocation | Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. | |
delete | delete | resource_group_name, bare_metal_machine_name, subscription_id | Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. | |
cordon | exec | resource_group_name, bare_metal_machine_name, subscription_id | Cordon the provided bare metal machine's Kubernetes node. | |
power_off | exec | resource_group_name, bare_metal_machine_name, subscription_id | Power off the provided bare metal machine. | |
reimage | exec | resource_group_name, bare_metal_machine_name, subscription_id | Reimage the provided bare metal machine. | |
replace | exec | resource_group_name, bare_metal_machine_name, subscription_id | Replace the provided bare metal machine. | |
restart | exec | resource_group_name, bare_metal_machine_name, subscription_id | Restart the provided bare metal machine. | |
run_command | exec | resource_group_name, bare_metal_machine_name, subscription_id, limitTimeSeconds, script | Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. | |
run_data_extracts | exec | resource_group_name, bare_metal_machine_name, subscription_id, commands, limitTimeSeconds | Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. | |
run_data_extracts_restricted | exec | resource_group_name, bare_metal_machine_name, subscription_id, commands, limitTimeSeconds | Run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. | |
run_read_commands | exec | resource_group_name, bare_metal_machine_name, subscription_id, commands, limitTimeSeconds | Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. | |
start | exec | resource_group_name, bare_metal_machine_name, subscription_id | Start the provided bare metal machine. | |
uncordon | exec | resource_group_name, bare_metal_machine_name, subscription_id | Uncordon the provided bare metal machine's Kubernetes node. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
bare_metal_machine_name | string | The name of the bare metal machine. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
$skipToken | string | The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. Default value is None. |
$top | integer | The maximum number of resources to return from the operation. Example: '$top=10'. Default value is None. |
SELECT examples
- get
- list_by_resource_group
- list_by_subscription
Get properties of the provided bare metal machine.
SELECT
id,
name,
actionStates,
associatedResourceIds,
bmcConnectionString,
bmcCredentials,
bmcIpv4Address,
bmcIpv6Address,
bmcMacAddress,
bootMacAddress,
caCertificate,
clusterId,
cordonStatus,
detailedStatus,
detailedStatusMessage,
etag,
extendedLocation,
hardwareInventory,
hardwareValidationStatus,
hybridAksClustersAssociatedIds,
kubernetesNodeName,
kubernetesVersion,
location,
machineClusterVersion,
machineDetails,
machineName,
machineRoles,
machineSkuId,
monitoringConfigurationStatus,
oamIpv4Address,
oamIpv6Address,
osImage,
powerState,
provisioningState,
rackId,
rackSlot,
readyState,
runtimeProtectionStatus,
secretRotationStatus,
serialNumber,
serviceTag,
systemData,
tags,
type,
virtualMachinesAssociatedIds
FROM azure_extras.network_cloud.bare_metal_machines
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND bare_metal_machine_name = '{{ bare_metal_machine_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get a list of bare metal machines in the provided resource group.
SELECT
id,
name,
actionStates,
associatedResourceIds,
bmcConnectionString,
bmcCredentials,
bmcIpv4Address,
bmcIpv6Address,
bmcMacAddress,
bootMacAddress,
caCertificate,
clusterId,
cordonStatus,
detailedStatus,
detailedStatusMessage,
etag,
extendedLocation,
hardwareInventory,
hardwareValidationStatus,
hybridAksClustersAssociatedIds,
kubernetesNodeName,
kubernetesVersion,
location,
machineClusterVersion,
machineDetails,
machineName,
machineRoles,
machineSkuId,
monitoringConfigurationStatus,
oamIpv4Address,
oamIpv6Address,
osImage,
powerState,
provisioningState,
rackId,
rackSlot,
readyState,
runtimeProtectionStatus,
secretRotationStatus,
serialNumber,
serviceTag,
systemData,
tags,
type,
virtualMachinesAssociatedIds
FROM azure_extras.network_cloud.bare_metal_machines
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $top = '{{ $top }}'
AND $skipToken = '{{ $skipToken }}'
;
Get a list of bare metal machines in the provided subscription.
SELECT
id,
name,
actionStates,
associatedResourceIds,
bmcConnectionString,
bmcCredentials,
bmcIpv4Address,
bmcIpv6Address,
bmcMacAddress,
bootMacAddress,
caCertificate,
clusterId,
cordonStatus,
detailedStatus,
detailedStatusMessage,
etag,
extendedLocation,
hardwareInventory,
hardwareValidationStatus,
hybridAksClustersAssociatedIds,
kubernetesNodeName,
kubernetesVersion,
location,
machineClusterVersion,
machineDetails,
machineName,
machineRoles,
machineSkuId,
monitoringConfigurationStatus,
oamIpv4Address,
oamIpv6Address,
osImage,
powerState,
provisioningState,
rackId,
rackSlot,
readyState,
runtimeProtectionStatus,
secretRotationStatus,
serialNumber,
serviceTag,
systemData,
tags,
type,
virtualMachinesAssociatedIds
FROM azure_extras.network_cloud.bare_metal_machines
WHERE subscription_id = '{{ subscription_id }}' -- required
AND $top = '{{ $top }}'
AND $skipToken = '{{ $skipToken }}'
;
INSERT examples
- create_or_update
- Manifest
Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.
INSERT INTO azure_extras.network_cloud.bare_metal_machines (
tags,
location,
properties,
extendedLocation,
resource_group_name,
bare_metal_machine_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ extendedLocation }}' /* required */,
'{{ resource_group_name }}',
'{{ bare_metal_machine_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: bare_metal_machines
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the bare_metal_machines resource.
- name: bare_metal_machine_name
value: "{{ bare_metal_machine_name }}"
description: Required parameter for the bare_metal_machines resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the bare_metal_machines resource.
- name: tags
value: "{{ tags }}"
description: |
Resource tags.
- name: location
value: "{{ location }}"
description: |
The geo-location where the resource lives. Required.
- name: properties
description: |
The list of the resource properties. Required.
value:
bmcConnectionString: "{{ bmcConnectionString }}"
bmcCredentials:
password: "{{ password }}"
username: "{{ username }}"
bmcMacAddress: "{{ bmcMacAddress }}"
bootMacAddress: "{{ bootMacAddress }}"
machineDetails: "{{ machineDetails }}"
machineName: "{{ machineName }}"
machineSkuId: "{{ machineSkuId }}"
rackId: "{{ rackId }}"
rackSlot: {{ rackSlot }}
serialNumber: "{{ serialNumber }}"
actionStates:
- actionType: "{{ actionType }}"
correlationId: "{{ correlationId }}"
endTime: "{{ endTime }}"
message: "{{ message }}"
startTime: "{{ startTime }}"
status: "{{ status }}"
stepStates: "{{ stepStates }}"
associatedResourceIds:
- "{{ associatedResourceIds }}"
bmcIpv4Address: "{{ bmcIpv4Address }}"
bmcIpv6Address: "{{ bmcIpv6Address }}"
caCertificate:
hash: "{{ hash }}"
value: "{{ value }}"
clusterId: "{{ clusterId }}"
cordonStatus: "{{ cordonStatus }}"
detailedStatus: "{{ detailedStatus }}"
detailedStatusMessage: "{{ detailedStatusMessage }}"
hardwareInventory:
additionalHostInformation: "{{ additionalHostInformation }}"
interfaces:
- linkStatus: "{{ linkStatus }}"
macAddress: "{{ macAddress }}"
name: "{{ name }}"
networkInterfaceId: "{{ networkInterfaceId }}"
nics:
- lldpNeighbor:
portDescription: "{{ portDescription }}"
portName: "{{ portName }}"
systemDescription: "{{ systemDescription }}"
systemName: "{{ systemName }}"
macAddress: "{{ macAddress }}"
name: "{{ name }}"
hardwareValidationStatus:
lastValidationTime: "{{ lastValidationTime }}"
result: "{{ result }}"
hybridAksClustersAssociatedIds:
- "{{ hybridAksClustersAssociatedIds }}"
kubernetesNodeName: "{{ kubernetesNodeName }}"
kubernetesVersion: "{{ kubernetesVersion }}"
machineClusterVersion: "{{ machineClusterVersion }}"
machineRoles:
- "{{ machineRoles }}"
monitoringConfigurationStatus:
logLevel: "{{ logLevel }}"
metricsLevel: "{{ metricsLevel }}"
oamIpv4Address: "{{ oamIpv4Address }}"
oamIpv6Address: "{{ oamIpv6Address }}"
osImage: "{{ osImage }}"
powerState: "{{ powerState }}"
readyState: "{{ readyState }}"
runtimeProtectionStatus:
agentHealthStatus: "{{ agentHealthStatus }}"
agentHealthStatusIssues:
- "{{ agentHealthStatusIssues }}"
agentLicenseStatus: "{{ agentLicenseStatus }}"
definitionUpdateMode: "{{ definitionUpdateMode }}"
definitionsLastUpdated: "{{ definitionsLastUpdated }}"
definitionsVersion: "{{ definitionsVersion }}"
enforcementLevel: "{{ enforcementLevel }}"
scanCompletedTime: "{{ scanCompletedTime }}"
scanScheduledTime: "{{ scanScheduledTime }}"
scanStartedTime: "{{ scanStartedTime }}"
secretRotationStatus:
- expirePeriodDays: {{ expirePeriodDays }}
lastRotationTime: "{{ lastRotationTime }}"
rotationPeriodDays: {{ rotationPeriodDays }}
secretArchiveReference:
keyVaultId: "{{ keyVaultId }}"
keyVaultUri: "{{ keyVaultUri }}"
secretName: "{{ secretName }}"
secretVersion: "{{ secretVersion }}"
secretType: "{{ secretType }}"
serviceTag: "{{ serviceTag }}"
virtualMachinesAssociatedIds:
- "{{ virtualMachinesAssociatedIds }}"
provisioningState: "{{ provisioningState }}"
- name: extendedLocation
description: |
The extended location of the resource. This property is required when creating the resource. Required.
value:
name: "{{ name }}"
type: "{{ type }}"
UPDATE examples
- update
Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently.
UPDATE azure_extras.network_cloud.bare_metal_machines
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND bare_metal_machine_name = '{{ bare_metal_machine_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type;
REPLACE examples
- create_or_update
Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.
REPLACE azure_extras.network_cloud.bare_metal_machines
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND bare_metal_machine_name = '{{ bare_metal_machine_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
AND extendedLocation = '{{ extendedLocation }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type;
DELETE examples
- delete
Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.
DELETE FROM azure_extras.network_cloud.bare_metal_machines
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND bare_metal_machine_name = '{{ bare_metal_machine_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;
Lifecycle Methods
- cordon
- power_off
- reimage
- replace
- restart
- run_command
- run_data_extracts
- run_data_extracts_restricted
- run_read_commands
- start
- uncordon
Cordon the provided bare metal machine's Kubernetes node.
EXEC azure_extras.network_cloud.bare_metal_machines.cordon
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"evacuate": "{{ evacuate }}"
}'
;
Power off the provided bare metal machine.
EXEC azure_extras.network_cloud.bare_metal_machines.power_off
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"skipShutdown": "{{ skipShutdown }}"
}'
;
Reimage the provided bare metal machine.
EXEC azure_extras.network_cloud.bare_metal_machines.reimage
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"safeguardMode": "{{ safeguardMode }}"
}'
;
Replace the provided bare metal machine.
EXEC azure_extras.network_cloud.bare_metal_machines.replace
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"bmcCredentials": "{{ bmcCredentials }}",
"bmcMacAddress": "{{ bmcMacAddress }}",
"bootMacAddress": "{{ bootMacAddress }}",
"machineName": "{{ machineName }}",
"safeguardMode": "{{ safeguardMode }}",
"serialNumber": "{{ serialNumber }}",
"storagePolicy": "{{ storagePolicy }}"
}'
;
Restart the provided bare metal machine.
EXEC azure_extras.network_cloud.bare_metal_machines.restart
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available.
EXEC azure_extras.network_cloud.bare_metal_machines.run_command
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"arguments": "{{ arguments }}",
"limitTimeSeconds": {{ limitTimeSeconds }},
"script": "{{ script }}"
}'
;
Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available.
EXEC azure_extras.network_cloud.bare_metal_machines.run_data_extracts
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"commands": "{{ commands }}",
"limitTimeSeconds": {{ limitTimeSeconds }}
}'
;
Run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available.
EXEC azure_extras.network_cloud.bare_metal_machines.run_data_extracts_restricted
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"commands": "{{ commands }}",
"limitTimeSeconds": {{ limitTimeSeconds }}
}'
;
Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available.
EXEC azure_extras.network_cloud.bare_metal_machines.run_read_commands
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"commands": "{{ commands }}",
"limitTimeSeconds": {{ limitTimeSeconds }}
}'
;
Start the provided bare metal machine.
EXEC azure_extras.network_cloud.bare_metal_machines.start
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Uncordon the provided bare metal machine's Kubernetes node.
EXEC azure_extras.network_cloud.bare_metal_machines.uncordon
@resource_group_name='{{ resource_group_name }}' --required,
@bare_metal_machine_name='{{ bare_metal_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;