Skip to content

Commit

Permalink
chore: Minor command fix in apim readme (#621)
Browse files Browse the repository at this point in the history
Adding minor details to the APIM guide

## Verification

- [x] **Your** code builds clean without any errors or warnings
- [x] Manual testing done (required)
- [x] Relevant automated test added (if you find this hard, leave it and
we'll help out)

## Documentation

- [x] Documentation is updated (either in `docs`-directory, Altinnpedia
or a separate linked PR in
[altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
applicable)

Co-authored-by: Knut Haug <knut.espen.haug@digdir.no>
  • Loading branch information
oskogstad and knuhau authored Apr 10, 2024
1 parent f2a2d6e commit 092d44c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/CommonAPIM.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Here is a shortened explanation specific to Dialogporten:
- `policy-api-vX.xml` (create a new file for the new version and update the contents)


- Run the following in powershell from the root directory: `create_templates.ps1 -appName dialogporten`.
- Run the following in powershell from the root directory: `./create_templates.ps1 -appName dialogporten`.
This will create ARM templates for the new version of the API in the folder `.\dialogporten\created_templates`


Expand All @@ -46,12 +46,16 @@ This will create ARM templates for the new version of the API in the folder `.\d
This will deploy the API to the `altinn-dev-api` APIM instance


- Check that you are logged into the Azure CLI


- If you are happy with the API deployed to dev, you can create templates for deploy to all the other environments by doing the following:
- Run the following in powershell from the root directory: `extract_templates.ps1 -appName dialogporten`
- Run the following in powershell from the root directory: `./extract_templates.ps1 -appName dialogporten`
This will create ARM templates for all the environments in the folder `.\dialogporten\extracted_templates` and `.\dialogporten\templates`


- Commit and push the changes to the `altinn-studio-ops` repository (create a branch and PR if you want to be safe, or just push to master if you are confident)


- You are then able to deploy the API to the other APIM-environments by triggering pipelines in the Azure DevOps project. The pipelines have the form a`pim-deploy-api.XXXX` where `XXXX` is the environment name.
- You are then able to deploy the API to the other APIM-environments by triggering pipelines in the Azure DevOps project. The pipelines have the form a`pim-deploy-api.XXXX` where `XXXX` is the environment name.
(For our `staging` environment, use `tt02`)

0 comments on commit 092d44c

Please sign in to comment.