Skip to content

Commit bff2fd1

Browse files
authored
Bump Dependencies (#936)
* Update * Update * Update
1 parent b87cfc0 commit bff2fd1

4 files changed

Lines changed: 27 additions & 27 deletions

File tree

docs/wiki/Debugging.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
## Debugging AzOps Locally - Walkthrough
1+
# Debugging AzOps Locally - Walkthrough
22

3-
If you're having issues with AzOps in your CI/CD system, it can be helpful to troubleshoot locally. For this example, we're going to use VS Code as the IDE (in a Windows 10 environment).
3+
If you're having issues with AzOps in your CI/CD system, it can be helpful to troubleshoot locally. For this example, we're going to use VS Code as the IDE (in a Windows environment).
44

5-
### Prerequisites
5+
## Prerequisites
66

77
1. [Visual Studio Code](https://code.visualstudio.com/)
88
1. The [PowerShell Visual Studio Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell)
99
1. JQ (Installing JQ from [Choco](https://community.chocolatey.org/packages/jq) using `choco install jq --verbose -y` and then add its directory (C:\ProgramData\chocolatey\lib\jq\tools) to the PATH env variable)
1010

11-
### Getting started
11+
## Getting started
1212

1313
1. Clone the [project](https://github.com/Azure/AzOps) from GitHub and open with Visual Studio Code
14-
1. Run `Dependencies.ps1` from the scripts directory to install the dependant PoSH modules`
14+
1. Run `Dependencies.ps1` from the scripts directory to install the dependent PoSH modules
1515
1. Login with the correct service principal that has Management Group scope access
1616

1717
```powershell
@@ -24,12 +24,12 @@ Connect-AzAccount -Credential $Credential -Tenant xxxx-xxx-xxxx-xxxx-xxx -Servic
2424
1. Run `Debug.ps1`
2525
1. Let the process finish, and observe the new file structure in the repository root. If this completes without error, then the `Pull` operation should operate without issue in your CI/CD system.
2626

27-
### Making a change
27+
## Making a change
2828

2929
Running `Debug.ps1` in the last step leaves us on a [nested prompt](https://learn.microsoft.com/en-us/dotnet/api/system.management.automation.host.pshost.enternestedprompt). We're now able to feed in new Powershell commands at the command prompt to run in the correct context.
3030

3131
In this example, we're going to provide a new ARM template at a specific scope. The Arm template is the [Create New Subscription](https://github.com/Azure/Enterprise-Scale/blob/main/examples/landing-zones/empty-subscription/emptySubscription.json)
32-
template from the Enterprise Scale repo, it has had default values provided for each of the parameters. The file is being dropped it inside the file structure that was created in the last step, inside the `Sandboxes` directory; `root\myorg (myorg)\myorg-sandboxes (myorg-sandboxes`).
32+
template from the Enterprise Scale repository, it has had default values provided for each of the parameters. The file is being dropped it inside the file structure that was created in the last step, inside the `Sandboxes` directory; `root\myorg (myorg)\myorg-sandboxes (myorg-sandboxes`).
3333

3434
At the command prompt we'll provide it the json file path (wrapped as a changeset object), and then run the cmdlet to Invoke the AzOps Change process.
3535

@@ -42,7 +42,7 @@ You can then monitor the PowerShell terminal in VS Code to see the Deployment co
4242

4343
## Additional Notes
4444

45-
### PowerShell Settings
45+
## PowerShell Settings
4646

4747
Modify the default output state path generated by the module.
4848

@@ -62,7 +62,7 @@ Increase the max retention count of log messages.
6262
Set-PSFConfig PSFramework.Logging.MaxMessageCount 1MB
6363
```
6464

65-
### VS Code Settings
65+
## VS Code Settings
6666

6767
By default, setting breakpoints on AzOps in VS Code will not work.
6868
This is due to the files being invoked as scriptblock by default, rather than as file, for performance reasons.

src/AzOps.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Customer Architecture Team (CAT)
55
#
6-
# Generated on: 08/27/2025
6+
# Generated on: 9/15/2025
77
#
88

99
@{
@@ -51,8 +51,8 @@ PowerShellVersion = '7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'PSFramework'; RequiredVersion = '1.12.346'; },
55-
@{ModuleName = 'Az.Accounts'; RequiredVersion = '5.2.0'; },
54+
RequiredModules = @(@{ModuleName = 'PSFramework'; RequiredVersion = '1.13.406'; },
55+
@{ModuleName = 'Az.Accounts'; RequiredVersion = '5.3.0'; },
5656
@{ModuleName = 'Az.Billing'; RequiredVersion = '2.2.0'; },
5757
@{ModuleName = 'Az.ResourceGraph'; RequiredVersion = '1.2.1'; },
5858
@{ModuleName = 'Az.Resources'; RequiredVersion = '8.1.0'; })

src/internal/functions/ConvertTo-AzOpsState.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The cmdlet converts Azure resources (Resources/ResourceGroups/Policy/PolicySet/PolicyAssignments/RoleAssignment/Definition) to the AzOps state format and exports them to the file structure.
66
.DESCRIPTION
77
The cmdlet converts Azure resources (Resources/ResourceGroups/Policy/PolicySet/PolicyAssignments/RoleAssignment/Definition) to the AzOps state format and exports them to the file structure.
8-
It is normally executed and orchestrated through the Invoke-AzOpsPull cmdlet. As most of the AzOps-cmdlets, it is dependant on the AzOpsAzManagementGroup and AzOpsSubscriptions variables.
8+
It is normally executed and orchestrated through the Invoke-AzOpsPull cmdlet. As most of the AzOps-cmdlets, it is dependent on the AzOpsAzManagementGroup and AzOpsSubscriptions variables.
99
Cmdlet will look into jq filter is template directory for the specific one before using the generic one at the root of the module
1010
.PARAMETER Resource
1111
Object with resource as input

src/localized/en-us/Strings.psd1

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -314,23 +314,23 @@
314314
'Remove-AzOpsDeployment.Scope.Failed' = 'Failed to resolve the scope for template {0}' # $TemplateFilePath
315315
'Remove-AzOpsDeployment.Scope.Empty' = 'Unable to determine the scope of template {0}' # $TemplateFilePath
316316
'Remove-AzOpsDeployment.SkipDueToWhatIf' = 'Skipping removal of resource due to WhatIf' #
317-
'Remove-AzOpsDeployment.ResourceDependencyNested' = 'resource dependency {0} for complete deletion of {1} is outside of supported AzOps scope. Please remove this dependency in Azure without AzOps.'# $roleAssignmentId, $policyAssignment.ResourceId
318-
'Remove-AzOpsDeployment.ResourceDependencyNotFound' = 'Missing resource dependency {0} for successful deletion of {1}. Please add missing resource and retry.'# $resource.Id, $scopeObject.Scope
319-
'Remove-AzOpsDeployment.Resource.RetryCount' = 'Retry deletion of {0} resources in different order'# $retry.Count
320-
'Remove-AzOpsDeployment.ResourceNotFound' = 'Unable to find resource of type {0} with id {1}.'# $scopeObject.Resource, $scopeObject.Scope, $resultsError
321-
'Remove-AzOpsDeployment.SkipUnsupportedResource' = 'Deletion of AzOps generated file resources is only supported for locks, policyAssignments, policyDefinitions, policyExemptions, policySetDefinitions and roleAssignments. Will NOT proceed with deletion of resource in file {0}'# $TemplateFilePath
322-
323-
'Remove-AzResourceRaw.Resource.Recursive.Missing' = 'Missing required parameter InputObject, when running Recursive'#
324-
'Remove-AzResourceRaw.Resource.Missing' = 'Missing required parameter ScopeObject'#
325-
'Remove-AzResourceRaw.Resource.CheckExistence' = 'Checking existence after deletion of: [{0}]'# $FullyQualifiedResourceId
317+
'Remove-AzOpsDeployment.ResourceDependencyNested' = 'resource dependency {0} for complete deletion of {1} is outside of supported AzOps scope. Please remove this dependency in Azure without AzOps.' # $roleAssignmentId, $policyAssignment.ResourceId
318+
'Remove-AzOpsDeployment.ResourceDependencyNotFound' = 'Missing resource dependency {0} for successful deletion of {1}. Please add missing resource and retry.' # $resource.Id, $scopeObject.Scope
319+
'Remove-AzOpsDeployment.Resource.RetryCount' = 'Retry deletion of {0} resources in different order' # $retry.Count
320+
'Remove-AzOpsDeployment.ResourceNotFound' = 'Unable to find resource of type {0} with id {1}.' # $scopeObject.Resource, $scopeObject.Scope, $resultsError
321+
'Remove-AzOpsDeployment.SkipUnsupportedResource' = 'Deletion of AzOps generated file resources is only supported for locks, policyAssignments, policyDefinitions, policyExemptions, policySetDefinitions and roleAssignments. Will NOT proceed with deletion of resource in file {0}' # $TemplateFilePath
322+
323+
'Remove-AzResourceRaw.Resource.Recursive.Missing' = 'Missing required parameter InputObject, when running Recursive' #
324+
'Remove-AzResourceRaw.Resource.Missing' = 'Missing required parameter ScopeObject' #
325+
'Remove-AzResourceRaw.Resource.CheckExistence' = 'Checking existence after deletion of: [{0}]' # $FullyQualifiedResourceId
326326
'Remove-AzResourceRaw.Resource.StackCommand' = 'Running deletion command: [{0}] for resource: [{1}] with ActionOnUnmanage: [{2}]' # $removeCommand, $ScopeObject.Scope, $actionOnUnmanage
327327
'Remove-AzResourceRaw.Resource.Command' = 'Running deletion command: [{0}] for resource: [{1}]' # 'Remove-AzResource', $ScopeObject.Scope
328-
'Remove-AzResourceRaw.Resource.Failed' = 'Unable to delete resource of type {0} with id {1}'# $ScopeObject.Resource, $ScopeObject.Scope
329-
'Remove-AzResourceRawRecursive.Processing' = 'Recursive retry processing to delete resource of type {0} with id {1}'# $item.ScopeObject.Resource, $item.ScopeObject.Scope
328+
'Remove-AzResourceRaw.Resource.Failed' = 'Unable to delete resource of type {0} with id {1}' # $ScopeObject.Resource, $ScopeObject.Scope
329+
'Remove-AzResourceRawRecursive.Processing' = 'Recursive retry processing to delete resource of type {0} with id {1}' # $item.ScopeObject.Resource, $item.ScopeObject.Scope
330330

331-
'Remove-AzOpsInvalidCharacter.Completed' = 'Valid string: {0}'# $String
332-
'Remove-AzOpsInvalidCharacter.Invalid' = 'Invalid character detected in string: {0}, further processing initiated'# $String
333-
'Remove-AzOpsInvalidCharacter.Removal' = 'Removed invalid character: {0} from string: {1}'# $character, $String
331+
'Remove-AzOpsInvalidCharacter.Completed' = 'Valid string: {0}' # $String
332+
'Remove-AzOpsInvalidCharacter.Invalid' = 'Invalid character detected in string: {0}, further processing initiated' # $String
333+
'Remove-AzOpsInvalidCharacter.Removal' = 'Removed invalid character: {0} from string: {1}' # $character, $String
334334

335335
'Save-AzOpsManagementGroupChild.Creating.Scope' = 'Creating scope object' #
336336
'Save-AzOpsManagementGroupChild.Data.Directory' = 'Resolved state path directory: {0}' # $statepathDirectory

0 commit comments

Comments
 (0)