forked from Azure/api-management-developer-portal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure Devops pipeline to migrate APIM dev portal from one instance to…
… another instance of APIM (Azure#1362)
- Loading branch information
Showing
3 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: CD-ApiMDeveloperPortal-Build | ||
|
||
trigger: none | ||
|
||
variables: | ||
- name: poolName | ||
value: "agentpoolName" | ||
- name: location | ||
value: West US | ||
|
||
jobs: | ||
|
||
# All tasks on APIM Developer portal pipeline | ||
- job: Deploy_APIM_Developer_Portal | ||
displayName: Deploy APIM Developer portal from one APIM instance to another APIM instance Migration | ||
pool: | ||
name: $(poolName) | ||
timeoutInMinutes: 90 | ||
steps: | ||
- task: Npm@1 | ||
displayName: Npm Install command | ||
inputs: | ||
command: "install" | ||
|
||
- pwsh: | | ||
node ./migrate --sourceSubscriptionId "$(sourceSubscriptionId)" --sourceResourceGroupName "$(sourceResourceGroupName)" --sourceServiceName "$(sourceAPIMName)" --destServiceName "$(destinationAPIMName)" --destSubscriptionId "$(destSubscriptionId)" --destResourceGroupName "$(destResourceGroupName)" --sourceTenantid "$(sourceAzure_Tenant)" --sourceServiceprincipal "$(sourceServicePrincipal)" --sourceSecret "$(sourceAzureDevOps-ServicePrincipal-Secret)" --destTenantid "$(Azure_Tenant)" --destServiceprincipal "$(ServicePrincipal)" --destSecret "$(AzureDevOps-ServicePrincipal-Secret)" --existingEnvUrls "$(existingEnvUrls)" --destEnvUrls "$(destEnvUrls)" | ||
workingDirectory: "$(System.DefaultWorkingDirectory)/scripts.v3" | ||
displayName: Run Migrate cmd from $(sourceAPIMName) to $(destinationAPIMName) |
This file contains 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 file contains 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