Skip to content

Update Analysis Service and API Management Outputs - #875

Merged
Alexander Sehr (AlexanderSehr) merged 17 commits into
mainfrom
users/senavar/outputRefactor
Jan 18, 2022
Merged

Alexander Sehr (AlexanderSehr) merged 17 commits into
mainfrom
users/senavar/outputRefactor

Conversation

@senavar

Copy link
Copy Markdown
Contributor

Change

Feel free to remove this sample text

Thank you for your contribution !

Update the output names for the Analysis Service and API Management modules

Type of Change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist

  • I'm sure there are no other open Pull Requests for the same update/change
  • My corresponding pipelines / checks run clean and green without any errors or warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (readme)
  • I did format my code

@senavar
Sergio Navar (senavar) marked this pull request as ready for review January 12, 2022 17:04
Comment thread arm/Microsoft.ApiManagement/service/.bicep/nested_authorizationServers.bicep Outdated
Comment thread arm/Microsoft.ApiManagement/service/.bicep/nested_authorizationServers.bicep Outdated
Comment thread arm/Microsoft.ApiManagement/service/.bicep/nested_authorizationServers.bicep Outdated
Comment thread arm/Microsoft.ApiManagement/service/products/deploy.bicep Outdated
Comment thread arm/Microsoft.ApiManagement/service/products/deploy.bicep Outdated
Comment thread arm/Microsoft.ApiManagement/service/products/readme.md Outdated
Comment thread arm/Microsoft.ApiManagement/service/products/readme.md Outdated
Co-authored-by: Alexander Sehr <ASehr@hotmail.de>
Co-authored-by: Alexander Sehr <ASehr@hotmail.de>
Co-authored-by: Alexander Sehr <ASehr@hotmail.de>
Co-authored-by: Alexander Sehr <ASehr@hotmail.de>
…nServers.bicep

Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com>
…nServers.bicep

Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com>
…nServers.bicep

Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com>
@github-actions

github-actions Bot commented Jan 14, 2022

Copy link
Copy Markdown

Unit Test Results

    1 files  ±    0    1 suites  ±0   3m 17s ⏱️ + 2m 19s
  35 tests +  23  35 ✔️ +23      0 💤 ±    0  0 ±0 
487 runs  +323  35 ✔️ +23  452 💤 +300  0 ±0 

Results for commit 3a2402c. ± Comparison against base commit a3ab0b7.

This pull request removes 12 and adds 35 tests. Note that renamed tests count towards both.
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.RecoveryServices/vaults/backupConfig] used resource type [vaults/backupconfig] should use on of the recent API version(s). Currently using [2021-10-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.RecoveryServices/vaults/backupPolicies] used resource type [vaults/backupPolicies] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.RecoveryServices/vaults/backupStorageConfig] used resource type [vaults/backupstorageconfig] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.RecoveryServices/vaults/protectionContainers] used resource type [vaults/backupFabrics/protectionContainers] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.RecoveryServices/vaults] used resource type [diagnosticsettings] should use on of the recent API version(s). Currently using [2021-05-01-preview]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.RecoveryServices/vaults] used resource type [locks] should use on of the recent API version(s). Currently using [2017-04-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.RecoveryServices/vaults] used resource type [roleassignments] should use on of the recent API version(s). Currently using [2021-04-01-preview]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.RecoveryServices/vaults] used resource type [vaults/backupFabrics/protectionContainers] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.RecoveryServices/vaults] used resource type [vaults/backupPolicies] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.RecoveryServices/vaults] used resource type [vaults/backupconfig] should use on of the recent API version(s). Currently using [2021-10-01]
…
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.ApiManagement/service/apiVersionSets] used resource type [service/apiVersionSets] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.ApiManagement/service/apis/policies] used resource type [service/apis/policies] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.ApiManagement/service/apis] used resource type [service/apis/policies] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.ApiManagement/service/apis] used resource type [service/apis] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.ApiManagement/service/authorizationServers] used resource type [service/authorizationServers] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.ApiManagement/service/backends] used resource type [service/backends] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.ApiManagement/service/caches] used resource type [service/caches] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.ApiManagement/service/identityProviders] used resource type [service/identityProviders] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.ApiManagement/service/namedValues] used resource type [service/namedValues] should use on of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.ApiManagement/service/policies] used resource type [service/policies] should use on of the recent API version(s). Currently using [2021-08-01]
…

♻️ This comment has been updated with latest results.

@eriqua Erika Gressi (eriqua) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sergio Navar (@senavar) last thing if you can. Could you please try running the API Management pipeline from your users/senavar/outputRefactor branch and attach the pipeline status badge in the PR description? Thanks!

@AlexanderSehr

Alexander Sehr (AlexanderSehr) commented Jan 14, 2022

Copy link
Copy Markdown
Contributor

Hi Sergio Navar (@senavar) last thing if you can. Could you please try running the API Management pipeline from your users/senavar/outputRefactor branch and attach the pipeline status badge in the PR description? Thanks!

Took the liberty: ApiManagement: Service

A couple tests failed. And with Rainer Halanek (@rahalan) changes we also have a bunch of conflicts to resolve. Maybe Rainer Halanek (@rahalan) can help you out with that

This reverts commit 2d22b80.
@senavar

Copy link
Copy Markdown
Contributor Author

Hi Sergio Navar (@senavar) last thing if you can. Could you please try running the API Management pipeline from your users/senavar/outputRefactor branch and attach the pipeline status badge in the PR description? Thanks!

Took the liberty: ApiManagement: Service

A couple tests failed. And with Rainer Halanek (@rahalan) changes we also have a bunch of conflicts to resolve. Maybe Rainer Halanek (@rahalan) can help you out with that

So I looked into the errors and its rather odd. It is saying that the readme output does not have all the outputs in the template file. Which is unexpected, as the readme script was ran for all files using the For-Each loop. Also checked the culprit readme and template file side-by-side. I don't see anything wrong. Can one of you also do a sanity check and make sure I'm not going crazy? @MrMCake Erika Gressi (@eriqua)

@AlexanderSehr

Copy link
Copy Markdown
Contributor

Hey Sergio Navar (@senavar), I fixed the issue. The problem was as follows:
By renaming the resourceId output in the products template to just resourceId, the also used function resourceId() could not be used anymore (i.e. bicep is unable to differentate the output name from the function (duh)). I updated it now to a different implementation that returns the ID from the module deployment outputs (api + groups) directly.

@senavar

Copy link
Copy Markdown
Contributor Author

Hey Sergio Navar (@senavar), I fixed the issue. The problem was as follows: By renaming the resourceId output in the products template to just resourceId, the also used function resourceId() could not be used anymore (i.e. bicep is unable to differentate the output name from the function (duh)). I updated it now to a different implementation that returns the ID from the module deployment outputs (api + groups) directly.

Thanks! Will make note of this as I work through other modules and adjust as needed. Looks like the pipeline is now green and all good to go for merging :)

@AlexanderSehr
Alexander Sehr (AlexanderSehr) dismissed Erika Gressi (eriqua)’s stale review January 18, 2022 22:06

Pipeline badge is attached & green. All other comments are met

@AlexanderSehr
Alexander Sehr (AlexanderSehr) deleted the users/senavar/outputRefactor branch January 18, 2022 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[cat] modules category: modules enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants