Skip to content

Get-AzDataFactoryV2IntegrationRuntime does not return the Status when using -Status with -ResourceId or -InputObject #29615

Open

Description

Description

Get-AzDataFactoryV2IntegrationRuntime provides the -Status option to be used with ByIntegrationRuntimeName, ByResourceId, and ByIntegrationRuntimeObject. It will only return the Status with ByIntegrationRuntimeName.

The issue appears to be that the name for Integration Runtime is set for ResourceId and InputObject in IntegrationRuntimeCmdlet.cs. But, GetAzureDataFactoryIntegrationRuntimeCommand.cs declares its own Name string to make it not mandatory, so the change that happens in IntegrationRuntimeCmdlet is now out of scope and GetAzureDataFactoryIntegrationRuntimeCommand never sees it being set.

The solution appears to be to change the declaration of the Name string in IntegrationRuntimeCmdlet.cs to 'virtual' and to change the declaration in GetAzureDataFactoryIntegrationRuntimeCommand.cs from 'new' to 'override'.

diff --git a/src/DataFactory/DataFactoryV2/IntegrationRuntimes/GetAzureDataFactoryIntegrationRuntimeCommand.cs b/src/DataFactory/DataFactoryV2/IntegrationRuntimes/GetAzureDataFactoryIntegrationRuntimeCommand.cs
index cec6fae3f60..0efb8e5130f 100644
--- a/src/DataFactory/DataFactoryV2/IntegrationRuntimes/GetAzureDataFactoryIntegrationRuntimeCommand.cs
+++ b/src/DataFactory/DataFactoryV2/IntegrationRuntimes/GetAzureDataFactoryIntegrationRuntimeCommand.cs
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.DataFactoryV2
             HelpMessage = Constants.HelpIntegrationRuntimeName)]
         [ValidateNotNullOrEmpty]
         [Alias(Constants.IntegrationRuntimeName)]
-        public new string Name { get; set; }
+        public override string Name { get; set; }

         [Parameter(Mandatory = false,
             HelpMessage = Constants.HelpIntegrationRuntimeStatus)]
diff --git a/src/DataFactory/DataFactoryV2/IntegrationRuntimes/IntegrationRuntimeCmdlet.cs b/src/DataFactory/DataFactoryV2/IntegrationRuntimes/IntegrationRuntimeCmdlet.cs
index a2ad9c0b625..180a5c57997 100644
--- a/src/DataFactory/DataFactoryV2/IntegrationRuntimes/IntegrationRuntimeCmdlet.cs
+++ b/src/DataFactory/DataFactoryV2/IntegrationRuntimes/IntegrationRuntimeCmdlet.cs
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.DataFactoryV2
             HelpMessage = Constants.HelpIntegrationRuntimeName)]
         [ValidateNotNullOrEmpty]
         [Alias(Constants.IntegrationRuntimeName)]
-        public string Name { get; set; }
+        public virtual string Name { get; set; }

         protected override void ByResourceId()
         {

Issue script & Debug output

PS C:\Users\testuser> Get-AzDataFactoryV2IntegrationRuntime -ResourceId $ir.Id -Status
DEBUG: 4:47:02 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 4:47:02 PM - GetAzureDataFactoryIntegrationRuntimeCommand begin processing with ParameterSet 'ByResourceId'.
DEBUG: 4:47:02 PM - using account id '<USER_REDACTED>'...
DEBUG: 4:47:02 PM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.DataFactory], Cmdlet = [Get-AzDataFactoryV2IntegrationRuntime]. Returning default value [True].
DEBUG: [Common.Authentication]: Authenticating using Account: '<USER_REDACTED>', environment: 'AzureCloud', tenant: '<TENANT_REDACTED>'
DEBUG: 4:47:02 PM - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: 4:47:02 PM - [ConfigManager] Got nothing from [EnableLoginByWam], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 4:47:02 PM - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'<TENANT_REDACTED>', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'<USER_REDACTED>'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 05147372-d3d3-4297-9ceb-a3491ceb64cb] ==== GetAccounts started - GetAccounts ====
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 05147372-d3d3-4297-9ceb-a3491ceb64cb] Account id filter: False
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 0. PartitionKey  False
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Internal cache] Total number of cache partitions found while getting accounts: 1. PartitionKey  False
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 05147372-d3d3-4297-9ceb-a3491ceb64cb] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 05147372-d3d3-4297-9ceb-a3491ceb64cb] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 05147372-d3d3-4297-9ceb-a3491ceb64cb] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 05147372-d3d3-4297-9ceb-a3491ceb64cb] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 05147372-d3d3-4297-9ceb-a3491ceb64cb] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Runtime] Broker supported OS.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [RuntimeBroker] ListWindowsWorkAndSchoolAccounts option was not enabled.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 6dae0940-3f59-4b51-b2cd-8ef67624127c] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] Found 1 cache accounts and 0 broker accounts
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] Returning 1 accounts
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] MSAL MSAL.CoreCLR with assembly version '4.83.1.0'. CorrelationId(579ba8f2-93ab-4ae1-85a0-663795d79ea5)
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] LoginHint provided: False
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] Account provided: True
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] ForceRefresh: False
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] 
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) - 
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - True
HomeAccountId - False
CorrelationId - 579ba8f2-93ab-4ae1-85a0-663795d79ea5
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured: 
FMI Path: 
Credential FMI Path:
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] === Token Acquisition (SilentRequest) started:
	 Scopes: https://management.core.windows.net//.default
	Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] Broker is configured and enabled, attempting to use broker instead.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Runtime] Broker supported OS.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] Can invoke broker. Will attempt to acquire token with broker.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0007]	INFO   	SetAuthorityUri:78	Initializing authority from URI 'https://login.microsoftonline.com/<TENANT_REDACTED>/' without authority type, defaulting to MsSts
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:464	Printing Telemetry for Correlation ID: 579ba8f2-93ab-4ae1-85a0-663795d79ea5
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: start_time, Value: 2026-05-15T22:47:02.000Z
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: api_name, Value: ReadAccountById
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: was_request_throttled, Value: false
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: authority_type, Value: Unknown
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: msal_version, Value: 9.0.0
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: correlation_id, Value: 579ba8f2-93ab-4ae1-85a0-663795d79ea5
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: broker_app_used, Value: false
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: stop_time, Value: 2026-05-15T22:47:02.000Z
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: msalruntime_version, Value: 0.20.2
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: is_successful, Value: true
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	LogTelemetryData:472	Key: request_duration, Value: 0
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	SetCorrelationId:239	Set correlation ID: 579ba8f2-93ab-4ae1-85a0-663795d79ea5
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	EnqueueBackgroundRequest:1039	The original authority is 'https://login.microsoftonline.com/<TENANT_REDACTED>'
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	ModifyAndValidateAuthParameters:214	Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	ModifyAndValidateAuthParameters:214	Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	ModifyAndValidateAuthParameters:214	Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	INFO   	ModifyAndValidateAuthParameters:237	Authority Realm: <TENANT_REDACTED>
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0052]	WARNING	TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1090	MsaDeviceOperationProvider is not available. Not attempting to register the device.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	TryUseStorage:144	Try to read account from universal storage.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	StorageTokenResponse:84	StorageTokenResponse account constructor invoked. This is only expected in Runtime flows
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:464	Printing Telemetry for Correlation ID: 579ba8f2-93ab-4ae1-85a0-663795d79ea5
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: start_time, Value: 2026-05-15T22:47:02.000Z
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: api_name, Value: AcquireTokenSilently
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: was_request_throttled, Value: false
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: authority_type, Value: AAD
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: access_token_expiry_time, Value: 2026-05-15T23:33:54.000Z
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: read_token, Value: ID|AT
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: msal_version, Value: 9.0.0
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: client_id, Value: 1950a258-227b-4e31-a9cf-717495945fc2
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: correlation_id, Value: 579ba8f2-93ab-4ae1-85a0-663795d79ea5
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: broker_app_used, Value: false
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: stop_time, Value: 2026-05-15T22:47:02.000Z
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: msalruntime_version, Value: 0.20.2
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: original_authority, Value: https://login.microsoftonline.com/<TENANT_REDACTED>
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: additional_query_parameters_count, Value: 3
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: storage_read, Value: DAC|DAT|DID
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: auth_flow, Value: AT
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: is_successful, Value: true
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: authorization_type, Value: WindowsIntegratedAuth
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:472	Key: request_duration, Value: 3
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:477	Printing Execution Flow:
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [MSAL:0003]	INFO   	LogTelemetryData:485	{"t":"4s7uc","tid":52,"ts":0,"l":2},{"t":"4sufd","tid":52,"ts":0,"s":3,"l":2},{"t":"4swgg","tid":52,"ts":0,"s":48,"l":2},{"t":"4swgf","tid":52,"ts":0,"s":1,"l":2},{"t":"4swgi","tid":3,"ts":0,"s":48,"l":2},{"t":"8b2yn","tid":3,"ts":0,"l":2},{"t":"8dqkx","tid":3,"ts":0,"l":2},{"t":"8dqik","tid":3,"ts":0,"l":2},{"t":"4q2di","tid":3,"ts":0,"l":2},{"t":"4qnng","tid":3,"ts":0,"l":2,"a":2,"ie":0},{"t":"4qnnf","tid":3,"ts":1,"l":2,"a":2,"ie":1},{"t":"8dqit","tid":3,"ts":1,"l":2},{"t":"8b2ht","tid":3,"ts":1,"l":2},{"t":"4qnno","tid":3,"ts":1,"l":2,"a":2,"ie":0},{"t":"4qnnn","tid":3,"ts":4,"l":2,"a":2,"ie":1},{"t":"6xuag","tid":3,"ts":4,"l":2}
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [RuntimeBroker] WAM response status success
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] Checking MsalTokenResponse returned from broker.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] Success. Response contains an access token.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] Checking client info returned from the server..
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] Saving token response to cache..
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] [Instance Discovery] Instance discovery is enabled and will be performed
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] [SaveTokenResponseAsync] Saving Id Token and Account in cache ...
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 0. PartitionKey  False
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Internal cache] Total number of cache partitions found while getting access tokens: 0
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] [CalculateSuggestedCacheExpiry] No access tokens or refresh tokens found in the accessor. Not returning any expiration.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Internal cache] Total number of cache partitions found while getting access tokens: 0
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 0. PartitionKey  False
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z] [Internal cache] Total number of cache partitions found while getting accounts: 1. PartitionKey  False
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] 
	=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5]  AT expiration time: 5/15/2026 11:33:53 PM +00:00, scopes: https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source: Broker
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] Fetched access token from host login.microsoftonline.com.
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] 
[LogMetricsFromAuthResult] Cache Refresh Reason: NotApplicable
[LogMetricsFromAuthResult] DurationInCacheInMs: 1
[LogMetricsFromAuthResult] DurationTotalInMs: 14
[LogMetricsFromAuthResult] DurationInHttpInMs: 0
DEBUG: False MSAL 4.83.1.0 MSAL.CoreCLR .NET 10.0.6 Microsoft Windows 10.0.26100 [2026-05-15 22:47:02Z - 579ba8f2-93ab-4ae1-85a0-663795d79ea5] TokenEndpoint: ****
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2026-05-15T23:33:53.8308920+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '<TENANT_REDACTED>', UserId: '<USER_REDACTED>'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/<SUBSCRIPTION_REDACTED>/resourceGroups/rg-test/providers/Microsoft.DataFactory/factories/df-test/integrationRuntimes?api-version=2018-06-01

Headers:
Accept-Language               : en-US
x-ms-client-request-id        : 19412d0f-d0d7-4fb8-8c66-c2b3edcf7810

Body:
DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
x-ms-correlation-request-id   : d35680a7-d9a9-45c1-9c56-0aa9b2a77051
x-ms-operation-identifier     : tenantId=<TENANT_REDACTED>,[REDACTED:cloud_identifier]/westus2/01226c0b-e16b-4fea-bb69-5d6601b35d0f
x-ms-ratelimit-remaining-subscription-reads: 249
x-ms-ratelimit-remaining-subscription-global-reads: 3749
x-ms-request-id               : d35680a7-d9a9-45c1-9c56-0aa9b2a77051
x-ms-routing-request-id       : WESTUS2:20260515T224703Z:d35680a7-d9a9-45c1-9c56-0aa9b2a77051
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: D8EB6BB089864748A3D9436DBFC96EBE Ref B: MWH011020806040 Ref C: 2026-05-15T22:47:03Z
Date                          : Fri, 15 May 2026 22:47:02 GMT

Body:
{
  "value": [
    {
      "id": "/subscriptions/<SUBSCRIPTION_REDACTED>/resourceGroups/rg-test/providers/Microsoft.DataFactory/factories/df-test/integrationruntimes/integrationRuntime-df-shared",
      "name": "integrationRuntime-df-shared",
      "type": "Microsoft.DataFactory/factories/integrationruntimes",
      "properties": {
        "type": "SelfHosted",
        "typeProperties": {
          "linkedInfo": {
            "resourceId": "/subscriptions/<SUBSCRIPTION_REDACTED>/resourcegroups/rg-test/providers/Microsoft.DataFactory/factories/df-test/integrationruntimes/SelfHostedIntegrationRuntime1",
            "authorizationType": "Rbac"
          }
        }
      },
      "etag": "ef017861-0000-0800-0000-626ff98e0000"
    }
  ]
}
DEBUG: 4:47:03 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].

AuthorizationType                        : RBAC
SelfContainedInteractiveAuthoringEnabled : 
Name                                     : integrationRuntime-df-shared
Type                                     : SelfHosted
ResourceGroupName                        : rg-test
DataFactoryName                          : df-test
Description                              : 
Id                                       : /subscriptions/<SUBSCRIPTION_REDACTED>/resourceGroups/rg-test/providers/Microsoft.DataFactory/factories/df-test/integrationr
                                           untimes/integrationRuntime-df-shared

DEBUG: 4:47:03 PM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 4:47:03 PM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 4:47:03 PM - No authentication telemetry is found for the current cmdlet with Id 19412d0f-d0d7-4fb8-8c66-c2b3edcf7810.
DEBUG: AzureQoSEvent:  Module: Az.DataFactory:1.19.7; CommandName: Get-AzDataFactoryV2IntegrationRuntime; PSVersion: 7.6.1; IsSuccess: True; Duration: 00:00:00.3994489; SanitizeDuration: 00:00:00.0000406
DEBUG: 4:47:03 PM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 4:47:03 PM - GetAzureDataFactoryIntegrationRuntimeCommand end processing.

Environment data

Name                           Value
----                           -----
PSVersion                      7.6.1
PSEdition                      Core
GitCommitId                    7.6.1
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     5.4.0                 Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     1.19.7                Az.DataFactory                      {Add-AzDataFactoryV2DataFlowDebugSessionPackage, Add-AzDataFactoryV2TriggerSubscription, Get-AzDataFactory, Get-AzDataFactoryActivityWindo…

Error output

No output

Activity

  1. added
    bugThis issue requires a change to an existing behavior in the product in order to be resolved.
    needs-triageThis is a new issue that needs to be triaged to the appropriate team.
    on May 15, 2026
  2. added
    needs-triageThis is a new issue that needs to be triaged to the appropriate team.
    and removed
    needs-triageThis is a new issue that needs to be triaged to the appropriate team.
    on May 15, 2026
  3. x-engineering-agent commented on Oct 4, 2026

    @x-engineering-agent

    Automated sensitive-information remediation ran on this issue.

    • Detected categories: cloud identifier
    • Replaced with typed [REDACTED:category] placeholders in: issue description
    • Comment owners notified because X Engineering Agent cannot edit another user's comment: none

    If a credential was exposed, rotate or revoke it immediately. Detected values are never copied into this comment.

    ✅ Confirm the finding · ❌ Dispute the finding

    GitHub only supports a fixed reaction set, so 👍 represents ✅ and 👎 represents ❌. The bot-created reactions are only poll choices.

  4. x-engineering-agent commented on Oct 4, 2026

    @x-engineering-agent

    Bug Analysis

    Affected module: Az.DataFactory (src/DataFactory/)

    Suggested PR title: [DataFactory] Fix integration runtime status lookup by resource ID and input object

    The report supplies a concrete reproducer: Get-AzDataFactoryV2IntegrationRuntime -ResourceId $ir.Id -Status returns integration-runtime objects instead of the selected runtime's status. The equivalent -InputObject form is affected; the explicit name form works. No additional environment information is needed to investigate this parameter-binding defect.

    Current-source evidence

    At main commit 0cb9e3f782e99b6a9b8dd4d70edce8663864f9ab, IntegrationRuntimeCmdlet.cs writes the resolved resource/object name into its own Name property. GetAzureDataFactoryIntegrationRuntimeCommand.cs declares a separate new Name property. Its ExecuteCmdlet calls the base normalization methods, then tests the still-null hidden property and takes ListIntegrationRuntimesAsync instead of GetIntegrationRuntimeStatusAsync. This is source-confirmed control flow, not a claimed live reproduction.

    Requirements for the fix

    • Use one effective integration-runtime name across the name, resource-ID and input-object parameter sets. Making the base property virtual and the Get override explicit is a focused approach; preserve PowerShell binding attributes, aliases and pipeline behavior. The Get name must remain optional for listing, while other integration-runtime cmdlets retain their existing required-name behavior.
    • Extend src/DataFactory/DataFactoryV2.Test/ScenarioTests/IntegrationRuntimeTests.ps1 and its IntegrationRuntimeTests.cs entry points with resource-ID and input-object -Status cases. Assert the returned status belongs to the requested runtime and is the expected status shape, not merely a nonempty list. Cover explicit-name status lookup, the corresponding non-status lookups, input-object pipeline binding and name-omitted listing so the fix does not change those existing behaviors.
    • Keep tests re-recordable and use existing fixture-generated names/IDs rather than hardcoded environment values. Update the relevant src/DataFactory/DataFactoryV2.Test/SessionRecords/ recordings where request paths or responses change, and run the focused DataFactory V2 build and integration-runtime regression coverage in the implementation environment. Any Agent live run is dispatched later through the configured workflow; none was run during this analysis.
    • Target main, keep implementation changes within src/DataFactory/, add the customer-facing fix under ## Upcoming Release in src/DataFactory/DataFactory/ChangeLog.md, complete the PR template and include Fixes #29615.

    Mandatory Codegen execution protocol

    Before editing implementation files, inspect src/DataFactory/ and determine whether the affected cmdlet belongs to a *.Autorest project. Classify the change before editing: REST schema and operation defects belong in the pinned Azure/azure-rest-api-specs input; PowerShell-specific public surface shaping belongs in the project README.md directives; non-modelable client behavior belongs in handwritten custom/; examples and tests remain handwritten. Do not directly synthesize or patch generated C#, proxy scripts, docs/, manifests, models, or the committed top-level generated/ tree.

    Use the Azure PowerShell repository's Codegen MCP documentation. Invoke its generate-autorest tool with the absolute *.Autorest working directory when that MCP tool is available. Otherwise execute the same repository-owned non-interactive sequence documented by the tool implementation:

    cd <absolute-path-to-Project.Autorest>
    autorest --reset
    autorest
    pwsh -File build-module.ps1

    You MUST actually run Codegen after changing its durable inputs; do not merely describe these commands in the pull request. If the required tools cannot be installed or any generation step fails, stop and report the blocker instead of hand-authoring a substitute. Commit the complete generated diff, including a Codegen-created change to generate-info.json (the exact filename; never fabricate its generate_Id), then inspect the diff and run the focused module build, help, StaticAnalysis, and tests. A change confined to handwritten custom/, examples/, or completed tests does not become generated merely because it is inside a *.Autorest project.

    PR title & description (azure-powershell)

    Follow CONTRIBUTING.md. azure-powershell does not enforce a strict title gate — it requires a clear, informative title and a fully filled-out PR template.

    Suggested PR title (clear & informative; [Module] prefix is the common convention):

    [DataFactory] Fix integration runtime status lookup by resource ID and input object
    

    Required (per CONTRIBUTING.md):

    • Fill out the PR template completely — PRs are not reviewed without the completed checklist; do not delete it.
    • Link the issue — include Fixes #29615 in the description so the PR auto-closes it.
    • ChangeLog — add a bullet describing the fix under the ## Upcoming Release header of src/DataFactory/DataFactory/ChangeLog.md. Do not add a new version header.
    • Target branch — main.
    • Tests — add/adjust test coverage for the change. Tests must not contain hardcoded values (location, resource id, etc.) and must be re-recordable; do not skip existing tests.
    • AutoRest/Codegen — if the change touches a *.Autorest project, run the repository's approved Codegen flow and include all regenerated artifacts, including that project's changed generate-info.json. Do not submit only hand-edited AutoRest source or generated output.
    • Scope — keep the change limited to the affected module (src/DataFactory/).

    Posted by x-engineering-agent (Fixer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions