This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $token = Read-Host -Prompt "Enter your PAT" | |
| $ORG_NAME = "MyOrg" | |
| $PROJECT_NAME = "MyProject" | |
| $BUILD_ID = "12345" | |
| $tokenEncoded = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes(":$token")) | |
| $url = "https://dev.azure.com/$ORG_NAME/_apis/Contribution/HierarchyQuery/project/$($PROJECT_NAME)?api-version=5.1-preview.0" | |
| $buildResults = @{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Example showcasing the use of the GitHub-Project-Manager.ps1 | |
| # Iterates over all cmdlets of the d365fo.tools module | |
| # and creates a draft issue for each cmdlet that is missing a draft issue. | |
| Import-Module .\TempPoint\GitHub-Project-Manager.ps1 | |
| $project = Get-UserProject -User FH-Inway -ProjectNumber 2 | |
| $existingItems = Get-ProjectItems -ProjectId $project.id | |
| # Import-Module d365fo.tools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module PSFramework -MaximumVersion 1.11.343 | |
| Import-Module PSModuleDevelopment -MaximumVersion 2.2.11.168 | |
| Invoke-PSMDTemplate CommandTest -Name Invoke-PSMDTemplate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $certificateThumbprint = Read-Host -Prompt 'Enter certificate thumbprint' | |
| $applicationId = Read-Host -Prompt 'Enter application id' | |
| $tenantId = Read-Host -Prompt 'Enter tenant id' | |
| Connect-AzAccount -CertificateThumbprint $certificateThumbprint -ApplicationId $applicationId -TenantId $tenantId -Verbose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| To execute the steps, the id of an Azure application must be provided. The application must have the following API permissions: | |
| - Microsoft Graph (User.Read and Mail.Send permissions of the Application type). | |
| #> | |
| # Based on https://blog.icewolf.ch/archive/2022/12/02/create-azure-ad-app-registration-with-microsoft-graph-powershell | |
| # original gist: https://gist.github.com/FH-Inway/4fc4d4f263900ce1fe240f4d32df23e9 | |
| [CmdletBinding()] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $models = Get-D365Model -BinDir "C:\Users\UnifiedDevExpTest01\AppData\Local\Microsoft\Dynamics365\10.0.1935.29\PackagesLocalDirectory\bin" -PackageDirectory "C:\Users\UnifiedDevExpTest01\AppData\Local\Microsoft\Dynamics365\10.0.1935.29\PackagesLocalDirectory" -Verbose | |
| $module = "AAA" | |
| $model = $module | |
| $metadataDir = "C:\Repositories\MyRepo\Metadata" | |
| $packagesLocalDirectory = "C:\Users\UnifiedDevExpTest01\AppData\Local\Microsoft\Dynamics365\10.0.1935.29\PackagesLocalDirectory" | |
| $binDir = "$packagesLocalDirectory\bin" | |
| $logPath = "C:\Temp\d365fo.tools\Logs" | |
| $params = @{ | |
| Module = $module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This script creates a new guest user in Azure Entra ID and a list of | |
| # Microsoft Dynamics 365 Finance and Operations environments. | |
| # It takes the user's tenant id, email address, first and last name as input parameters. | |
| # It also takes an array of Azure Entra ID group IDs to which the user should be added. | |
| # It uses the existing d365fo.integrations configurations to determine the environments | |
| # where the user is to be added with the system administrator security role. | |
| # Install the PowerShell module "Microsoft.Graph" if it is not already installed. | |
| # Install-Module -Name Microsoft.Graph.Authentication -Scope CurrentUser -Force | |
| # Install-Module -Name Microsoft.Graph.Users -Scope CurrentUser -Force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| To populate topology data for command line package installation, refer to: | |
| https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/deployment/install-deployable-package#collect-topology-configuration-data | |
| --> | |
| <TopologyData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <Name>AX topology</Name> | |
| <MachineList> | |
| <Machine> | |
| <Name>localhost</Name> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.