Comments (6)
The certificate must be installed in the LOCALMACHINE store, not on MY (your user account).
from microsoft365dsc.
The certificate must be installed in the LOCALMACHINE store, not on MY (your user account).
I have installed the Certificate under Localmachine:
from microsoft365dsc.
There's definitely a problem with that certificate, I can't see the key in the icon so the private key was either not imported or cannot be read for some reason.
from microsoft365dsc.
There's definitely a problem with that certificate, I can't see the key in the icon so the private key was either not imported or cannot be read for some reason.
Then I will provide you with more informations:
Error:
I can export the settings with the existing certificate, but the import does not work.
from microsoft365dsc.
Problem solved after creating a new certificate. Thanks for your help.
from microsoft365dsc.
@mheAC - I am facing similar issue for same TeamsAppPermisionPolicy. But my issue during Test-TargetResource is that - it is timing out. It seems to be that during Connect-MicrosoftTeams under MSFT_TeamsAppPermisionPolicy.psm1.
However, just few lines above, I am doing an export command (as a sample to make sure connection is good )-that succeeds. Immediately after that, I am doing start-dsconfiguration against a MOF file. It keeps on timing out in the same PS session.
Just suspecting if my cert info is not getting passed on properly ? But all that is Microsoft code.
But if I specifically do connect-MicrosoftTeams with a cert thumbprint, that works in the same window. Only it timesout while running Start-DSCConfiguration.
Any suggestion on this, be appreciated.
Authentication methods specified:
- Service Principal with Certificate Thumbprint
Connecting to {MicrosoftTeams}...✅
[1/1] Extracting [TeamsUpgradeConfiguration] using {CertificateThumbprint}...✅
⌛ Export took {3 seconds} for {1 instances}
VERBOSE: removing the temporary extract from C:\Windows\Temp\Test-Teams\output\temp
VERBOSE: Applying configuration to the tenant bloombergcorpdev.onmicrosoft.com for component TeamsAppPermissionPolicy at :
C:\Windows\Temp\Test-Teams\Output\MOFFiles\TEAMS\dev\TeamsAppPermissionPolicy
VERBOSE: ...temporarily connecting to teams.....
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' =
MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer E07EFB576A09 with user sid S-1-5-93-2-1.
VERBOSE: [E07EFB576A09]: LCM: [ Start Set ]
VERBOSE: [E07EFB576A09]: LCM: [ Start Resource ] [[TeamsAppPermissionPolicy]TeamsAppPermissionPolicy-New Test app perm - dsc
23112::[BB_TeamsAppPermissionPolicy]AppPermPol]
VERBOSE: [E07EFB576A09]: LCM: [ Start Test ] [[TeamsAppPermissionPolicy]TeamsAppPermissionPolicy-New Test app perm - dsc
23112::[BB_TeamsAppPermissionPolicy]AppPermPol]
VERBOSE: [E07EFB576A09]: [[TeamsAppPermissionPolicy]TeamsAppPermissionPolicy-New Test app perm - dsc
23112::[BB_TeamsAppPermissionPolicy]AppPermPol] Testing configuration of {New Test app perm - dsc 23112}
One or more errors occurred.
+ CategoryInfo : AuthenticationError: (:) [], CimException
+ FullyQualifiedErrorId : Connect-MicrosoftTeams,Microsoft.TeamsCmdlets.Powershell.Connect.ConnectMicrosoftTeams
+ PSComputerName : localhost
from microsoft365dsc.
Related Issues (20)
- Request for a Filter Option for AzureAD Attribute 'AADGroup' HOT 1
- Experiencing memory issues when connecting to Exchange Online Management using C# HOT 2
- PowerShell DSC resource MSFT_AADSecurityDefaults failed to execute Test-TargetResource functionality with error message: Could not determine authentication method
- IntuneDeviceConfigurationPolicyiOS: NetworkUsageRules not exporting correctly
- IntuneDeviceConfigurationEndpointProtectionPolicyWindows10: Cannot compile if ProfileTypes (in FirewallRules) is present
- Minimum 'Azure (custom) role' / 'permissions' for O365 export
- Export-M365DSCConfiguration: had a failure when running with the Connecting to PnP step
- Assert-M365DSCBlueprint "Error: Cannot index into a null array" HOT 2
- How to extract details New-M365DSCReportFromConfiguration HOT 1
- Write-Host replaced by Write-Error for Azure Automation Accounts
- New-M365DSCDeltaReport - No discrepancies have been found HOT 10
- AAD - Custom domain names
- Test-M365DSCParameterState: Function can fail when calling Compare-PSCustomObjectArrays
- How come Roadmap/Backlog is stopped in Azure DevOps HOT 1
- EXOHostedContentFilterPolicy documentation has a bug
- ExoAuthenticationPolicyAssignment: Only returning 1000 users for each authentication policy when exporting
- EXOHostedContentFilterPolicy supports some MSFT deprecated settings
- M365DSCRuleEvaluation: Is not evaluated with Assert-M365DSCBlueprint
- All Conditional Access policies fail to be migrated with non-terminating errors during Start-DscConfiguration HOT 4
- What are the permitted values of [AADConditionalAccessPolicy]: TransferMethods ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft365dsc.