ALZ-Bicep icon indicating copy to clipboard operation
ALZ-Bicep copied to clipboard

Response to FRs - Issues #267 and #290 - POC in RG Name and Deployment Snippets

Open 4ppli3d opened this issue 3 years ago • 13 comments

Overview/Summary

Change in the READMEs of each of the modules which has a deployment snippet and also amendment of Resource Group Names to conform to CAF Standardisation. A PR to work on Issue #267 and #290

This PR fixes/adds/changes/removes

  1. Adds CAF Standardisation to Resource Group Names
  2. Adds deployment names into snippets
  3. Conforms deployment methods including names to CARML standards

Breaking Changes

  1. N/A - documentation

Testing Evidence

image image

As part of this Pull Request I have

4ppli3d avatar Sep 02 '22 13:09 4ppli3d

@JamJarchitect Can we do this for all Bicep docs (like orchestration and CRML etc.)

Cheers

This should now be done @jtracey93

4ppli3d avatar Sep 12 '22 09:09 4ppli3d

@JamJarchitect sorry buddy.

Can we add and alz prefix to the deployment names just so they are easy to find/remember for users?

Also do we need to add a note for all bash usage that pwsh needs to be installed for the inputObject to work?

@jtracey93 prefix added, naming conventions done, NOTE added on bash on Private DNS zone as well. Any reviewer(s) are welcome!

4ppli3d avatar Sep 12 '22 13:09 4ppli3d

/azp run validateazcloud

jtracey93 avatar Sep 15 '22 14:09 jtracey93

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Sep 15 '22 14:09 azure-pipelines[bot]

@msftbot do not merge until @jtracey93 Jack Tracey FTE & @rjygraham Ryan Graham FTE have approved

jtracey93 avatar Sep 15 '22 14:09 jtracey93

Hello @jtracey93!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I'll only merge this pull request if it's approved by @jtracey93 and @rjygraham

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

ghost avatar Sep 15 '22 14:09 ghost

@jtracey93, @JamJarchitect rather than litter the PR with comments. My assumption is that Azure CLI commands would target a Bash shell and therefore we can't count on PowerShell being available. Should the Azure CLI snippets be updated to be "PowerShell free"? Apologies if I missed a conversation where we said this would be ok.

rjygraham avatar Sep 19 '22 22:09 rjygraham

@jtracey93 Jack Tracey FTE, @JamJarchitect James Jones FTE rather than litter the PR with comments. My assumption is that Azure CLI commands would target a Bash shell and therefore we can't count on PowerShell being available. Should the Azure CLI snippets be updated to be "PowerShell free"? Apologies if I missed a conversation where we said this would be ok.

As discussed in scrum call, we have decided that we want the bash stuff to be native and no PowerShell (even if its cross platform).

@mblant & @rjygraham if there is suggestions you have for converting the below into bash native, then that would be awesome and @JamJarchitect can pick up when back from OOF and update this PR:

$inputObject = @(
'--name',           ('alz-ContainerRegistry-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])),
'--resource-group', 'Bicep_ACR',
'--parameters',     '@infra-as-code/bicep/CRML/containerRegistry/parameters/containerRegistry.parameters.all.json',
'--template-file',  "infra-as-code/bicep/CRML/containerRegistry/containerRegistry.bicep",
)

az deployment group create @inputObject

jtracey93 avatar Sep 20 '22 13:09 jtracey93

/azp run validateazcloud

4ppli3d avatar Oct 10 '22 12:10 4ppli3d

Commenter does not have sufficient privileges for PR 312 in repo Azure/ALZ-Bicep

azure-pipelines[bot] avatar Oct 10 '22 12:10 azure-pipelines[bot]

/azp run validateazcloud

jtracey93 avatar Oct 10 '22 15:10 jtracey93

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Oct 10 '22 15:10 azure-pipelines[bot]

@rjygraham are you good to give this a review now @JamJarchitect has converted the bash to native cli?

jtracey93 avatar Oct 10 '22 16:10 jtracey93

sorry to chase @rjygraham have you had a chance to review this one, or do we need to reassign?

jtracey93 avatar Oct 22 '22 15:10 jtracey93

@jtracey93 This looks good to me.

oZakari avatar Oct 28 '22 02:10 oZakari

@JamJarchitect can we resolve the merge conflicts here and then we can look to merge 👍

jtracey93 avatar Oct 29 '22 09:10 jtracey93

@jtracey93 those last two amendments were done. should all be good now!

4ppli3d avatar Nov 02 '22 23:11 4ppli3d

/azp run validateazcloud

jtracey93 avatar Nov 03 '22 08:11 jtracey93

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Nov 03 '22 08:11 azure-pipelines[bot]