Skip to content

Commit

Permalink
Temporary/sync generation to future #26210 (#26318)
Browse files Browse the repository at this point in the history
* Changes for customer-reported Remove-AzPolicyAssignment behavior (#26210)

* Changes for IcM: https://portal.microsofticm.com/imp/v5/incidents/details/546429959/summary

* Re-record all tests.

* adapt

---------

Co-authored-by: Chris Stackhouse <[email protected]>
  • Loading branch information
VeryEarly and mentat9 authored Oct 15, 2024
1 parent a967805 commit ea7cf0e
Show file tree
Hide file tree
Showing 97 changed files with 8,773 additions and 7,429 deletions.
26 changes: 26 additions & 0 deletions src/Resources/Policy.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Policy")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("7.5.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("7.5.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ process {
# Id can be a parameter or from the input object
if ($Id) {
$thisId = $Id
} else {
}
elseif (!$Scope) {
$thisId = $_.Id
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ process {
# Id can be a parameter or from the input object
if ($Id) {
$thisId = $Id
} else {
}
elseif (!$Scope) {
$thisId = $_.Id
}

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Policy.Autorest/docs/Az.Policy.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.Policy
Module Guid: 54d436a4-6f2e-4977-b339-2b40665fd8c4
Module Guid: b771a0a4-5448-480b-8764-2292b323cbca
Download Help Link: https://learn.microsoft.com/powershell/module/az.policy
Help Version: 1.0.0.0
Locale: en-US
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Policy.Autorest/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "4dd8f52f-7b86-458c-b936-0937ee935a1a"
"generate_Id": "c6503927-acd2-4d64-a73d-0212bbe46ef4"
}
11 changes: 11 additions & 0 deletions src/Resources/Policy.Autorest/resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Resources
This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder.

## Info
- Modifiable: yes
- Generated: no
- Committed: yes
- Packaged: no

## Purpose
Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"Headers": {
"Cache-Control": [ "no-store, no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1198" ],
"x-ms-request-id": [ "179054e8-d540-460c-aaa1-1801e52071c5" ],
"x-ms-correlation-request-id": [ "179054e8-d540-460c-aaa1-1801e52071c5" ],
"x-ms-routing-request-id": [ "WESTUS2:20240905T201421Z:179054e8-d540-460c-aaa1-1801e52071c5" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1199" ],
"x-ms-request-id": [ "d6fc59df-5218-4373-bce8-00c097d3da8a" ],
"x-ms-correlation-request-id": [ "d6fc59df-5218-4373-bce8-00c097d3da8a" ],
"x-ms-routing-request-id": [ "WESTUS2:20241004T001330Z:d6fc59df-5218-4373-bce8-00c097d3da8a" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"X-Cache": [ "CONFIG_NOCACHE" ],
"X-MSEdge-Ref": [ "Ref A: 2FBDED5C4B6A430F8766BDC23C787D0E Ref B: CO6AA3150218047 Ref C: 2024-09-05T20:14:20Z" ],
"Date": [ "Thu, 05 Sep 2024 20:14:20 GMT" ]
"X-MSEdge-Ref": [ "Ref A: 779F70C98C8E483D94DAF0F63A698E3F Ref B: CO6AA3150217019 Ref C: 2024-10-04T00:13:30Z" ],
"Date": [ "Fri, 04 Oct 2024 00:13:30 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "176" ],
Expand Down Expand Up @@ -55,14 +55,14 @@
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-failure-cause": [ "gateway" ],
"x-ms-request-id": [ "6301dc52-c971-4c66-93c9-0dc8201a9da7" ],
"x-ms-correlation-request-id": [ "6301dc52-c971-4c66-93c9-0dc8201a9da7" ],
"x-ms-routing-request-id": [ "WESTUS2:20240905T201421Z:6301dc52-c971-4c66-93c9-0dc8201a9da7" ],
"x-ms-request-id": [ "4a29874e-1885-41a3-b25f-e4a22b541d23" ],
"x-ms-correlation-request-id": [ "4a29874e-1885-41a3-b25f-e4a22b541d23" ],
"x-ms-routing-request-id": [ "WESTUS:20241004T001330Z:4a29874e-1885-41a3-b25f-e4a22b541d23" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"X-Cache": [ "CONFIG_NOCACHE" ],
"X-MSEdge-Ref": [ "Ref A: A10AAA1AF9ED45308886F92CE201DEFB Ref B: CO6AA3150218047 Ref C: 2024-09-05T20:14:21Z" ],
"Date": [ "Thu, 05 Sep 2024 20:14:21 GMT" ]
"X-MSEdge-Ref": [ "Ref A: 10297B46EFF9435AB8052B90563AC393 Ref B: CO6AA3150217019 Ref C: 2024-10-04T00:13:30Z" ],
"Date": [ "Fri, 04 Oct 2024 00:13:30 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "475" ],
Expand Down Expand Up @@ -91,15 +91,15 @@
"Headers": {
"Cache-Control": [ "no-store, no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1196" ],
"x-ms-request-id": [ "07a3a1cf-1f5c-42e0-86a3-42476d156224" ],
"x-ms-correlation-request-id": [ "07a3a1cf-1f5c-42e0-86a3-42476d156224" ],
"x-ms-routing-request-id": [ "WESTUS2:20240905T201421Z:07a3a1cf-1f5c-42e0-86a3-42476d156224" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1199" ],
"x-ms-request-id": [ "49fb6b06-ad44-43ed-afe3-106392e54af5" ],
"x-ms-correlation-request-id": [ "49fb6b06-ad44-43ed-afe3-106392e54af5" ],
"x-ms-routing-request-id": [ "WESTUS2:20241004T001331Z:49fb6b06-ad44-43ed-afe3-106392e54af5" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"X-Cache": [ "CONFIG_NOCACHE" ],
"X-MSEdge-Ref": [ "Ref A: 1364778BA5784CCABB8BDD846706352F Ref B: CO6AA3150218047 Ref C: 2024-09-05T20:14:21Z" ],
"Date": [ "Thu, 05 Sep 2024 20:14:21 GMT" ]
"X-MSEdge-Ref": [ "Ref A: 4ADD100A0D954F25BD07F367518D779B Ref B: CO6AA3150217019 Ref C: 2024-10-04T00:13:31Z" ],
"Date": [ "Fri, 04 Oct 2024 00:13:30 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "176" ],
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"Headers": {
"Cache-Control": [ "no-store, no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1196" ],
"x-ms-request-id": [ "6454be45-70cc-42eb-8804-b82eb56a0b5f" ],
"x-ms-correlation-request-id": [ "6454be45-70cc-42eb-8804-b82eb56a0b5f" ],
"x-ms-routing-request-id": [ "WESTUS2:20240905T201433Z:6454be45-70cc-42eb-8804-b82eb56a0b5f" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1199" ],
"x-ms-request-id": [ "c5de505a-cb74-431f-b351-7b468092882e" ],
"x-ms-correlation-request-id": [ "c5de505a-cb74-431f-b351-7b468092882e" ],
"x-ms-routing-request-id": [ "WESTUS2:20241004T001342Z:c5de505a-cb74-431f-b351-7b468092882e" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"X-Cache": [ "CONFIG_NOCACHE" ],
"X-MSEdge-Ref": [ "Ref A: 11B1BA06571E4B64B21D5511861EE948 Ref B: CO6AA3150218047 Ref C: 2024-09-05T20:14:33Z" ],
"Date": [ "Thu, 05 Sep 2024 20:14:33 GMT" ]
"X-MSEdge-Ref": [ "Ref A: D7F704B2BA6D4D9994D31ACE6638CBBC Ref B: CO6AA3150217019 Ref C: 2024-10-04T00:13:41Z" ],
"Date": [ "Fri, 04 Oct 2024 00:13:41 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "187" ],
Expand Down Expand Up @@ -55,14 +55,14 @@
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-failure-cause": [ "gateway" ],
"x-ms-request-id": [ "b2709c02-e9ba-46c1-9dfe-8d0b7522822c" ],
"x-ms-correlation-request-id": [ "b2709c02-e9ba-46c1-9dfe-8d0b7522822c" ],
"x-ms-routing-request-id": [ "WESTUS2:20240905T201433Z:b2709c02-e9ba-46c1-9dfe-8d0b7522822c" ],
"x-ms-request-id": [ "1c84ede4-b618-4f01-bb9b-6989e6a66487" ],
"x-ms-correlation-request-id": [ "1c84ede4-b618-4f01-bb9b-6989e6a66487" ],
"x-ms-routing-request-id": [ "WESTUS:20241004T001342Z:1c84ede4-b618-4f01-bb9b-6989e6a66487" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"X-Cache": [ "CONFIG_NOCACHE" ],
"X-MSEdge-Ref": [ "Ref A: 8F37FC71A0C241D48BF7243298DB59B4 Ref B: CO6AA3150218047 Ref C: 2024-09-05T20:14:33Z" ],
"Date": [ "Thu, 05 Sep 2024 20:14:33 GMT" ]
"X-MSEdge-Ref": [ "Ref A: 80C36993595B47F28A329DCED6CD0518 Ref B: CO6AA3150217019 Ref C: 2024-10-04T00:13:42Z" ],
"Date": [ "Fri, 04 Oct 2024 00:13:41 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "481" ],
Expand Down Expand Up @@ -92,14 +92,14 @@
"Cache-Control": [ "no-store, no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1199" ],
"x-ms-request-id": [ "1257d26c-a14d-4d4e-911e-c86fd33c0b14" ],
"x-ms-correlation-request-id": [ "1257d26c-a14d-4d4e-911e-c86fd33c0b14" ],
"x-ms-routing-request-id": [ "WESTUS2:20240905T201433Z:1257d26c-a14d-4d4e-911e-c86fd33c0b14" ],
"x-ms-request-id": [ "e44d76ea-dd6f-4807-92f2-08afda7a4377" ],
"x-ms-correlation-request-id": [ "e44d76ea-dd6f-4807-92f2-08afda7a4377" ],
"x-ms-routing-request-id": [ "WESTUS2:20241004T001342Z:e44d76ea-dd6f-4807-92f2-08afda7a4377" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"X-Cache": [ "CONFIG_NOCACHE" ],
"X-MSEdge-Ref": [ "Ref A: 48CED4DFFF6644959BA84B709E00150C Ref B: CO6AA3150218047 Ref C: 2024-09-05T20:14:33Z" ],
"Date": [ "Thu, 05 Sep 2024 20:14:33 GMT" ]
"X-MSEdge-Ref": [ "Ref A: 5A008CB59F234CC9891E831EEA2FFF3D Ref B: CO6AA3150217019 Ref C: 2024-10-04T00:13:42Z" ],
"Date": [ "Fri, 04 Oct 2024 00:13:41 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "187" ],
Expand Down
Loading

0 comments on commit ea7cf0e

Please sign in to comment.