This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.avs.getPlacementPolicy
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
A vSphere Distributed Resource Scheduler (DRS) placement policy Azure REST API version: 2022-05-01.
Other available API versions: 2023-03-01, 2023-09-01.
Using getPlacementPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPlacementPolicy(args: GetPlacementPolicyArgs, opts?: InvokeOptions): Promise<GetPlacementPolicyResult>
function getPlacementPolicyOutput(args: GetPlacementPolicyOutputArgs, opts?: InvokeOptions): Output<GetPlacementPolicyResult>def get_placement_policy(cluster_name: Optional[str] = None,
                         placement_policy_name: Optional[str] = None,
                         private_cloud_name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetPlacementPolicyResult
def get_placement_policy_output(cluster_name: Optional[pulumi.Input[str]] = None,
                         placement_policy_name: Optional[pulumi.Input[str]] = None,
                         private_cloud_name: Optional[pulumi.Input[str]] = None,
                         resource_group_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetPlacementPolicyResult]func LookupPlacementPolicy(ctx *Context, args *LookupPlacementPolicyArgs, opts ...InvokeOption) (*LookupPlacementPolicyResult, error)
func LookupPlacementPolicyOutput(ctx *Context, args *LookupPlacementPolicyOutputArgs, opts ...InvokeOption) LookupPlacementPolicyResultOutput> Note: This function is named LookupPlacementPolicy in the Go SDK.
public static class GetPlacementPolicy 
{
    public static Task<GetPlacementPolicyResult> InvokeAsync(GetPlacementPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetPlacementPolicyResult> Invoke(GetPlacementPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPlacementPolicyResult> getPlacementPolicy(GetPlacementPolicyArgs args, InvokeOptions options)
public static Output<GetPlacementPolicyResult> getPlacementPolicy(GetPlacementPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:avs:getPlacementPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ClusterName string
- Name of the cluster in the private cloud
- PlacementPolicy stringName 
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
- PrivateCloud stringName 
- Name of the private cloud
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ClusterName string
- Name of the cluster in the private cloud
- PlacementPolicy stringName 
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
- PrivateCloud stringName 
- Name of the private cloud
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- clusterName String
- Name of the cluster in the private cloud
- placementPolicy StringName 
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
- privateCloud StringName 
- Name of the private cloud
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- clusterName string
- Name of the cluster in the private cloud
- placementPolicy stringName 
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
- privateCloud stringName 
- Name of the private cloud
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- cluster_name str
- Name of the cluster in the private cloud
- placement_policy_ strname 
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
- private_cloud_ strname 
- Name of the private cloud
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- clusterName String
- Name of the cluster in the private cloud
- placementPolicy StringName 
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy
- privateCloud StringName 
- Name of the private cloud
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
getPlacementPolicy Result
The following output properties are available:
- Id string
- Resource ID.
- Name string
- Resource name.
- Properties
Pulumi.Azure | Pulumi.Native. AVS. Outputs. Vm Host Placement Policy Properties Response Azure Native. AVS. Outputs. Vm Vm Placement Policy Properties Response 
- placement policy properties
- Type string
- Resource type.
- Id string
- Resource ID.
- Name string
- Resource name.
- Properties
VmHost | VmPlacement Policy Properties Response Vm Placement Policy Properties Response 
- placement policy properties
- Type string
- Resource type.
- id String
- Resource ID.
- name String
- Resource name.
- properties
VmHost | VmPlacement Policy Properties Response Vm Placement Policy Properties Response 
- placement policy properties
- type String
- Resource type.
- id string
- Resource ID.
- name string
- Resource name.
- properties
VmHost | VmPlacement Policy Properties Response Vm Placement Policy Properties Response 
- placement policy properties
- type string
- Resource type.
- id str
- Resource ID.
- name str
- Resource name.
- properties
VmHost | VmPlacement Policy Properties Response Vm Placement Policy Properties Response 
- placement policy properties
- type str
- Resource type.
- id String
- Resource ID.
- name String
- Resource name.
- properties Property Map | Property Map
- placement policy properties
- type String
- Resource type.
Supporting Types
VmHostPlacementPolicyPropertiesResponse     
- AffinityType string
- placement policy affinity type
- HostMembers List<string>
- Host members list
- ProvisioningState string
- The provisioning state
- VmMembers List<string>
- Virtual machine members list
- AffinityStrength string
- vm-host placement policy affinity strength (should/must)
- AzureHybrid stringBenefit Type 
- placement policy azure hybrid benefit opt-in type
- DisplayName string
- Display name of the placement policy
- State string
- Whether the placement policy is enabled or disabled
- AffinityType string
- placement policy affinity type
- HostMembers []string
- Host members list
- ProvisioningState string
- The provisioning state
- VmMembers []string
- Virtual machine members list
- AffinityStrength string
- vm-host placement policy affinity strength (should/must)
- AzureHybrid stringBenefit Type 
- placement policy azure hybrid benefit opt-in type
- DisplayName string
- Display name of the placement policy
- State string
- Whether the placement policy is enabled or disabled
- affinityType String
- placement policy affinity type
- hostMembers List<String>
- Host members list
- provisioningState String
- The provisioning state
- vmMembers List<String>
- Virtual machine members list
- affinityStrength String
- vm-host placement policy affinity strength (should/must)
- azureHybrid StringBenefit Type 
- placement policy azure hybrid benefit opt-in type
- displayName String
- Display name of the placement policy
- state String
- Whether the placement policy is enabled or disabled
- affinityType string
- placement policy affinity type
- hostMembers string[]
- Host members list
- provisioningState string
- The provisioning state
- vmMembers string[]
- Virtual machine members list
- affinityStrength string
- vm-host placement policy affinity strength (should/must)
- azureHybrid stringBenefit Type 
- placement policy azure hybrid benefit opt-in type
- displayName string
- Display name of the placement policy
- state string
- Whether the placement policy is enabled or disabled
- affinity_type str
- placement policy affinity type
- host_members Sequence[str]
- Host members list
- provisioning_state str
- The provisioning state
- vm_members Sequence[str]
- Virtual machine members list
- affinity_strength str
- vm-host placement policy affinity strength (should/must)
- azure_hybrid_ strbenefit_ type 
- placement policy azure hybrid benefit opt-in type
- display_name str
- Display name of the placement policy
- state str
- Whether the placement policy is enabled or disabled
- affinityType String
- placement policy affinity type
- hostMembers List<String>
- Host members list
- provisioningState String
- The provisioning state
- vmMembers List<String>
- Virtual machine members list
- affinityStrength String
- vm-host placement policy affinity strength (should/must)
- azureHybrid StringBenefit Type 
- placement policy azure hybrid benefit opt-in type
- displayName String
- Display name of the placement policy
- state String
- Whether the placement policy is enabled or disabled
VmVmPlacementPolicyPropertiesResponse     
- AffinityType string
- placement policy affinity type
- ProvisioningState string
- The provisioning state
- VmMembers List<string>
- Virtual machine members list
- DisplayName string
- Display name of the placement policy
- State string
- Whether the placement policy is enabled or disabled
- AffinityType string
- placement policy affinity type
- ProvisioningState string
- The provisioning state
- VmMembers []string
- Virtual machine members list
- DisplayName string
- Display name of the placement policy
- State string
- Whether the placement policy is enabled or disabled
- affinityType String
- placement policy affinity type
- provisioningState String
- The provisioning state
- vmMembers List<String>
- Virtual machine members list
- displayName String
- Display name of the placement policy
- state String
- Whether the placement policy is enabled or disabled
- affinityType string
- placement policy affinity type
- provisioningState string
- The provisioning state
- vmMembers string[]
- Virtual machine members list
- displayName string
- Display name of the placement policy
- state string
- Whether the placement policy is enabled or disabled
- affinity_type str
- placement policy affinity type
- provisioning_state str
- The provisioning state
- vm_members Sequence[str]
- Virtual machine members list
- display_name str
- Display name of the placement policy
- state str
- Whether the placement policy is enabled or disabled
- affinityType String
- placement policy affinity type
- provisioningState String
- The provisioning state
- vmMembers List<String>
- Virtual machine members list
- displayName String
- Display name of the placement policy
- state String
- Whether the placement policy is enabled or disabled
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi