-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Closed
Copy link
Labels
Service AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reported
Description
Description
The module 0.2.0 of Az.CodeSigning fails, while 0.1.2 works as expected.
it fails on the Method not found: 'System.Threading.Tasks.Task`1<Azure.CodeSigning.CertificateProfileSignOperation>
Azure.CodeSigning.CertificateProfileClient.StartSignAsync(System.String, System.String,
Azure.CodeSigning.Models.SignRequest, System.String, System.Threading.CancellationToken)'.
Dotnet 8/9 are installed as SDK as well as the latest AZ modules.
Issue script & Debug output
Invoke-AzCodeSigningCIPolicySigning -AccountName 'removed' -ProfileName 'removed' -EndpointUrl 'https://weu.codesigning.azure.net' -Path C:\temp\ci\test.bin -Destination c:\temp\ci\signed.bin -TimeStamperUrl 'http://timestamp.acs.microsoft.com' -Verbose -Debug |clip
DEBUG: 17:30:11 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 17:30:11 - InvokeCIPolicySigning begin processing with ParameterSet 'ByAccountProfileNameParameterSet'.
DEBUG: 17:30:11 - using account id 'user@domain.ext'...
DEBUG: 17:30:11 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 17:30:11 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 17:30:11 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 17:30:11 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 17:30:11 - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [], Cmdlet = []. Returning default value [False].
Invoke-AzCodeSigningCIPolicySigning: One or more errors occurred. (Method not found: 'System.Threading.Tasks.Task`1<Azure.CodeSigning.CertificateProfileSignOperation> Azure.CodeSigning.CertificateProfileClient.StartSignAsync(System.String, System.String, Azure.CodeSigning.Models.SignRequest, System.String, System.Threading.CancellationToken)'.)
DEBUG: 17:30:11 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 17:30:11 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 17:30:11 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.CodeSigning:0.2.0; CommandName: Invoke-AzCodeSigningCIPolicySigning; PSVersion: 7.4.6; IsSuccess: False; Duration: 00:00:00.1061904; SanitizeDuration: 00:00:00.0000517; Exception: One or more errors occurred. (Method not found: 'System.Threading.Tasks.Task`1<Azure.CodeSigning.CertificateProfileSignOperation> Azure.CodeSigning.CertificateProfileClient.StartSignAsync(System.String, System.String, Azure.CodeSigning.Models.SignRequest, System.String, System.Threading.CancellationToken)'.);
DEBUG: 17:30:11 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 17:30:11 - InvokeCIPolicySigning end processing.Environment data
Name Value
---- -----
PSVersion 7.4.6
PSEdition Core
GitCommitId 7.4.6
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Module versions
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 3.0.4 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContex...
Script 0.2.0 Az.CodeSigning {Get-AzCodeSigningCertChain, Get-AzCodeSigningCust...Error output
Message : Method not found: 'System.Threading.Tasks.Task`1<Azure.CodeSigning.CertificateProfileSignOperation>
Azure.CodeSigning.CertificateProfileClient.StartSignAsync(System.String, System.String,
Azure.CodeSigning.Models.SignRequest, System.String, System.Threading.CancellationToken)'.
StackTrace : at Azure.CodeSigning.Client.CryptoProvider.AzCodeSignContext.<>c__DisplayClass32_0.<<InitializeChai
nAsync>b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&
stateMachine)
at Azure.CodeSigning.Client.CryptoProvider.AzCodeSignContext.<>c__DisplayClass32_0.<InitializeChain
Async>b__0()
at Polly.AsyncPolicy.<>c__DisplayClass13_0`1.<ExecuteAsync>b__0(Context _, CancellationToken _)
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context,
CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates,
ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount,
IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean
continueOnCapturedContext)
at Polly.AsyncPolicy.ExecuteAsync[TResult](Func`3 action, Context context, CancellationToken
cancellationToken, Boolean continueOnCapturedContext)
at
Azure.CodeSigning.Client.CryptoProvider.AzCodeSignContext.InitializeChainAsync(CancellationToken
cancelToken)
Exception : System.MissingMethodException
InvocationInfo : {Invoke-AzCodeSigningCIPolicySigning}
Line : Invoke-AzCodeSigningCIPolicySigning -AccountName 'removed' -ProfileName 'removed' -EndpointUrl
'https://weu.codesigning.azure.net/' -Path C:\temp\ci\test.bin -Destination c:\temp\ci\signed.bin
-TimeStamperUrl 'http://timestamp.acs.microsoft.com'
Position : At line:1 char:1
+ Invoke-AzCodeSigningCIPolicySigning -AccountName 'removed' -ProfileName ' …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 1Metadata
Metadata
Assignees
Labels
Service AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reported