-
Notifications
You must be signed in to change notification settings - Fork 366
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
feat: New module azure-stack-hci/cluster module #3364
base: main
Are you sure you want to change the base?
Conversation
@mbrat2005 Please reach out if any support is needed. |
4e8f3a0
to
67b93de
Compare
@@ -0,0 +1,67 @@ | |||
# HCI Azure Host Deployment Bicep Module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come you have this readme here? Is this content you wanted to have in the module's README.md?
If so (in case you did not know), you can add a ## Notes
section to it (and as many subheaders below it as you want) and add the content there. The readme generation will preserve that section and append it after the generation again to the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more because this code is reusable elsewhere (in labs, etc) and I wanted to document it for easier sharing. I could remove the readme of you prefer...
...e-template-assets/templates/azure-stack-hci/modules/microsoftGraphResources/bicepconfig.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @mbrat2005 what happened here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept getting 'An error occurred while sending the request.' during testing, but have yet to hit it again while this workaround catch is in place--trying again today. I don't want to be getting failed runs every week once there are several modules deploying several tests... I plan to revert this and rework for a separate PR if this works around that issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understandable. I guess you're referring to the deployment returning that, right? I.e. in the ARM log when it fetches the state of the deployment every 30 seconds or so
@description('Required. The app ID of the service principal used for the Azure Stack HCI Resource Bridge deployment. If omitted, the deploying user must have permissions to create service principals and role assignments in Entra ID.') | ||
@secure() | ||
#disable-next-line secure-parameter-default | ||
param arbDeploymentAppId string = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a blocking comment for us maintainers until the same secrets are set up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mbrat2005 I may need your help with those secrets. Some sound like I should just have a dedicated service principal set up, while others sound like tenant-specific Enterprise Applications which are quite common, yet I cannot, for example, find one that has a name like Azure Stack HCI Resource Provider
. I guess there are a couple like the latter, right?
If the case, it would be great if we could add the exact name to the secret's description to enable folks to set them up by themselves :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlexanderSehr The HCI RP identity doesn't show up until you register for the Microsoft.AzureStackHCI RP. Once registered, running this command (or the CLI equivalent) should show the SP ID for the global app in the current tenant: Get-AzADServicePrincipal -ApplicationId 1412d89f-b8a8-4111-b4fd-e82905cbd85d
I'll add the app ID to the param description...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @mbrat2005,
I'm really sorry this is taking so long on my end. I'm trying to squeeze working on this PR in every time I get the chance. I'll try to continue on this this week 💪
avm/res/azure-stack-hci/cluster/tests/e2e/3nodeswitchless.defaults/main.test.bicep
Outdated
Show resolved
Hide resolved
…into mtb-azure-stack-hci-cluster
…into mtb-azure-stack-hci-cluster
Hey @mbrat2005 , Firstly, thanks for your work on this PR! We have made some changes to the AVM CI, detailed below, which means we need you to update your fork to pull in these latest changes and re-run your tests to show they still are passing prior to approving and merging this PR, as we don't and it fails once merged the publishing of your module will fail and will be blocked going forward until the test pass again via additional PRs. Changes to CI That Have Been Made That You Need To Take Action On
Any questions reach out to the AVM Core Team by tagging us in your PR here or internally via Teams Thanks Jack (AVM Core Team) |
…into mtb-azure-stack-hci-cluster
@@ -35,7 +35,7 @@ param arbDeploymentSPObjectId string = '' | |||
#disable-next-line secure-parameter-default | |||
param arbDeploymentServicePrincipalSecret string = '' | |||
|
|||
@description('Optional. The service principal ID of the Azure Stack HCI Resource Provider. If this is not provided, the module attemps to determine this value by querying the Microsoft Graph.') | |||
@description('Required. The service principal ID of the Azure Stack HCI Resource Provider in this tenant. To find this value, look up the service principal with app ID 1412d89f-b8a8-4111-b4fd-e82905cbd85d after registering the Azure Stack HCI RP in the tenant. For example: `Get-AzADServicePrincipal -ApplicationId 1412d89f-b8a8-4111-b4fd-e82905cbd85d`.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @mbrat2005, what's the name of that application? I can't find an application with that ID (neither in the portal, nor via code)
Description
Adds new Azure Stack HCI Cluster AVM module
Includes some helper modules for e2e testing placed here
avm\utilities\e2e-template-assets\templates\azure-stack-hci
, as I'll also be using them for other HCI resource modules (always needing to deploy an HCI cluster in Azure to test on). If this is not the right location for this sort of shared asset, please let me know...Pipeline Reference
Type of Change
version.json
:version.json
.version.json
.Checklist
Set-AVMModule
locally to generate the supporting module files.Maintainer checklist: