You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/Remove-AzOpsTestsDeployment.ps1
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
<#
4
4
.SYNOPSIS
5
-
Assist in removal of AzOps Test Deployments, destructive command removes resources in the context executed.
5
+
Removes all resources and configurations created by AzOps test deployments. This is a destructive operation intended for cleaning up test environments.
6
6
.DESCRIPTION
7
-
Assist in removal of AzOps Test Deployments, destructive command removes resources in the context executed.
7
+
This command assists in cleaning up resources, management groups, role assignments, policy assignments, and deployments created during AzOps testing. It is intended for use in test or development environments only, as it will permanently delete resources in the current context.
Copy file name to clipboardExpand all lines: src/localized/en-us/Strings.psd1
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -215,7 +215,7 @@
215
215
'Invoke-AzOpsPush.Change.Delete.TempFile'='Creating temporary file dir for deletion processing: {0}'# $fileName
216
216
'Invoke-AzOpsPush.Change.Delete.NextTempFile'='Exiting while loop, file detected in $DeleteSetContents for deletion processing based on this content line: [{0}]'# $currentLine
217
217
'Invoke-AzOpsPush.Change.Delete.SetTempFileContent'='Set temporary file content: [{1}], in [{0}]'# $fileName, $jsonValue
218
-
'Invoke-AzOpsPush.Deletion.Failed'='Deletion of resources {0}, has failed using templates: {1}, {2}, this could be due to delayed deletion acceptance from Azure, please investigate and take action.'# $fail.ScopeObject.Scope, $fail.TemplateFilePath, $fail.TemplateParameterFilePath
218
+
'Invoke-AzOpsPush.Deletion.Failed'='Deletion of resources {0}, have failed using templates: {1}, {2}, this could be due to delayed deletion acceptance from Azure, please investigate and take action.'# $fail.ScopeObject.Scope, $fail.TemplateFilePath, $fail.TemplateParameterFilePath
219
219
'Invoke-AzOpsPush.Deletion.Retry'='Deletion of {0} resources unsuccessful, initiate final retry combination.'# $retry.Count
220
220
'Invoke-AzOpsPush.Deploy.ProviderFeature'='Invoking new state deployment - *.providerfeatures.json for a file {0}'# $addition
221
221
'Invoke-AzOpsPush.Deploy.ResourceProvider'='Invoking new state deployment - *.resourceproviders.json for a file {0}'# $addition
'Invoke-AzOpsPush.Dependency.Missing'='Missing resource dependency for successfull deletion. Error exiting runtime.'
233
+
'Invoke-AzOpsPush.Dependency.Missing'='Missing resource dependency for successful deletion. Error exiting runtime.'
234
234
'Invoke-AzOpsPush.DeploymentList.NotFound'='Expecting deploymentList object, it was not found. Error exiting runtime.'
235
235
'Invoke-AzOpsPush.Duration'='AzOps Push completed in {0}'# $stopWatch.Elapsed
236
236
'Invoke-AzOpsPush.Resolve.DeployDeletionOverlap'='The file: {0} is targeted for deletion, skipping deployment file association'#
237
237
'Invoke-AzOpsPush.Resolve.FoundTemplate'='Found template {1} for parameters {0}'# $FilePath, $templatePath
238
238
'Invoke-AzOpsPush.Resolve.FoundBicepTemplate'='Found Bicep template {1} for parameters {0}'# $FilePath, $bicepTemplatePath
239
239
'Invoke-AzOpsPush.Resolve.FromMainTemplate'='Determining template from main template file: {0}'# $mainTemplateItem.FullName
240
-
'Invoke-AzOpsPush.Resolve.MainTemplate.NotSupported'='effectiveResourceType: {0} AzOpsMainTemplate does NOT supports resource type {0} in {1}. Deployment will be ignored'# $effectiveResourceType, $AzOpsMainTemplate.FullName
240
+
'Invoke-AzOpsPush.Resolve.MainTemplate.NotSupported'='effectiveResourceType: {0} AzOpsMainTemplate does NOT support resource type {0} in {1}. Deployment will be ignored'# $effectiveResourceType, $AzOpsMainTemplate.FullName
'Invoke-AzOpsPush.Resolve.MainTemplate.Supported'='effectiveResourceType: {0} - AzOpsMainTemplate supports resource type {0} in {1}'# $effectiveResourceType, $AzOpsMainTemplate.FullName
242
+
'Invoke-AzOpsPush.Resolve.MainTemplate.Supported'='effectiveResourceType: {0} - AzOpsMainTemplate support resource type {0} in {1}'# $effectiveResourceType, $AzOpsMainTemplate.FullName
243
243
'Invoke-AzOpsPush.Resolve.NoJson'='The specified file is not a json or bicep file! Skipping {0}'# $fileItem.FullName
244
244
'Invoke-AzOpsPush.Resolve.NotFoundTemplate'='Did NOT find template {1} for parameters {0}'# $FilePath, $templatePath
245
245
'Invoke-AzOpsPush.Resolve.ParameterFound'='Found parameter file for template {0} : {1}'# $FilePath, $parameterPath
@@ -353,7 +353,7 @@
353
353
'Set-AzOpsWhatIfOutput.WhatIfFile'='Creating WhatIf markdown and json files'#
354
354
'Set-AzOpsWhatIfOutput.WhatIfFileAdding'='Adding content to WhatIf {0} file for template {1} with parameter file {2}'# '<type>', $FilePath, $ParameterFilePath
355
355
'Set-AzOpsWhatIfOutput.WhatIfFileMax'='WhatIf markdown and json files have reached character limit, unable to append more information to files. WhatIf is too large for comment field, for more details look at PR files to determine changes.'# $ResultSizeMaxLimit, $ResultSizeLimit
356
-
'Set-AzOpsWhatIfOutput.WhatIfMessageMax'='WhatIf have reached maximum character limit, unable to append warning message. WhatIf is too large for comment field, for more details look at PR files to determine changes.'# $ResultSizeMaxLimit, $ResultSizeLimit
356
+
'Set-AzOpsWhatIfOutput.WhatIfMessageMax'='WhatIf has reached maximum character limit, unable to append warning message. WhatIf is too large for comment field, for more details look at PR files to determine changes.'# $ResultSizeMaxLimit, $ResultSizeLimit
357
357
'Set-AzOpsWhatIfOutput.WhatIfResults'='WhatIf Output {0}'# $results or $allResults
358
358
'Set-AzOpsWhatIfOutput.WhatIfFile.Remove'='Removing WhatIf markdown and json files lingering from previous run'#
$firewallPolicy=Search-AzGraph-Subscription $script:subscriptionId-Query "resources | where type == 'microsoft.network/firewallpolicies' and resourceGroup =~ '$($script:resourceGroup.ResourceGroupName)' and name =~ 'TestPolicy'"|Select-Object-First 1
Write-PSFMessage-Level Critical -Message "Failed to get deployed services"-Exception $_.Exception-FunctionName "BeforeAll"
178
+
throw
174
179
}
175
180
176
181
# Invoke the Invoke-AzOpsPull function to generate the scope data which can be tested against to ensure structure is correct and data model hasn't changed.
0 commit comments