param virtualNetworks_GRU_VN_02_name string = 'GRU_VN_01' param applicationGateways_GRU_Sub_02_name string = 'GRU_VN_AG_02' param applicationGateways_GRU_AG_02_name string = 'GRU_AG_02' resource applicationGateways_GRU_AG_02_name_resource 'Microsoft.Network/applicationGateways@2020-11-01' = { name: applicationGateways_GRU_AG_02_name location: 'eastus2' zones: [ '1' ] properties: { sku: { name: 'Standard_v2' tier: 'Standard_v2' } gatewayIPConfigurations: [ { name: 'appGatewayIpConfig' properties: { subnet: { id: resourceId('microsoft.network/virtualnetworks/subnets', applicationGateways_GRU_AG_02_name, applicationGateways_GRU_Sub_02_name) } } } ] sslCertificates: [ { name: 'StarGRUcom' properties: {} } ] trustedRootCertificates: [] trustedClientCertificates: [] sslProfiles: [] frontendIPConfigurations: [ { name: 'appGwPublicFrontendIp' properties: { privateIPAllocationMethod: 'Dynamic' publicIPAddress: { id: resourceId('Microsoft.Network/publicipaddresses', 'GRU_Pub_02') } } } ] frontendPorts: [ { name: 'port_443' properties: { port: 443 } } ] backendAddressPools: [ { name: 'GRU_Back_02' properties: { backendAddresses: [ { ipAddress: '198.190.222.40' } { ipAddress: '198.190.222.11' } ] } } ] probes: [ { name: 'GRU_ADFS_02' properties: { protocol: 'Https' host: 'gruadfs.gru.com' path: '/adfs/ls/idpinitiatedsignon.aspx' interval: 30 timeout: 30 unhealthyThreshold: 3 pickHostNameFromBackendHttpSettings: false minServers: 0 match: {} } } ] backendHttpSettingsCollection: [ { name: 'GRU_ADFS_Set_02' properties: { port: 443 protocol: 'Https' cookieBasedAffinity: 'Enabled' connectionDraining: { enabled: true drainTimeoutInSec: 60 } pickHostNameFromBackendAddress: false affinityCookieName: 'GRU_ApplicationGatewayAffinity' requestTimeout: 20 // probe: { // id: ResourceId('microsoft.network/applicationgateways/probes', applicationGateways_GRU_AG_02_name, 'GRU_ADFS_02') // } } } ] httpListeners: [ { name: 'GRU_Listen_02' properties: { frontendIPConfiguration: { id: ResourceId('microsoft.network/applicationgateways/frontendipconfigurations', applicationGateways_GRU_AG_02_name, 'appgatewayfrontendip') } frontendPort: { id: ResourceId('microsoft.network/applicationgateways/frontendports', applicationGateways_GRU_AG_02_name, 'Port_443') } protocol: 'Https' sslCertificate: { id: resourceId('microsoft.network/applicationgateways/sslcertificates', applicationGateways_GRU_AG_02_name, 'StarGRUcom') } hostNames: [] requireServerNameIndication: false } } ] urlPathMaps: [] requestRoutingRules: [ { name: 'GRU_Route_02' properties: { ruleType: 'Basic' httpListener: { id: resourceId('microsoft.network/applicationgateways/httplisteners', applicationGateways_GRU_AG_02_name, 'GRU_Listen_02') } backendAddressPool: { id: resourceId('microsoft.network/applicationgateways/backendaddresspools', applicationGateways_GRU_AG_02_name, 'GRU_Back_02') } backendHttpSettings: { id: resourceId('microsoft.network/applicationgateways/backendhttpsettingscollection', applicationGateways_GRU_AG_02_name, 'GRU_ADFS_Set_02') } } } ] rewriteRuleSets: [] redirectConfigurations: [] privateLinkConfigurations: [] enableHttp2: false autoscaleConfiguration: { minCapacity: 0 maxCapacity: 10 } } } resource virtualNetworks_GRU_VN_02_name_GRU_VN_Back_02 'Microsoft.Network/virtualNetworks/subnets@2020-11-01' = { name: '${virtualNetworks_GRU_VN_02_name}/GRU_VN_Back_02' properties: { addressPrefix: '10.0.4.0/24' delegations: [] privateEndpointNetworkPolicies: 'Enabled' privateLinkServiceNetworkPolicies: 'Enabled' } } output MyExpressionResult0 string = resourceId('microsoft.network/applicationgateways/probes', 'GRU_AG_01', 'GRU_ADFS_01') output MyExpressionResult1 string = resourceId('microsoft.network/applicationgateways/frontendports', 'GRU_AG_01', 'port_443') output MyExpressionResult2 string = resourceId('microsoft.network/applicationgateways/frontendipconfigurations', 'GRU_AG_01', 'appGwPublicFrontendIp')