pspulumiyaml.azurenative.containerservice.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionContainerserviceListManagedClusterMonitoringUserCredentials { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:listManagedClusterMonitoringUserCredentials -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceGetManagedClusterSnapshot { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:getManagedClusterSnapshot -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceGetOpenShiftManagedCluster { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the OpenShift managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:getOpenShiftManagedCluster -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceGetPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection.)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["privateEndpointConnectionName"] = $privateEndpointConnectionName $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:getPrivateEndpointConnection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceGetSnapshot { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:getSnapshot -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceGetManagedCluster { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:getManagedCluster -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceGetTrustedAccessRoleBinding { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of trusted access role binding.)')] [string] $trustedAccessRoleBindingName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $arguments["trustedAccessRoleBindingName"] = $trustedAccessRoleBindingName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:getTrustedAccessRoleBinding -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceGetAgentPool { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The name of the agent pool.)')] [string] $agentPoolName ) process { $arguments = @{} $arguments["agentPoolName"] = $agentPoolName $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:getAgentPool -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceGetMaintenanceConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the maintenance configuration.)')] [string] $configName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["configName"] = $configName $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:getMaintenanceConfiguration -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceListManagedClusterAdminCredentials { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:listManagedClusterAdminCredentials -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceListManagedClusterAccessProfile { param ( [parameter(mandatory=$False,HelpMessage='The name of the role for managed cluster accessProfile resource.)')] [string] $roleName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $arguments["roleName"] = $roleName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:listManagedClusterAccessProfile -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerserviceListManagedClusterUserCredentials { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:containerservice:listManagedClusterUserCredentials -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class ContainerServiceSshPublicKey { [string] $keyData } function New-AzureNativeTypeContainerserviceContainerServiceSshPublicKey { param ( [parameter(mandatory=$False,HelpMessage='Certificate public key used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers.)')] [string] $keyData ) process { return $([ContainerServiceSshPublicKey]$PSBoundParameters) } } class ContainerServiceSshConfiguration { [ContainerServiceSshPublicKey[]] $publicKeys } function New-AzureNativeTypeContainerserviceContainerServiceSshConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The list of SSH public keys used to authenticate with Linux-based VMs. Only expect one key specified.)')] $publicKeys ) process { return $([ContainerServiceSshConfiguration]$PSBoundParameters) } } class ContainerServiceLinuxProfile { [ContainerServiceSshConfiguration] $ssh [string] $adminUsername } function New-AzureNativeTypeContainerserviceContainerServiceLinuxProfile { param ( [parameter(mandatory=$False,HelpMessage='SSH configuration for Linux-based VMs running on Azure.)')] [ContainerServiceSshConfiguration] $ssh, [parameter(mandatory=$False,HelpMessage='The administrator username to use for Linux VMs.)')] [string] $adminUsername ) process { return $([ContainerServiceLinuxProfile]$PSBoundParameters) } } class UserAssignedIdentity { [string] $resourceId [string] $objectId [string] $clientId } function New-AzureNativeTypeContainerserviceUserAssignedIdentity { param ( [parameter(mandatory=$False,HelpMessage='The resource id of the user assigned identity.)')] [string] $resourceId, [parameter(mandatory=$False,HelpMessage='The object id of the user assigned identity.)')] [string] $objectId, [parameter(mandatory=$False,HelpMessage='The client id of the user assigned identity.)')] [string] $clientId ) process { return $([UserAssignedIdentity]$PSBoundParameters) } } class ManagedClusterPodIdentity { [string] $name [string] $namespace [UserAssignedIdentity] $identity [string] $bindingSelector } function New-AzureNativeTypeContainerserviceManagedClusterPodIdentity { param ( [parameter(mandatory=$False,HelpMessage='Name of the pod identity.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Namespace of the pod identity.)')] [string] $namespace, [parameter(mandatory=$False,HelpMessage='Information of the user assigned identity.)')] [UserAssignedIdentity] $identity, [parameter(mandatory=$False,HelpMessage='Binding selector to use for the AzureIdentityBinding resource.)')] [string] $bindingSelector ) process { return $([ManagedClusterPodIdentity]$PSBoundParameters) } } class ManagedClusterPodIdentityException { [object] $podLabels [string] $name [string] $namespace } function New-AzureNativeTypeContainerserviceManagedClusterPodIdentityException { param ( [parameter(mandatory=$False,HelpMessage='Pod labels to match.)')] [hashtable] $podLabels, [parameter(mandatory=$False,HelpMessage='Name of the pod identity exception.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Namespace of the pod identity exception.)')] [string] $namespace ) process { return $([ManagedClusterPodIdentityException]$PSBoundParameters) } } class ManagedClusterPodIdentityProfile { [ManagedClusterPodIdentity[]] $userAssignedIdentities [bool] $allowNetworkPluginKubenet [bool] $enabled [ManagedClusterPodIdentityException[]] $userAssignedIdentityExceptions } function New-AzureNativeTypeContainerserviceManagedClusterPodIdentityProfile { param ( [parameter(mandatory=$False,HelpMessage='User assigned pod identity settings.)')] $userAssignedIdentities, [parameter(mandatory=$False,HelpMessage='Customer consent for enabling AAD pod identity addon in cluster using Kubenet network plugin.)')] [bool] $allowNetworkPluginKubenet, [parameter(mandatory=$False,HelpMessage='Whether the pod identity addon is enabled.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='User assigned pod identity exception settings.)')] $userAssignedIdentityExceptions ) process { return $([ManagedClusterPodIdentityProfile]$PSBoundParameters) } } class ManagedClusterAADProfile { [bool] $managed [string] $serverAppSecret [bool] $enableAzureRBAC [string] $clientAppID [string] $tenantID [string[]] $adminGroupObjectIDs [string] $serverAppID } function New-AzureNativeTypeContainerserviceManagedClusterAADProfile { param ( [parameter(mandatory=$False,HelpMessage='Whether to enable managed AAD.)')] [bool] $managed, [parameter(mandatory=$False,HelpMessage='The server AAD application secret.)')] [string] $serverAppSecret, [parameter(mandatory=$False,HelpMessage='Whether to enable Azure RBAC for Kubernetes authorization.)')] [bool] $enableAzureRBAC, [parameter(mandatory=$False,HelpMessage='The client AAD application ID.)')] [string] $clientAppID, [parameter(mandatory=$False,HelpMessage='The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription.)')] [string] $tenantID, [parameter(mandatory=$False,HelpMessage='AAD group object IDs that will have admin role of the cluster.)')] [string[]] $adminGroupObjectIDs, [parameter(mandatory=$False,HelpMessage='The server AAD application ID.)')] [string] $serverAppID ) process { return $([ManagedClusterAADProfile]$PSBoundParameters) } } class ManagedClusterPropertiesAutoScalerProfile { [string] $maxEmptyBulkDelete [string] $maxTotalUnreadyPercentage [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $expander [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $scaleDownUnneededTime [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $newPodScaleUpDelay [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $scanInterval [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $maxNodeProvisionTime [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $scaleDownDelayAfterFailure [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $skipNodesWithLocalStorage [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $skipNodesWithSystemPods [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $maxGracefulTerminationSec [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $scaleDownUtilizationThreshold [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $balanceSimilarNodeGroups [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $scaleDownUnreadyTime [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $okTotalUnreadyCount [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $scaleDownDelayAfterAdd [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] [string] $scaleDownDelayAfterDelete } function New-AzureNativeTypeContainerserviceManagedClusterPropertiesAutoScalerProfile { param ( [parameter(mandatory=$False,HelpMessage=')')] [string] $maxEmptyBulkDelete, [parameter(mandatory=$False,HelpMessage=')')] [string] $maxTotalUnreadyPercentage, [parameter(mandatory=$False,HelpMessage=')')] [string] [ValidateSet('least-waste', 'most-pods', 'priority', 'random')] $expander, [parameter(mandatory=$False,HelpMessage=')')] [string] $scaleDownUnneededTime, [parameter(mandatory=$False,HelpMessage=')')] [string] $newPodScaleUpDelay, [parameter(mandatory=$False,HelpMessage=')')] [string] $scanInterval, [parameter(mandatory=$False,HelpMessage=')')] [string] $maxNodeProvisionTime, [parameter(mandatory=$False,HelpMessage=')')] [string] $scaleDownDelayAfterFailure, [parameter(mandatory=$False,HelpMessage=')')] [string] $skipNodesWithLocalStorage, [parameter(mandatory=$False,HelpMessage=')')] [string] $skipNodesWithSystemPods, [parameter(mandatory=$False,HelpMessage=')')] [string] $maxGracefulTerminationSec, [parameter(mandatory=$False,HelpMessage=')')] [string] $scaleDownUtilizationThreshold, [parameter(mandatory=$False,HelpMessage=')')] [string] $balanceSimilarNodeGroups, [parameter(mandatory=$False,HelpMessage=')')] [string] $scaleDownUnreadyTime, [parameter(mandatory=$False,HelpMessage=')')] [string] $okTotalUnreadyCount, [parameter(mandatory=$False,HelpMessage=')')] [string] $scaleDownDelayAfterAdd, [parameter(mandatory=$False,HelpMessage=')')] [string] $scaleDownDelayAfterDelete ) process { return $([ManagedClusterPropertiesAutoScalerProfile]$PSBoundParameters) } } class ManagedClusterWindowsProfile { [ValidateSet('None', 'Windows_Server')] [string] $licenseType [ValidateSet('None', 'Windows_Server')] [string] $adminUsername [ValidateSet('None', 'Windows_Server')] [string] $adminPassword [ValidateSet('None', 'Windows_Server')] [bool] $enableCSIProxy } function New-AzureNativeTypeContainerserviceManagedClusterWindowsProfile { param ( [parameter(mandatory=$False,HelpMessage='The licenseType to use for Windows VMs. Windows_Server is used to enable Azure Hybrid User Benefits for Windows VMs.)')] [string] [ValidateSet('None', 'Windows_Server')] $licenseType, [parameter(mandatory=$False,HelpMessage='Specifies the name of the administrator account. <br><br> **restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length:** 1 character <br><br> **Max-length:** 20 characters)')] [string] $adminUsername, [parameter(mandatory=$False,HelpMessage='Specifies the password of the administrator account. <br><br> **Minimum-length:** 8 characters <br><br> **Max-length:** 123 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!")')] [string] $adminPassword, [parameter(mandatory=$False,HelpMessage='Whether to enable CSI proxy.)')] [bool] $enableCSIProxy ) process { return $([ManagedClusterWindowsProfile]$PSBoundParameters) } } class ManagedClusterLoadBalancerProfileManagedOutboundIPs { [ValidateSet('azure', 'kubenet')] [int] $count } function New-AzureNativeTypeContainerserviceManagedClusterLoadBalancerProfileManagedOutboundIPs { param ( [parameter(mandatory=$False,HelpMessage='Desired number of outbound IP created/managed by Azure for the cluster load balancer. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. )')] [int] $count ) process { return $([ManagedClusterLoadBalancerProfileManagedOutboundIPs]$PSBoundParameters) } } class ResourceReference { [ValidateSet('azure', 'kubenet')] [string] $id } function New-AzureNativeTypeContainerserviceResourceReference { param ( [parameter(mandatory=$False,HelpMessage='The fully qualified Azure resource id.)')] [string] $id ) process { return $([ResourceReference]$PSBoundParameters) } } class ManagedClusterLoadBalancerProfileOutboundIPs { [ValidateSet('azure', 'kubenet')] [ResourceReference[]] $publicIPs } function New-AzureNativeTypeContainerserviceManagedClusterLoadBalancerProfileOutboundIPs { param ( [parameter(mandatory=$False,HelpMessage='A list of public IP resources.)')] $publicIPs ) process { return $([ManagedClusterLoadBalancerProfileOutboundIPs]$PSBoundParameters) } } class ManagedClusterLoadBalancerProfileOutboundIPPrefixes { [ValidateSet('azure', 'kubenet')] [ResourceReference[]] $publicIPPrefixes } function New-AzureNativeTypeContainerserviceManagedClusterLoadBalancerProfileOutboundIPPrefixes { param ( [parameter(mandatory=$False,HelpMessage='A list of public IP prefix resources.)')] $publicIPPrefixes ) process { return $([ManagedClusterLoadBalancerProfileOutboundIPPrefixes]$PSBoundParameters) } } class ManagedClusterLoadBalancerProfile { [ValidateSet('azure', 'kubenet')] [ManagedClusterLoadBalancerProfileManagedOutboundIPs] $managedOutboundIPs [ValidateSet('azure', 'kubenet')] [ManagedClusterLoadBalancerProfileOutboundIPs] $outboundIPs [ValidateSet('azure', 'kubenet')] [ResourceReference[]] $effectiveOutboundIPs [ValidateSet('azure', 'kubenet')] [int] $allocatedOutboundPorts [ValidateSet('azure', 'kubenet')] [int] $idleTimeoutInMinutes [ValidateSet('azure', 'kubenet')] [ManagedClusterLoadBalancerProfileOutboundIPPrefixes] $outboundIPPrefixes } function New-AzureNativeTypeContainerserviceManagedClusterLoadBalancerProfile { param ( [parameter(mandatory=$False,HelpMessage='Desired managed outbound IPs for the cluster load balancer.)')] [ManagedClusterLoadBalancerProfileManagedOutboundIPs] $managedOutboundIPs, [parameter(mandatory=$False,HelpMessage='Desired outbound IP resources for the cluster load balancer.)')] [ManagedClusterLoadBalancerProfileOutboundIPs] $outboundIPs, [parameter(mandatory=$False,HelpMessage='The effective outbound IP resources of the cluster load balancer.)')] $effectiveOutboundIPs, [parameter(mandatory=$False,HelpMessage='Desired number of allocated SNAT ports per VM. Allowed values must be in the range of 0 to 64000 (inclusive). The default value is 0 which results in Azure dynamically allocating ports.)')] [int] $allocatedOutboundPorts, [parameter(mandatory=$False,HelpMessage='Desired outbound flow idle timeout in minutes. Allowed values must be in the range of 4 to 120 (inclusive). The default value is 30 minutes.)')] [int] $idleTimeoutInMinutes, [parameter(mandatory=$False,HelpMessage='Desired outbound IP Prefix resources for the cluster load balancer.)')] [ManagedClusterLoadBalancerProfileOutboundIPPrefixes] $outboundIPPrefixes ) process { return $([ManagedClusterLoadBalancerProfile]$PSBoundParameters) } } class ContainerServiceNetworkProfile { [ValidateSet('standard', 'basic')] [string] $loadBalancerSku [ValidateSet('standard', 'basic')] [string] $serviceCidr [ValidateSet('loadBalancer', 'userDefinedRouting')] [string] $outboundType [ValidateSet('loadBalancer', 'userDefinedRouting')] [string] $podCidr [ValidateSet('loadBalancer', 'userDefinedRouting')] [string] $dockerBridgeCidr [ValidateSet('azure', 'kubenet')] [string] $networkPlugin [ValidateSet('azure', 'kubenet')] [string] $dnsServiceIP [ValidateSet('azure', 'kubenet')] [ManagedClusterLoadBalancerProfile] $loadBalancerProfile [ValidateSet('transparent', 'bridge')] [string] $networkMode [ValidateSet('calico', 'azure')] [string] $networkPolicy } function New-AzureNativeTypeContainerserviceContainerServiceNetworkProfile { param ( [parameter(mandatory=$False,HelpMessage='The load balancer sku for the managed cluster.)')] [string] [ValidateSet('standard', 'basic')] $loadBalancerSku, [parameter(mandatory=$False,HelpMessage='A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges.)')] [string] $serviceCidr, [parameter(mandatory=$False,HelpMessage='The outbound (egress) routing method.)')] [string] [ValidateSet('loadBalancer', 'userDefinedRouting')] $outboundType, [parameter(mandatory=$False,HelpMessage='A CIDR notation IP range from which to assign pod IPs when kubenet is used.)')] [string] $podCidr, [parameter(mandatory=$False,HelpMessage='A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range.)')] [string] $dockerBridgeCidr, [parameter(mandatory=$False,HelpMessage='Network plugin used for building Kubernetes network.)')] [string] [ValidateSet('azure', 'kubenet')] $networkPlugin, [parameter(mandatory=$False,HelpMessage='An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr.)')] [string] $dnsServiceIP, [parameter(mandatory=$False,HelpMessage='Profile of the cluster load balancer.)')] [ManagedClusterLoadBalancerProfile] $loadBalancerProfile, [parameter(mandatory=$False,HelpMessage='Network mode used for building Kubernetes network.)')] [string] [ValidateSet('transparent', 'bridge')] $networkMode, [parameter(mandatory=$False,HelpMessage='Network policy used for building Kubernetes network.)')] [string] [ValidateSet('calico', 'azure')] $networkPolicy ) process { return $([ContainerServiceNetworkProfile]$PSBoundParameters) } } class ManagedClusterIdentity { [ValidateSet('SystemAssigned', 'UserAssigned', 'None')] [object] $type [ValidateSet('SystemAssigned', 'UserAssigned', 'None')] [object] $userAssignedIdentities } function New-AzureNativeTypeContainerserviceManagedClusterIdentity { param ( [parameter(mandatory=$False,HelpMessage='The type of identity used for the managed cluster. Type ''SystemAssigned'' will use an implicitly created identity in master components and an auto-created user assigned identity in MC_ resource group in agent nodes. Type ''None'' will not use MSI for the managed cluster, service principal will be used instead.)')] $type, [parameter(mandatory=$False,HelpMessage='The user identity associated with the managed cluster. This identity will be used in control plane and only one user assigned identity is allowed. The user identity dictionary key references will be ARM resource ids in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}''.)')] [object] $userAssignedIdentities ) process { return $([ManagedClusterIdentity]$PSBoundParameters) } } class ManagedClusterAPIServerAccessProfile { [string] $privateDNSZone [string[]] $authorizedIPRanges [bool] $enablePrivateCluster } function New-AzureNativeTypeContainerserviceManagedClusterAPIServerAccessProfile { param ( [parameter(mandatory=$False,HelpMessage='Private dns zone mode for private cluster. )')] [string] $privateDNSZone, [parameter(mandatory=$False,HelpMessage='Authorized IP Ranges to kubernetes API server.)')] [string[]] $authorizedIPRanges, [parameter(mandatory=$False,HelpMessage='Whether to create the cluster as a private cluster or not.)')] [bool] $enablePrivateCluster ) process { return $([ManagedClusterAPIServerAccessProfile]$PSBoundParameters) } } class ManagedClusterHTTPProxyConfig { [string] $httpsProxy [string[]] $noProxy [string] $trustedCa [string] $httpProxy } function New-AzureNativeTypeContainerserviceManagedClusterHTTPProxyConfig { param ( [parameter(mandatory=$False,HelpMessage='HTTPS proxy server endpoint to use.)')] [string] $httpsProxy, [parameter(mandatory=$False,HelpMessage='Endpoints that should not go through proxy.)')] [string[]] $noProxy, [parameter(mandatory=$False,HelpMessage='Alternative CA cert to use for connecting to proxy servers.)')] [string] $trustedCa, [parameter(mandatory=$False,HelpMessage='HTTP proxy server endpoint to use.)')] [string] $httpProxy ) process { return $([ManagedClusterHTTPProxyConfig]$PSBoundParameters) } } class ManagedClusterPropertiesIdentityProfile { [string] $resourceId [string] $objectId [string] $clientId } function New-AzureNativeTypeContainerserviceManagedClusterPropertiesIdentityProfile { param ( [parameter(mandatory=$False,HelpMessage='The resource id of the user assigned identity.)')] [string] $resourceId, [parameter(mandatory=$False,HelpMessage='The object id of the user assigned identity.)')] [string] $objectId, [parameter(mandatory=$False,HelpMessage='The client id of the user assigned identity.)')] [string] $clientId ) process { return $([ManagedClusterPropertiesIdentityProfile]$PSBoundParameters) } } class ManagedClusterSKU { [ValidateSet('Basic')] [string] $name [ValidateSet('Paid', 'Free')] [string] $tier } function New-AzureNativeTypeContainerserviceManagedClusterSKU { param ( [parameter(mandatory=$False,HelpMessage='Name of a managed cluster SKU.)')] [string] [ValidateSet('Basic')] $name, [parameter(mandatory=$False,HelpMessage='Tier of a managed cluster SKU.)')] [string] [ValidateSet('Paid', 'Free')] $tier ) process { return $([ManagedClusterSKU]$PSBoundParameters) } } class ExtendedLocation { [string] $name [ValidateSet('EdgeZone')] [string] $type } function New-AzureNativeTypeContainerserviceExtendedLocation { param ( [parameter(mandatory=$False,HelpMessage='The name of the extended location.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The type of the extended location.)')] [string] [ValidateSet('EdgeZone')] $type ) process { return $([ExtendedLocation]$PSBoundParameters) } } class ManagedClusterServicePrincipalProfile { [string] $secret [string] $clientId } function New-AzureNativeTypeContainerserviceManagedClusterServicePrincipalProfile { param ( [parameter(mandatory=$False,HelpMessage='The secret password associated with the service principal in plain text.)')] [string] $secret, [parameter(mandatory=$False,HelpMessage='The ID for the service principal.)')] [string] $clientId ) process { return $([ManagedClusterServicePrincipalProfile]$PSBoundParameters) } } class ManagedClusterAddonProfile { [object] $config [bool] $enabled } function New-AzureNativeTypeContainerserviceManagedClusterAddonProfile { param ( [parameter(mandatory=$False,HelpMessage='Key-value pairs for configuring an add-on.)')] [hashtable] $config, [parameter(mandatory=$False,HelpMessage='Whether the add-on is enabled or not.)')] [bool] $enabled ) process { return $([ManagedClusterAddonProfile]$PSBoundParameters) } } class ManagedClusterAutoUpgradeProfile { [ValidateSet('rapid', 'stable', 'patch', 'node-image', 'none')] [string] $upgradeChannel } function New-AzureNativeTypeContainerserviceManagedClusterAutoUpgradeProfile { param ( [parameter(mandatory=$False,HelpMessage='upgrade channel for auto upgrade.)')] [string] [ValidateSet('rapid', 'stable', 'patch', 'node-image', 'none')] $upgradeChannel ) process { return $([ManagedClusterAutoUpgradeProfile]$PSBoundParameters) } } function New-AzureNativeContainerserviceManagedCluster { [Alias('azure_native_containerservice_managedcluster')] param ( [parameter(mandatory=$False,HelpMessage='Profile for Linux VMs in the container service cluster.)')] [ContainerServiceLinuxProfile] $linuxProfile, [parameter(mandatory=$False,HelpMessage='Profile of managed cluster pod identity.)')] [ManagedClusterPodIdentityProfile] $podIdentityProfile, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Profile of Azure Active Directory configuration.)')] [ManagedClusterAADProfile] $aadProfile, [parameter(mandatory=$False,HelpMessage='Parameters to be applied to the cluster-autoscaler when enabled)')] [ManagedClusterPropertiesAutoScalerProfile] $autoScalerProfile, [parameter(mandatory=$False,HelpMessage='DNS prefix specified when creating the managed cluster.)')] [string] $dnsPrefix, [parameter(mandatory=$False,HelpMessage='Profile for Windows VMs in the container service cluster.)')] [ManagedClusterWindowsProfile] $windowsProfile, [parameter(mandatory=$False,HelpMessage='Name of the resource group containing agent pool nodes.)')] [string] $nodeResourceGroup, [parameter(mandatory=$False,HelpMessage='ResourceId of the disk encryption set to use for enabling encryption at rest.)')] [string] $diskEncryptionSetID, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Properties of the agent pool.)')] $agentPoolProfiles, [parameter(mandatory=$False,HelpMessage='Profile of network configuration.)')] [ContainerServiceNetworkProfile] $networkProfile, [parameter(mandatory=$False,HelpMessage='The identity of the managed cluster, if configured.)')] [ManagedClusterIdentity] $identity, [parameter(mandatory=$False,HelpMessage='Access profile for managed cluster API server.)')] [ManagedClusterAPIServerAccessProfile] $apiServerAccessProfile, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Configurations for provisioning the cluster with HTTP proxy servers.)')] [ManagedClusterHTTPProxyConfig] $httpProxyConfig, [parameter(mandatory=$False,HelpMessage='Identities associated with the cluster.)')] [ManagedClusterPropertiesIdentityProfile] $identityProfile, [parameter(mandatory=$False,HelpMessage='The managed cluster SKU.)')] [ManagedClusterSKU] $sku, [parameter(mandatory=$False,HelpMessage='The extended location of the Virtual Machine.)')] [ExtendedLocation] $extendedLocation, [parameter(mandatory=$False,HelpMessage='Whether to enable Kubernetes Role-Based Access Control.)')] [bool] $enableRBAC, [parameter(mandatory=$False,HelpMessage='Private link resources associated with the cluster.)')] $privateLinkResources, [parameter(mandatory=$False,HelpMessage='Information about a service principal identity for the cluster to use for manipulating Azure APIs.)')] [ManagedClusterServicePrincipalProfile] $servicePrincipalProfile, [parameter(mandatory=$False,HelpMessage='(DEPRECATING) Whether to enable Kubernetes pod security policy (preview). This feature is set for removal on October 15th, 2020. Learn more at aka.ms/aks/azpodpolicy.)')] [bool] $enablePodSecurityPolicy, [parameter(mandatory=$False,HelpMessage='Profile of managed cluster add-on.)')] [ManagedClusterAddonProfile] $addonProfiles, [parameter(mandatory=$False,HelpMessage='Version of Kubernetes specified when creating the managed cluster.)')] [string] $kubernetesVersion, [parameter(mandatory=$False,HelpMessage='FQDN subdomain specified when creating private cluster with custom private dns zone.)')] [string] $fqdnSubdomain, [parameter(mandatory=$False,HelpMessage='Profile of auto upgrade configuration.)')] [ManagedClusterAutoUpgradeProfile] $autoUpgradeProfile, [parameter(mandatory=$False,HelpMessage='If set to true, getting static credential will be disabled for this cluster. Expected to only be used for AAD clusters.)')] [bool] $disableLocalAccounts, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:containerservice:ManagedCluster") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'linuxProfile') { $resource.properties["linuxProfile"] = $linuxProfile } if($PSBoundParameters.Keys -icontains 'podIdentityProfile') { $resource.properties["podIdentityProfile"] = $podIdentityProfile } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'aadProfile') { $resource.properties["aadProfile"] = $aadProfile } if($PSBoundParameters.Keys -icontains 'autoScalerProfile') { $resource.properties["autoScalerProfile"] = $autoScalerProfile } if($PSBoundParameters.Keys -icontains 'dnsPrefix') { $resource.properties["dnsPrefix"] = $dnsPrefix } if($PSBoundParameters.Keys -icontains 'windowsProfile') { $resource.properties["windowsProfile"] = $windowsProfile } if($PSBoundParameters.Keys -icontains 'nodeResourceGroup') { $resource.properties["nodeResourceGroup"] = $nodeResourceGroup } if($PSBoundParameters.Keys -icontains 'diskEncryptionSetID') { $resource.properties["diskEncryptionSetID"] = $diskEncryptionSetID } if($PSBoundParameters.Keys -icontains 'agentPoolProfiles') { $resource.properties["agentPoolProfiles"] = $agentPoolProfiles } if($PSBoundParameters.Keys -icontains 'networkProfile') { $resource.properties["networkProfile"] = $networkProfile } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'apiServerAccessProfile') { $resource.properties["apiServerAccessProfile"] = $apiServerAccessProfile } if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'httpProxyConfig') { $resource.properties["httpProxyConfig"] = $httpProxyConfig } if($PSBoundParameters.Keys -icontains 'identityProfile') { $resource.properties["identityProfile"] = $identityProfile } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'extendedLocation') { $resource.properties["extendedLocation"] = $extendedLocation } if($PSBoundParameters.Keys -icontains 'enableRBAC') { $resource.properties["enableRBAC"] = $enableRBAC } if($PSBoundParameters.Keys -icontains 'privateLinkResources') { $resource.properties["privateLinkResources"] = $privateLinkResources } if($PSBoundParameters.Keys -icontains 'servicePrincipalProfile') { $resource.properties["servicePrincipalProfile"] = $servicePrincipalProfile } if($PSBoundParameters.Keys -icontains 'enablePodSecurityPolicy') { $resource.properties["enablePodSecurityPolicy"] = $enablePodSecurityPolicy } if($PSBoundParameters.Keys -icontains 'addonProfiles') { $resource.properties["addonProfiles"] = $addonProfiles } if($PSBoundParameters.Keys -icontains 'kubernetesVersion') { $resource.properties["kubernetesVersion"] = $kubernetesVersion } if($PSBoundParameters.Keys -icontains 'fqdnSubdomain') { $resource.properties["fqdnSubdomain"] = $fqdnSubdomain } if($PSBoundParameters.Keys -icontains 'autoUpgradeProfile') { $resource.properties["autoUpgradeProfile"] = $autoUpgradeProfile } if($PSBoundParameters.Keys -icontains 'disableLocalAccounts') { $resource.properties["disableLocalAccounts"] = $disableLocalAccounts } $global:pulumiresources += $resource return $resource } } class CreationData { [string] $sourceResourceId } function New-AzureNativeTypeContainerserviceCreationData { param ( [parameter(mandatory=$False,HelpMessage='This is the ARM ID of the source object to be used to create the target object.)')] [string] $sourceResourceId ) process { return $([CreationData]$PSBoundParameters) } } function New-AzureNativeContainerserviceManagedClusterSnapshot { [Alias('azure_native_containerservice_managedclustersnapshot')] param ( [parameter(mandatory=$False,HelpMessage='CreationData to be used to specify the source resource ID to create this snapshot.)')] [CreationData] $creationData, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The type of a snapshot. The default is NodePool.)')] [string] [ValidateSet('NodePool')] $snapshotType, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:containerservice:ManagedClusterSnapshot") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'creationData') { $resource.properties["creationData"] = $creationData } if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } if($PSBoundParameters.Keys -icontains 'snapshotType') { $resource.properties["snapshotType"] = $snapshotType } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class AgentPoolUpgradeSettings { [string] $maxSurge } function New-AzureNativeTypeContainerserviceAgentPoolUpgradeSettings { param ( [parameter(mandatory=$False,HelpMessage='Count or percentage of additional nodes to be added during upgrade. If empty uses AKS default)')] [string] $maxSurge ) process { return $([AgentPoolUpgradeSettings]$PSBoundParameters) } } class SysctlConfig { [string] $netIpv4IpLocalPortRange [int] $netCoreRmemDefault [int] $netCoreRmemMax [int] $netCoreNetdevMaxBacklog [int] $netNetfilterNfConntrackBuckets [bool] $netIpv4TcpTwReuse [int] $netIpv4TcpFinTimeout [int] $kernelThreadsMax [int] $netIpv4TcpKeepaliveProbes [int] $fsInotifyMaxUserWatches [int] $netIpv4NeighDefaultGcThresh1 [int] $netCoreWmemMax [int] $fsAioMaxNr [int] $netIpv4TcpMaxTwBuckets [int] $netIpv4TcpKeepaliveTime [int] $netIpv4NeighDefaultGcThresh2 [int] $netCoreSomaxconn [int] $vmMaxMapCount [int] $netIpv4NeighDefaultGcThresh3 [int] $netIpv4TcpMaxSynBacklog [int] $vmVfsCachePressure [int] $vmSwappiness [int] $netCoreOptmemMax [int] $netCoreWmemDefault [int] $fsNrOpen [int] $netNetfilterNfConntrackMax [int] $fsFileMax [int] $netIpv4TcpkeepaliveIntvl } function New-AzureNativeTypeContainerserviceSysctlConfig { param ( [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.ip_local_port_range.)')] [string] $netIpv4IpLocalPortRange, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.core.rmem_default.)')] [int] $netCoreRmemDefault, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.core.rmem_max.)')] [int] $netCoreRmemMax, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.core.netdev_max_backlog.)')] [int] $netCoreNetdevMaxBacklog, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.netfilter.nf_conntrack_buckets.)')] [int] $netNetfilterNfConntrackBuckets, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.tcp_tw_reuse.)')] [bool] $netIpv4TcpTwReuse, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.tcp_fin_timeout.)')] [int] $netIpv4TcpFinTimeout, [parameter(mandatory=$False,HelpMessage='Sysctl setting kernel.threads-max.)')] [int] $kernelThreadsMax, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.tcp_keepalive_probes.)')] [int] $netIpv4TcpKeepaliveProbes, [parameter(mandatory=$False,HelpMessage='Sysctl setting fs.inotify.max_user_watches.)')] [int] $fsInotifyMaxUserWatches, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.neigh.default.gc_thresh1.)')] [int] $netIpv4NeighDefaultGcThresh1, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.core.wmem_max.)')] [int] $netCoreWmemMax, [parameter(mandatory=$False,HelpMessage='Sysctl setting fs.aio-max-nr.)')] [int] $fsAioMaxNr, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.tcp_max_tw_buckets.)')] [int] $netIpv4TcpMaxTwBuckets, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.tcp_keepalive_time.)')] [int] $netIpv4TcpKeepaliveTime, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.neigh.default.gc_thresh2.)')] [int] $netIpv4NeighDefaultGcThresh2, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.core.somaxconn.)')] [int] $netCoreSomaxconn, [parameter(mandatory=$False,HelpMessage='Sysctl setting vm.max_map_count.)')] [int] $vmMaxMapCount, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.neigh.default.gc_thresh3.)')] [int] $netIpv4NeighDefaultGcThresh3, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.tcp_max_syn_backlog.)')] [int] $netIpv4TcpMaxSynBacklog, [parameter(mandatory=$False,HelpMessage='Sysctl setting vm.vfs_cache_pressure.)')] [int] $vmVfsCachePressure, [parameter(mandatory=$False,HelpMessage='Sysctl setting vm.swappiness.)')] [int] $vmSwappiness, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.core.optmem_max.)')] [int] $netCoreOptmemMax, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.core.wmem_default.)')] [int] $netCoreWmemDefault, [parameter(mandatory=$False,HelpMessage='Sysctl setting fs.nr_open.)')] [int] $fsNrOpen, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.netfilter.nf_conntrack_max.)')] [int] $netNetfilterNfConntrackMax, [parameter(mandatory=$False,HelpMessage='Sysctl setting fs.file-max.)')] [int] $fsFileMax, [parameter(mandatory=$False,HelpMessage='Sysctl setting net.ipv4.tcp_keepalive_intvl.)')] [int] $netIpv4TcpkeepaliveIntvl ) process { return $([SysctlConfig]$PSBoundParameters) } } class LinuxOSConfig { [SysctlConfig] $sysctls [string] $transparentHugePageDefrag [string] $transparentHugePageEnabled [int] $swapFileSizeMB } function New-AzureNativeTypeContainerserviceLinuxOSConfig { param ( [parameter(mandatory=$False,HelpMessage='Sysctl settings for Linux agent nodes.)')] [SysctlConfig] $sysctls, [parameter(mandatory=$False,HelpMessage='Transparent Huge Page defrag configuration.)')] [string] $transparentHugePageDefrag, [parameter(mandatory=$False,HelpMessage='Transparent Huge Page enabled configuration.)')] [string] $transparentHugePageEnabled, [parameter(mandatory=$False,HelpMessage='SwapFileSizeMB specifies size in MB of a swap file will be created on each node.)')] [int] $swapFileSizeMB ) process { return $([LinuxOSConfig]$PSBoundParameters) } } class KubeletConfig { [int] $containerLogMaxSizeMB [bool] $cpuCfsQuota [int] $imageGcLowThreshold [string[]] $allowedUnsafeSysctls [int] $podMaxPids [int] $containerLogMaxFiles [bool] $failSwapOn [string] $cpuManagerPolicy [string] $topologyManagerPolicy [int] $imageGcHighThreshold [string] $cpuCfsQuotaPeriod } function New-AzureNativeTypeContainerserviceKubeletConfig { param ( [parameter(mandatory=$False,HelpMessage='The maximum size (e.g. 10Mi) of container log file before it is rotated.)')] [int] $containerLogMaxSizeMB, [parameter(mandatory=$False,HelpMessage='Enable CPU CFS quota enforcement for containers that specify CPU limits.)')] [bool] $cpuCfsQuota, [parameter(mandatory=$False,HelpMessage='The percent of disk usage before which image garbage collection is never run.)')] [int] $imageGcLowThreshold, [parameter(mandatory=$False,HelpMessage='Allowlist of unsafe sysctls or unsafe sysctl patterns (ending in `*`).)')] [string[]] $allowedUnsafeSysctls, [parameter(mandatory=$False,HelpMessage='The maximum number of processes per pod.)')] [int] $podMaxPids, [parameter(mandatory=$False,HelpMessage='The maximum number of container log files that can be present for a container. The number must be ≥ 2.)')] [int] $containerLogMaxFiles, [parameter(mandatory=$False,HelpMessage='If set to true it will make the Kubelet fail to start if swap is enabled on the node.)')] [bool] $failSwapOn, [parameter(mandatory=$False,HelpMessage='CPU Manager policy to use.)')] [string] $cpuManagerPolicy, [parameter(mandatory=$False,HelpMessage='Topology Manager policy to use.)')] [string] $topologyManagerPolicy, [parameter(mandatory=$False,HelpMessage='The percent of disk usage after which image garbage collection is always run.)')] [int] $imageGcHighThreshold, [parameter(mandatory=$False,HelpMessage='Sets CPU CFS quota period value.)')] [string] $cpuCfsQuotaPeriod ) process { return $([KubeletConfig]$PSBoundParameters) } } function New-AzureNativeContainerserviceAgentPool { [Alias('azure_native_containerservice_agentpool')] param ( [parameter(mandatory=$False,HelpMessage='AgentPoolType represents types of an agent pool)')] [string] [ValidateSet('VirtualMachineScaleSets', 'AvailabilitySet')] $type, [parameter(mandatory=$False,HelpMessage='Agent pool tags to be persisted on the agent pool virtual machine scale set.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='Pod SubnetID specifies the VNet''s subnet identifier for pods.)')] [string] $podSubnetID, [parameter(mandatory=$False,HelpMessage='Maximum number of nodes for auto-scaling)')] [int] $maxCount, [parameter(mandatory=$False,HelpMessage='Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.)')] [string[]] $nodeTaints, [parameter(mandatory=$False,HelpMessage='OsSKU to be used to specify os sku. Choose from Ubuntu(default) and CBLMariner for Linux OSType. Not applicable to Windows OSType.)')] [string] [ValidateSet('Ubuntu', 'CBLMariner')] $osSKU, [parameter(mandatory=$False,HelpMessage='Public IP Prefix ID. VM nodes use IPs assigned from this Public IP Prefix.)')] [string] $nodePublicIPPrefixID, [parameter(mandatory=$False,HelpMessage='Version of orchestrator specified when creating the managed cluster.)')] [string] $orchestratorVersion, [parameter(mandatory=$False,HelpMessage='ScaleSetEvictionPolicy to be used to specify eviction policy for Spot virtual machine scale set. Default to Delete.)')] [string] [ValidateSet('Delete', 'Deallocate')] $scaleSetEvictionPolicy, [parameter(mandatory=$False,HelpMessage='GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU. Supported values are MIG1g, MIG2g, MIG3g, MIG4g and MIG7g.)')] [string] [ValidateSet('MIG1g', 'MIG2g', 'MIG3g', 'MIG4g', 'MIG7g')] $gpuInstanceProfile, [parameter(mandatory=$False,HelpMessage='OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.)')] [int] $osDiskSizeGB, [parameter(mandatory=$False,HelpMessage='ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular.)')] [string] [ValidateSet('Spot', 'Regular')] $scaleSetPriority, [parameter(mandatory=$False,HelpMessage='Maximum number of pods that can run on a node.)')] [int] $maxPods, [parameter(mandatory=$False,HelpMessage='VNet SubnetID specifies the VNet''s subnet identifier for nodes and maybe pods)')] [string] $vnetSubnetID, [parameter(mandatory=$False,HelpMessage='Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 100 (inclusive) for user pools and in the range of 1 to 100 (inclusive) for system pools. The default value is 1.)')] [int] $count, [parameter(mandatory=$False,HelpMessage='Whether to enable EncryptionAtHost)')] [bool] $enableEncryptionAtHost, [parameter(mandatory=$False,HelpMessage='Settings for upgrading the agentpool)')] [AgentPoolUpgradeSettings] $upgradeSettings, [parameter(mandatory=$False,HelpMessage='OS disk type to be used for machines in a given agent pool. Allowed values are ''Ephemeral'' and ''Managed''. If unspecified, defaults to ''Ephemeral'' when the VM supports ephemeral OS and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to ''Managed''. May not be changed after creation.)')] [string] [ValidateSet('Managed', 'Ephemeral')] $osDiskType, [parameter(mandatory=$False,HelpMessage='LinuxOSConfig specifies the OS configuration of linux agent nodes.)')] [LinuxOSConfig] $linuxOSConfig, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='KubeletConfig specifies the configuration of kubelet on agent nodes.)')] [KubeletConfig] $kubeletConfig, [parameter(mandatory=$False,HelpMessage='AgentPoolMode represents mode of an agent pool)')] [string] [ValidateSet('System', 'User')] $mode, [parameter(mandatory=$False,HelpMessage='Agent pool node labels to be persisted across all nodes in agent pool.)')] [hashtable] $nodeLabels, [parameter(mandatory=$False,HelpMessage='KubeletDiskType determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage. Currently allows one value, OS, resulting in Kubelet using the OS disk for data.)')] [string] [ValidateSet('OS', 'Temporary')] $kubeletDiskType, [parameter(mandatory=$False,HelpMessage='Size of agent VMs.)')] [string] $vmSize, [parameter(mandatory=$False,HelpMessage='Whether to use FIPS enabled OS)')] [bool] $enableFIPS, [parameter(mandatory=$False,HelpMessage='Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType.)')] [string[]] $availabilityZones, [parameter(mandatory=$False,HelpMessage='Whether to enable auto-scaler)')] [bool] $enableAutoScaling, [parameter(mandatory=$False,HelpMessage='SpotMaxPrice to be used to specify the maximum price you are willing to pay in US Dollars. Possible values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand.)')] [int] $spotMaxPrice, [parameter(mandatory=$False,HelpMessage='The ID for Proximity Placement Group.)')] [string] $proximityPlacementGroupID, [parameter(mandatory=$False,HelpMessage='Enable public IP for nodes)')] [bool] $enableNodePublicIP, [parameter(mandatory=$False,HelpMessage='The name of the agent pool.)')] [string] $agentPoolName, [parameter(mandatory=$False,HelpMessage='OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.)')] [string] [ValidateSet('Linux', 'Windows')] $osType, [parameter(mandatory=$False,HelpMessage='Minimum number of nodes for auto-scaling)')] [int] $minCount, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:containerservice:AgentPool") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'type') { $resource.properties["type"] = $type } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'podSubnetID') { $resource.properties["podSubnetID"] = $podSubnetID } if($PSBoundParameters.Keys -icontains 'maxCount') { $resource.properties["maxCount"] = $maxCount } if($PSBoundParameters.Keys -icontains 'nodeTaints') { $resource.properties["nodeTaints"] = $nodeTaints } if($PSBoundParameters.Keys -icontains 'osSKU') { $resource.properties["osSKU"] = $osSKU } if($PSBoundParameters.Keys -icontains 'nodePublicIPPrefixID') { $resource.properties["nodePublicIPPrefixID"] = $nodePublicIPPrefixID } if($PSBoundParameters.Keys -icontains 'orchestratorVersion') { $resource.properties["orchestratorVersion"] = $orchestratorVersion } if($PSBoundParameters.Keys -icontains 'scaleSetEvictionPolicy') { $resource.properties["scaleSetEvictionPolicy"] = $scaleSetEvictionPolicy } if($PSBoundParameters.Keys -icontains 'gpuInstanceProfile') { $resource.properties["gpuInstanceProfile"] = $gpuInstanceProfile } if($PSBoundParameters.Keys -icontains 'osDiskSizeGB') { $resource.properties["osDiskSizeGB"] = $osDiskSizeGB } if($PSBoundParameters.Keys -icontains 'scaleSetPriority') { $resource.properties["scaleSetPriority"] = $scaleSetPriority } if($PSBoundParameters.Keys -icontains 'maxPods') { $resource.properties["maxPods"] = $maxPods } if($PSBoundParameters.Keys -icontains 'vnetSubnetID') { $resource.properties["vnetSubnetID"] = $vnetSubnetID } if($PSBoundParameters.Keys -icontains 'count') { $resource.properties["count"] = $count } if($PSBoundParameters.Keys -icontains 'enableEncryptionAtHost') { $resource.properties["enableEncryptionAtHost"] = $enableEncryptionAtHost } if($PSBoundParameters.Keys -icontains 'upgradeSettings') { $resource.properties["upgradeSettings"] = $upgradeSettings } if($PSBoundParameters.Keys -icontains 'osDiskType') { $resource.properties["osDiskType"] = $osDiskType } if($PSBoundParameters.Keys -icontains 'linuxOSConfig') { $resource.properties["linuxOSConfig"] = $linuxOSConfig } if($PSBoundParameters.Keys -icontains 'kubeletConfig') { $resource.properties["kubeletConfig"] = $kubeletConfig } if($PSBoundParameters.Keys -icontains 'mode') { $resource.properties["mode"] = $mode } if($PSBoundParameters.Keys -icontains 'nodeLabels') { $resource.properties["nodeLabels"] = $nodeLabels } if($PSBoundParameters.Keys -icontains 'kubeletDiskType') { $resource.properties["kubeletDiskType"] = $kubeletDiskType } if($PSBoundParameters.Keys -icontains 'vmSize') { $resource.properties["vmSize"] = $vmSize } if($PSBoundParameters.Keys -icontains 'enableFIPS') { $resource.properties["enableFIPS"] = $enableFIPS } if($PSBoundParameters.Keys -icontains 'availabilityZones') { $resource.properties["availabilityZones"] = $availabilityZones } if($PSBoundParameters.Keys -icontains 'enableAutoScaling') { $resource.properties["enableAutoScaling"] = $enableAutoScaling } if($PSBoundParameters.Keys -icontains 'spotMaxPrice') { $resource.properties["spotMaxPrice"] = $spotMaxPrice } if($PSBoundParameters.Keys -icontains 'proximityPlacementGroupID') { $resource.properties["proximityPlacementGroupID"] = $proximityPlacementGroupID } if($PSBoundParameters.Keys -icontains 'enableNodePublicIP') { $resource.properties["enableNodePublicIP"] = $enableNodePublicIP } if($PSBoundParameters.Keys -icontains 'agentPoolName') { $resource.properties["agentPoolName"] = $agentPoolName } if($PSBoundParameters.Keys -icontains 'osType') { $resource.properties["osType"] = $osType } if($PSBoundParameters.Keys -icontains 'minCount') { $resource.properties["minCount"] = $minCount } $global:pulumiresources += $resource return $resource } } function New-AzureNativeContainerserviceMaintenanceConfiguration { [Alias('azure_native_containerservice_maintenanceconfiguration')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The name of the maintenance configuration.)')] [string] $configName, [parameter(mandatory=$False,HelpMessage='Time slots on which upgrade is not allowed.)')] $notAllowedTime, [parameter(mandatory=$False,HelpMessage='Weekday time slots allowed to upgrade.)')] $timeInWeek, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:containerservice:MaintenanceConfiguration") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'configName') { $resource.properties["configName"] = $configName } if($PSBoundParameters.Keys -icontains 'notAllowedTime') { $resource.properties["notAllowedTime"] = $notAllowedTime } if($PSBoundParameters.Keys -icontains 'timeInWeek') { $resource.properties["timeInWeek"] = $timeInWeek } $global:pulumiresources += $resource return $resource } } function New-AzureNativeContainerserviceSnapshot { [Alias('azure_native_containerservice_snapshot')] param ( [parameter(mandatory=$False,HelpMessage='CreationData to be used to specify the source agent pool resource ID to create this snapshot.)')] [CreationData] $creationData, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The type of a snapshot. The default is NodePool.)')] [string] [ValidateSet('NodePool')] $snapshotType, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:containerservice:Snapshot") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'creationData') { $resource.properties["creationData"] = $creationData } if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } if($PSBoundParameters.Keys -icontains 'snapshotType') { $resource.properties["snapshotType"] = $snapshotType } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class PrivateEndpoint { [string] $id } function New-AzureNativeTypeContainerservicePrivateEndpoint { param ( [parameter(mandatory=$False,HelpMessage='The resource Id for private endpoint)')] [string] $id ) process { return $([PrivateEndpoint]$PSBoundParameters) } } class PrivateLinkServiceConnectionState { [ValidateSet('Pending', 'Approved', 'Rejected', 'Disconnected')] [string] $status [ValidateSet('Pending', 'Approved', 'Rejected', 'Disconnected')] [string] $description } function New-AzureNativeTypeContainerservicePrivateLinkServiceConnectionState { param ( [parameter(mandatory=$False,HelpMessage='The private link service connection status.)')] [string] [ValidateSet('Pending', 'Approved', 'Rejected', 'Disconnected')] $status, [parameter(mandatory=$False,HelpMessage='The private link service connection description.)')] [string] $description ) process { return $([PrivateLinkServiceConnectionState]$PSBoundParameters) } } function New-AzureNativeContainerservicePrivateEndpointConnection { [Alias('azure_native_containerservice_privateendpointconnection')] param ( [parameter(mandatory=$False,HelpMessage='The resource of private endpoint.)')] [PrivateEndpoint] $privateEndpoint, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection.)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A collection of information about the state of the connection between service consumer and provider.)')] [PrivateLinkServiceConnectionState] $privateLinkServiceConnectionState, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:containerservice:PrivateEndpointConnection") $resource.properties["privateLinkServiceConnectionState"] = $privateLinkServiceConnectionState $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'privateEndpoint') { $resource.properties["privateEndpoint"] = $privateEndpoint } if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } $global:pulumiresources += $resource return $resource } } class OpenShiftManagedClusterAADIdentityProvider { [string] $kind [string] $secret [string] $tenantId [string] $clientId [string] $customerAdminGroupId } function New-AzureNativeTypeContainerserviceOpenShiftManagedClusterAADIdentityProvider { param ( [parameter(mandatory=$False,HelpMessage='The kind of the provider. Expected value is ''AADIdentityProvider''.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='The secret password associated with the provider.)')] [string] $secret, [parameter(mandatory=$False,HelpMessage='The tenantId associated with the provider.)')] [string] $tenantId, [parameter(mandatory=$False,HelpMessage='The clientId password associated with the provider.)')] [string] $clientId, [parameter(mandatory=$False,HelpMessage='The groupId to be granted cluster admin role.)')] [string] $customerAdminGroupId ) process { return $([OpenShiftManagedClusterAADIdentityProvider]$PSBoundParameters) } } class OpenShiftManagedClusterIdentityProvider { [string] $name [OpenShiftManagedClusterAADIdentityProvider] $provider } function New-AzureNativeTypeContainerserviceOpenShiftManagedClusterIdentityProvider { param ( [parameter(mandatory=$False,HelpMessage='Name of the provider.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Configuration of the provider.)')] [OpenShiftManagedClusterAADIdentityProvider] $provider ) process { return $([OpenShiftManagedClusterIdentityProvider]$PSBoundParameters) } } class OpenShiftManagedClusterAuthProfile { [OpenShiftManagedClusterIdentityProvider[]] $identityProviders } function New-AzureNativeTypeContainerserviceOpenShiftManagedClusterAuthProfile { param ( [parameter(mandatory=$False,HelpMessage='Type of authentication profile to use.)')] $identityProviders ) process { return $([OpenShiftManagedClusterAuthProfile]$PSBoundParameters) } } class PurchasePlan { [string] $promotionCode [string] $name [string] $product [string] $publisher } function New-AzureNativeTypeContainerservicePurchasePlan { param ( [parameter(mandatory=$False,HelpMessage='The promotion code.)')] [string] $promotionCode, [parameter(mandatory=$False,HelpMessage='The plan ID.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.)')] [string] $product, [parameter(mandatory=$False,HelpMessage='The plan ID.)')] [string] $publisher ) process { return $([PurchasePlan]$PSBoundParameters) } } class OpenShiftManagedClusterMasterPoolProfile { [string] $subnetCidr [int] $count [ValidateSet('Linux', 'Windows')] [string] $osType [ValidateSet('Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s')] [string] $vmSize [ValidateSet('Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s')] [string] $name } function New-AzureNativeTypeContainerserviceOpenShiftManagedClusterMasterPoolProfile { param ( [parameter(mandatory=$False,HelpMessage='Subnet CIDR for the peering.)')] [string] $subnetCidr, [parameter(mandatory=$False,HelpMessage='Number of masters (VMs) to host docker containers. The default value is 3.)')] [int] $count, [parameter(mandatory=$False,HelpMessage='OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.)')] [string] [ValidateSet('Linux', 'Windows')] $osType, [parameter(mandatory=$False,HelpMessage='Size of agent VMs.)')] [string] [ValidateSet('Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s')] $vmSize, [parameter(mandatory=$False,HelpMessage='Unique name of the master pool profile in the context of the subscription and resource group.)')] [string] $name ) process { return $([OpenShiftManagedClusterMasterPoolProfile]$PSBoundParameters) } } class NetworkProfile { [string] $vnetId [string] $vnetCidr [string] $peerVnetId } function New-AzureNativeTypeContainerserviceNetworkProfile { param ( [parameter(mandatory=$False,HelpMessage='ID of the Vnet created for OSA cluster.)')] [string] $vnetId, [parameter(mandatory=$False,HelpMessage='CIDR for the OpenShift Vnet.)')] [string] $vnetCidr, [parameter(mandatory=$False,HelpMessage='CIDR of the Vnet to peer.)')] [string] $peerVnetId ) process { return $([NetworkProfile]$PSBoundParameters) } } function New-AzureNativeContainerserviceOpenShiftManagedCluster { [Alias('azure_native_containerservice_openshiftmanagedcluster')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the OpenShift managed cluster resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='Configures OpenShift authentication.)')] [OpenShiftManagedClusterAuthProfile] $authProfile, [parameter(mandatory=$False,HelpMessage='Define the resource plan as required by ARM for billing purposes)')] [PurchasePlan] $plan, [parameter(mandatory=$False,HelpMessage='Version of OpenShift specified when creating the cluster.)')] [string] $openShiftVersion, [parameter(mandatory=$False,HelpMessage='Configuration for OpenShift router(s).)')] $routerProfiles, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Configuration for OpenShift master VMs.)')] [OpenShiftManagedClusterMasterPoolProfile] $masterPoolProfile, [parameter(mandatory=$False,HelpMessage='Configuration of OpenShift cluster VMs.)')] $agentPoolProfiles, [parameter(mandatory=$False,HelpMessage='Configuration for OpenShift networking.)')] [NetworkProfile] $networkProfile, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:containerservice:OpenShiftManagedCluster") $resource.properties["openShiftVersion"] = $openShiftVersion $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } if($PSBoundParameters.Keys -icontains 'authProfile') { $resource.properties["authProfile"] = $authProfile } if($PSBoundParameters.Keys -icontains 'plan') { $resource.properties["plan"] = $plan } if($PSBoundParameters.Keys -icontains 'routerProfiles') { $resource.properties["routerProfiles"] = $routerProfiles } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'masterPoolProfile') { $resource.properties["masterPoolProfile"] = $masterPoolProfile } if($PSBoundParameters.Keys -icontains 'agentPoolProfiles') { $resource.properties["agentPoolProfiles"] = $agentPoolProfiles } if($PSBoundParameters.Keys -icontains 'networkProfile') { $resource.properties["networkProfile"] = $networkProfile } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeContainerserviceTrustedAccessRoleBinding { [Alias('azure_native_containerservice_trustedaccessrolebinding')] param ( [parameter(mandatory=$False,HelpMessage='The ARM resource ID of source resource that trusted access is configured for.)')] [string] $sourceResourceId, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A list of roles to bind, each item is a resource type qualified role name. For example: ''Microsoft.MachineLearningServices/workspaces/reader''.)')] [string[]] $roles, [parameter(mandatory=$False,HelpMessage='The name of trusted access role binding.)')] [string] $trustedAccessRoleBindingName, [parameter(mandatory=$False,HelpMessage='The name of the managed cluster resource.)')] [string] $resourceName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:containerservice:TrustedAccessRoleBinding") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName $resource.properties["roles"] = $roles $resource.properties["sourceResourceId"] = $sourceResourceId if($PSBoundParameters.Keys -icontains 'trustedAccessRoleBindingName') { $resource.properties["trustedAccessRoleBindingName"] = $trustedAccessRoleBindingName } $global:pulumiresources += $resource return $resource } } |