`Get-AzBatchJobSchedule` cmdlet cannot be worked fine.
Description
Get-AzBatchJobSchedule cmdlet cannot be worked fine.
Please see detail below.
Steps to reproduce
$AccountName = <BatchAccountName>
$JobId = <BatchJobId>
$Account = Get-AzBatchAccountKeys -AccountName $AccountName
Get-AzBatchJobSchedule -Id $JobId -BatchContext $Account
Environment data
Name Value
---- -----
PSVersion 5.1.18362.113
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.113
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Module versions
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.5.2 Az.Accounts {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}
Script 1.2.1 Az.Accounts {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}
Script 1.0.1 Az.Aks {Get-AzAks, New-AzAks, Remove-AzAks, Import-AzAksCredential...}
Script 1.0.1 Az.AnalysisServices {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServer...}
Script 1.0.0 Az.ApiManagement {Add-AzApiManagementRegion, Get-AzApiManagementSsoToken, New-AzApiManagementCustomHostnameConfiguration, New-AzApiManagementSystemCertificate...}
Script 1.0.0 Az.ApplicationInsights {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Set-AzApplicationInsightsPricingPlan...}
Script 1.1.0 Az.Automation {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRecord, Import-AzAutomationDscNodeConfiguration...}
Script 1.1.0 Az.Batch {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount...}
Script 1.0.0 Az.Batch {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKeys, New-AzBatchAccount...}
Script 1.0.0 Az.Billing {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget...}
Script 1.0.1 Az.Cdn {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}
Script 1.0.0 Az.CognitiveServices {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSkus, Get-AzCognitiveServicesAccountType...}
Script 1.2.0 Az.Compute {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet...}
Script 1.0.0 Az.ContainerInstance {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInstanceLog}
Script 1.0.1 Az.ContainerRegistry {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContainerRegistry...}
Script 1.0.1 Az.DataFactory {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...}
Script 1.0.0 Az.DataLakeAnalytics {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-AzDataLakeAnalyticsCatalogCredential...}
Script 1.0.2 Az.DataLakeStore {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataLakeStoreTrustedIdProvider...}
Script 1.0.0 Az.DevTestLabs {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy...}
Script 1.0.0 Az.Dns {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet...}
Script 1.1.0 Az.EventGrid {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey...}
Script 1.0.0 Az.EventHub {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace...}
Script 1.0.0 Az.HDInsight {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition...}
Script 1.0.2 Az.IotHub {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob...}
Script 1.0.1 Az.KeyVault {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation...}
Script 1.1.0 Az.LogicApp {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountCallbackUrl, Get-AzIntegrationAccountCertificate, Get-AzIntegrationAccount...}
Script 1.0.0 Az.MachineLearning {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan...}
Script 1.0.0 Az.MarketplaceOrdering {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}
Script 1.0.0 Az.Media {Sync-AzMediaServiceStorageKeys, Set-AzMediaServiceKey, Get-AzMediaServiceKeys, Get-AzMediaServiceNameAvailability...}
Script 1.0.0 Az.Monitor {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...}
Script 1.1.0 Az.Network {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, Remove-AzApplicationGatewayAuthenticationCertificate...}
Script 1.0.0 Az.NotificationHubs {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRules, Get-AzNotificationHubListKeys, Get-AzNotificationHubPNSCredentials...}
Script 1.0.0 Az.OperationalInsights {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperationalInsightsIISLogCollection...}
Script 1.0.0 Az.PolicyInsights {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...}
Script 1.0.0 Az.PowerBIEmbedded {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKeys, Get-AzPowerBIWorkspace...}
Script 1.0.1 Az.RecoveryServices {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServicesVault...}
Script 1.0.0 Az.RedisCache {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule...}
Script 1.0.0 Az.Relay {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace...}
Script 1.1.1 Az.Resources {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...}
Script 1.0.0 Az.ServiceBus {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace...}
Script 1.0.1 Az.ServiceFabric {Add-AzServiceFabricApplicationCertificate, Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFabricNode...}
Script 1.0.2 Az.SignalR {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey...}
Script 1.1.0 Az.Sql {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseUpgradeHint...}
Script 1.0.2 Az.Storage {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey...}
Script 1.0.0 Az.StreamAnalytics {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStreamAnalyticsFunction, Remove-AzStreamAnalyticsFunction...}
Script 1.0.1 Az.TrafficManager {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Remove-AzTrafficManagerCustomHeaderFromProfile...}
Script 1.1.0 Az.Websites {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...}
Debug output
Get-AzBatchJobSchedule -Id job1 -BatchContext $Account
デバッグ: 12:03:09 - GetBatchJobScheduleCommand begin processing with ParameterSet 'Id'.
デバッグ: 12:03:09 - using account id '[email protected]'...
デバッグ: [Common.Authentication]: Authenticating using Account: '[email protected]', environment: 'AzureCloud', tenant: '72f988bf-86f1-41af-91ab-2d7cd011db47'
デバッグ: [Common.Authentication]: Authenticating using configuration values: Domain: '72f988bf-86f1-41af-91ab-2d7cd011db47', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob',
ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
デバッグ: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
デバッグ: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: '72f988bf-86f1-41af-91ab-2d7cd011db47', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6637437Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is
running...
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6637437Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is
running...
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6637437Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: === Token Acquisition started:
CacheType: null
Authentication Target: User
, Authority Host: login.microsoftonline.com
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6637437Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: === Token Acquisition started:
Authority: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: null
Authentication Target: User
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:09.6637437Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: Loading from cache.
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:09.6637437Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: Loading from cache.
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6687425Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 9 items to token cache.
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:09.6687425Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: Looking up cache for a token...
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:09.6687425Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: Looking up cache for a token...
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6687425Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: An item matching the requested resource was found in the cache
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6687425Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: An item matching the requested resource was found in the cache
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6687425Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: An expired or near expiry token was found in the cache
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6687425Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: An expired or near expiry token was found in the cache
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6687425Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache
デバッグ: [ADAL]: Information: 2019-05-30T03:03:09.6687425Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:09.6687425Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: Refreshing access token...
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:09.6687425Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: Refreshing access token...
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:10.7327716Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: Storing token in the cache...
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:10.7327716Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: Storing token in the cache...
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:10.7327716Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: An item was stored in the cache
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:10.7327716Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: An item was stored in the cache
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7327716Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2019/05/30 4:03:10 +00:00
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7337730Z: 8a526947-62d8-4597-bef1-df009d9510b1 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2019/05/30 4:03:10 +00:00Access Token Hash:
EtDkrsQ+B3CZY6ovOeezfBylOr/iQ84pslFn6nVS5Hw=
User id: 5380af22-7839-41ae-8b4f-c2d3a5d0a661
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7337730Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Serializing token cache with 9 items.
デバッグ: [Common.Authentication]: Authenticating using Account: '[email protected]', environment: 'AzureCloud', tenant: '72f988bf-86f1-41af-91ab-2d7cd011db47'
デバッグ: [Common.Authentication]: Authenticating using configuration values: Domain: '72f988bf-86f1-41af-91ab-2d7cd011db47', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob',
ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
デバッグ: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
デバッグ: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: '72f988bf-86f1-41af-91ab-2d7cd011db47', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7407735Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is
running...
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7407735Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is
running...
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7417736Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: === Token Acquisition started:
CacheType: null
Authentication Target: User
, Authority Host: login.microsoftonline.com
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7417736Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: === Token Acquisition started:
Authority: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: null
Authentication Target: User
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:10.7417736Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: Loading from cache.
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:10.7417736Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: Loading from cache.
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7417736Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 9 items to token cache.
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:10.7417736Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: Looking up cache for a token...
デバッグ: [ADAL]: Verbose: 2019-05-30T03:03:10.7417736Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: Looking up cache for a token...
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7417736Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: An item matching the requested resource was found in the cache
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7417736Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: An item matching the requested resource was found in the cache
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7417736Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: 59.9998371066667 minutes left until token in cache expires
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7427723Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: 59.9998371066667 minutes left until token in cache expires
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7427723Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7427723Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7427723Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2019/05/30 4:03:10 +00:00
デバッグ: [ADAL]: Information: 2019-05-30T03:03:10.7427723Z: e9c202b9-9aa9-49b3-8d95-53ae110e730f - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2019/05/30 4:03:10 +00:00Access Token Hash:
EtDkrsQ+B3CZY6ovOeezfBylOr/iQ84pslFn6nVS5Hw=
User id: 5380af22-7839-41ae-8b4f-c2d3a5d0a661
Get-AzBatchJobSchedule : ファイルまたはアセンブリ 'Microsoft.Extensions.Primitives, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'、またはその依存関係の 1 つが読み込めませんでした。指定されたファイルが見つかりません。
発生場所 行:1 文字:1
+ Get-AzBatchJobSchedule -Id job1 -BatchContext $Account
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzBatchJobSchedule]、FileNotFoundException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Batch.GetBatchJobScheduleCommand
デバッグ: AzureQoSEvent: CommandName - Get-AzBatchJobSchedule; IsSuccess - False; Duration - 00:01:04.2790716; Exception - System.IO.FileNotFoundException: ファイルまたはアセンブリ 'Microsoft.Extensions.Primitives, Version=1.0.1.0, Culture=neutral,
PublicKeyToken=adb9793829ddae60'、またはその依存関係の 1 つが読み込めませんでした。指定されたファイルが見つかりません。
ファイル名 'Microsoft.Extensions.Primitives, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' です。'Microsoft.Extensions.Primitives, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
場所 Microsoft.Azure.Batch.Protocol.BatchSharedKeyCredential.ProcessHttpRequestAsync(HttpRequestMessage httpRequest, CancellationToken cancellationToken)
場所 Microsoft.Azure.Batch.Protocol.JobScheduleOperations.<GetWithHttpMessagesAsync>d__7.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 Microsoft.Azure.Batch.Protocol.BatchRequestBase`2.<ExecuteRequestWithCancellationAsync>d__42.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 Microsoft.Azure.Batch.Protocol.BatchRequestBase`2.<ExecuteRequestAsync>d__40.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 Microsoft.Azure.Batch.Protocol.BatchRequestBase`2.<ExecuteRequestAsync>d__40.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 Microsoft.Azure.Batch.ProtocolLayer.<ProcessAndExecuteBatchRequest>d__86`1.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 Microsoft.Azure.Batch.JobScheduleOperations.<GetJobScheduleAsync>d__7.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 Microsoft.Azure.Batch.UtilitiesInternal.WaitAndUnaggregateException[T](Task`1 task)
場所 Microsoft.Azure.Batch.UtilitiesInternal.WaitAndUnaggregateException[T](Task`1 task, IEnumerable`1 rootBehaviors, IEnumerable`1 additionalBehaviors)
場所 Microsoft.Azure.Batch.JobScheduleOperations.GetJobSchedule(String jobScheduleId, DetailLevel detailLevel, IEnumerable`1 additionalBehaviors)
場所 Microsoft.Azure.Commands.Batch.Models.BatchClient.ListJobSchedules(ListJobScheduleOptions options)
場所 Microsoft.Azure.Commands.Batch.GetBatchJobScheduleCommand.ExecuteCmdlet()
場所 Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
警告: アセンブリ バインドのログ記録がオフにされています。
アセンブリ バインドのエラー ログを有効にするには、レジストリ値 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) を 1 に設定してください。
注意: アセンブリ バインドのエラー ログに関連するパフォーマンス ペナルティがあります。
この機能をオフにするには、レジストリ値 [HKLM\Software\Microsoft\Fusion!EnableLog] を削除します。
;
デバッグ: Finish sending metric.
デバッグ: 12:04:15 - GetBatchJobScheduleCommand end processing.
デバッグ: 12:04:15 - GetBatchJobScheduleCommand end processing.
Error output
Resolve-AzError
デバッグ: 12:06:07 - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
デバッグ: 12:06:07 - using account id '[email protected]'...
HistoryId: 39
Message : ファイルまたはアセンブリ 'Microsoft.Extensions.Primitives, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'、またはその依存関係の 1 つが読み込めませんでした。指定されたファイルが見つかりません。
StackTrace : 場所 Microsoft.Azure.Batch.Protocol.BatchSharedKeyCredential.ProcessHttpRequestAsync(HttpRequestMessage httpRequest, CancellationToken cancellationToken)
場所 Microsoft.Azure.Batch.Protocol.JobScheduleOperations.<GetWithHttpMessagesAsync>d__7.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 Microsoft.Azure.Batch.Protocol.BatchRequestBase`2.<ExecuteRequestWithCancellationAsync>d__42.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 Microsoft.Azure.Batch.Protocol.BatchRequestBase`2.<ExecuteRequestAsync>d__40.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 Microsoft.Azure.Batch.Protocol.BatchRequestBase`2.<ExecuteRequestAsync>d__40.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 Microsoft.Azure.Batch.ProtocolLayer.<ProcessAndExecuteBatchRequest>d__86`1.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 Microsoft.Azure.Batch.JobScheduleOperations.<GetJobScheduleAsync>d__7.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 Microsoft.Azure.Batch.UtilitiesInternal.WaitAndUnaggregateException[T](Task`1 task)
場所 Microsoft.Azure.Batch.UtilitiesInternal.WaitAndUnaggregateException[T](Task`1 task, IEnumerable`1 rootBehaviors, IEnumerable`1 additionalBehaviors)
場所 Microsoft.Azure.Batch.JobScheduleOperations.GetJobSchedule(String jobScheduleId, DetailLevel detailLevel, IEnumerable`1 additionalBehaviors)
場所 Microsoft.Azure.Commands.Batch.Models.BatchClient.ListJobSchedules(ListJobScheduleOptions options)
場所 Microsoft.Azure.Commands.Batch.GetBatchJobScheduleCommand.ExecuteCmdlet()
場所 Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : System.IO.FileNotFoundException
InvocationInfo : {Get-AzBatchJobSchedule}
Line : Get-AzBatchJobSchedule -Id job1 -BatchContext $Account
Position : 発生場所 行:1 文字:1
+ Get-AzBatchJobSchedule -Id job1 -BatchContext $Account
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 39
@matthchr Hey. Could you take a look at this?
I believe that this is fixed in 1.0.1-preview of the Az.Batch module.
You can acquire it by running the following: Install-Module -Name Az.Batch -Repository PSGallery -AllowPrerelease -Force
@matthchr Thanks for the reply.
@hihorika Is it possible for you to update your module to the preview version and see if the issue is fixed? Thanks!
Thanks! I will try to use 1.0.1-preview!
Could you please wait for the result?
I have already used [email protected]. Do you mean that downgrade is required?
it's a bug in 1.0.0 which was fixed in 1.0.1-preview but hasn't been merged to 1.1.0 yet - sorry for the confusion.
1.0.1-preview is actually the "latest" Azure Batch set of cmdlets currently.
Thanks @matthchr ! I understand that.
Hi @matthchr Could you please let me know an ETA of next release which this issue will be fixed? Thanks
Unfortunately 1.0.1-preview has breaking changes in it, it will be part of the next breaking change release of powershell - it's possible that we can backport the fix before that depending on how far away the next breaking change release is.
@cormacpayne do you know when the next breaking change is coming?
@mjconnection @cormacpayne Could you please provide me release schedule for next breaking change?
Experiencing the same file not found exception when calling Get-AzBatchPool on Azure.Batch 1.1.0 on Windows Powershell 5.1. The same module on Powershell Core 6.2 does not have this problem.
@jmlane - if you use Az.Batch 1.0.1-preview rather than 1.1.0 (you may need to Uninstall-Module Az.Batch 1.1.0 first and then install Az.Batch 1.0.1-preview) it should work with no error.