Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OSS Sandbox deployment scripts for IoMT Connector #108

Merged
merged 4 commits into from
Jun 8, 2021

Conversation

pallar-ms
Copy link
Contributor

  • Feature - USER STORY 82590
  • Changes -
    • Update provisioning of resources with the managed identity setup to be the default setup for sandbox environment
    • Update sandbox creation script to reflect the above changes
    • Remove legacy auth setup script
    • Configure RBAC for the Azure API for FHIR and set the role for FHIR Data Contributor
    • Configure RBAC for AKVs and set the role for Key Vault User
    • Update documentation to reflect changes
  • Note -
    • Retaining other templates such as - consumption/premium/flexible (previously default) as is for now, although the sandbox script will not work as is if the IomtConnectorUrlTemplate is replaced with any of these, instead of the current default (managed-identity-azuredeploy).
    • If the linked template deployment fails, the RBAC for FHIR will not be setup as it has a dependency on the linked template. Successful redeployment will trigger that.
    • Seeing inconsistent failures with the app service deployment -
      • BadRequest - Service Unavailable for Microsoft.Web/sites/host
      • Principal does not exist - even though the principal type is set, but after updating to a diff api version, haven't seen this repro.
  • Testing -
    • Validated end to end script deployment, verified the resources were provisioned and the auth setup shows the roles assigned as intended.
      image
      image
    • Validated running the new script on a previous setup works fine too
    • Validated that the data is present in the FHIR server
      image

…ged identity setup

* update sandbox creation script based on updated template
* update documentation to reflect changes
docs/ARMInstallation.md Outdated Show resolved Hide resolved
@pallar-ms pallar-ms changed the title * update default sandbox template to provision resouces with the mana… Update OSS Sandbox deployment scripts for IoMT Connector Jun 4, 2021
@@ -409,7 +410,7 @@
},
{
"type": "Microsoft.EventHub/namespaces/eventhubs/providers/roleAssignments",
"apiVersion": "2018-07-01",
"apiVersion": "2018-09-01-preview",
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to use the preview API? Is there an earlier version that has any updated functionality required that is GA?

Copy link
Member

Choose a reason for hiding this comment

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

Agreed we should avoid using preview APIs where we can

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For roleAssignments, I'm only seeing preview versions listed, and the one I used is the min version needed to fix the intermittent failures due to replication delay. Didn't want to update to latest preview in case it brought in some unwanted changes that we aren't ready for. But let me know if I am looking at the wrong place, or if its okay to update to the latest preview version listed.
https://docs.microsoft.com/en-us/azure/templates/microsoft.authorization/roleassignments?tabs=json

image

Copy link
Contributor Author

@pallar-ms pallar-ms Jun 8, 2021

Choose a reason for hiding this comment

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

I'm actually quite confused on how to interpret the versions to use for role assignments. We aren't going by the Microsoft.Authorization/roleAssignments in these templates, but using resourcetype/providers/roleAssignments instead because of scope issues.
The only reason I updated it here because it seems like to address the "Principal doesn't exist" based on this https://docs.microsoft.com/en-us/azure/role-based-access-control/role-assignments-template#new-service-principal and that actually seems to have solved it.

docs/ARMInstallationManagedIdentity.md Outdated Show resolved Hide resolved
Copy link
Member

@dustinburson dustinburson left a comment

Choose a reason for hiding this comment

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

Looks good. Left a few comments re: getting rid of the old template (now called flexible) in favor of just managed identity.

@pallar-ms pallar-ms merged commit 9ba7b77 into master Jun 8, 2021
@dustinburson dustinburson deleted the personal/pallar/update-sandbox-deployment branch November 8, 2022 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants