Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Az.Codesigning 0.2.0 Invoke-AzCodeSigningCIPolicySigning Method not found #26764

Open
sanderdewit opened this issue Nov 26, 2024 · 2 comments · May be fixed by #26801
Open

Az.Codesigning 0.2.0 Invoke-AzCodeSigningCIPolicySigning Method not found #26764

sanderdewit opened this issue Nov 26, 2024 · 2 comments · May be fixed by #26801
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Service Attention This issue is responsible by Azure service team.

Comments

@sanderdewit
Copy link

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 '[email protected]'...
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.0

Module 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      : 1
@sanderdewit sanderdewit added bug This issue requires a change to an existing behavior in the product in order to be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Nov 26, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported needs-triage This is a new issue that needs to be triaged to the appropriate team. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Nov 26, 2024
@VeryEarly VeryEarly removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Nov 28, 2024
@VeryEarly
Copy link
Contributor

Hi @Jaxelr please help take a look

@VeryEarly VeryEarly added the Service Attention This issue is responsible by Azure service team. label Nov 28, 2024
@Jaxelr
Copy link
Member

Jaxelr commented Dec 2, 2024

hey @sanderdewit thanks for reporting this, I'll be investigating and will report back.

@Jaxelr Jaxelr linked a pull request Dec 2, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants