Skip to content
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

feat: hybrid-compute/machine module #2470

Merged
merged 27 commits into from
Jun 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
other kind properties
mbrat2005 committed Jun 17, 2024

Verified

This commit was signed with the committer’s verified signature.
mbrat2005 Matthew Bratschun
commit d93c062df269cb9bef5407e438a66adf82543a9b
3 changes: 0 additions & 3 deletions avm/res/hybrid-compute/machine/extension/main.bicep
Original file line number Diff line number Diff line change
@@ -33,9 +33,6 @@ param settings object = {}
@secure()
param protectedSettings object = {}

@description('Optional. Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false.')
param supressFailures bool = false

@description('Required. Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.')
param enableAutomaticUpgrade bool

19 changes: 18 additions & 1 deletion avm/res/hybrid-compute/machine/main.bicep
Original file line number Diff line number Diff line change
@@ -8,6 +8,18 @@ param name string
@description('Required. Kind of Arc machine to be created. Possible values are: HCI, SCVMM, VMware')
param kind string

@description('Conditional. The resource ID of an Arc Private Link Scope which which to associate this machine. Required if you are using Private Link for Arc and your Arc Machine will resolve a Private Endpoint for connectivity to Azure.')
param privateLinkScopeResourceId string = ''

@description('Optional. Parent cluster resource ID (Azure Stack HCI).')
param parentClusterResourceId string = ''

@description('Optional. The GUID of the on-premises virtual machine from your hypervisor.')
param vmId string = ''

@description('Optional. The Public Key that the client provides to be used during initial resource onboarding.')
param clientPublicKye string = ''

// Child resources
@description('Optional. Required if name is specified. Password of the user specified in user parameter.')
@secure()
@@ -153,7 +165,12 @@ resource machine 'Microsoft.HybridCompute/machines@2023-03-15-preview' = {
}
tags: tags
kind: kind
properties: {}
properties: {
parentClusterResourceId: parentClusterResourceId
vmId: vmId
clientPublicKey: clientPublicKye
privateLinkScopeResourceId: privateLinkScopeResourceId
}
}

resource machine_configurationProfileAssignment 'Microsoft.Automanage/configurationProfileAssignments@2022-05-04' = if (!empty(configurationProfile)) {