Skip to content

Commit cb53f5e

Browse files
Codegen/resources (#18967)
* Move Resources to main * changelog, breakingchangeissue,swagger spec * fix exmaples * remove * Update ChangeLog.md * Update ChangeLog.md Co-authored-by: azure-powershell-bot <[email protected]>
1 parent fb3fdf9 commit cb53f5e

File tree

208 files changed

+4080
-1866
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+4080
-1866
lines changed

src/Resources/Authorization.Autorest/docs/Az.Authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Authorization
3-
Module Guid: e2588dd1-787f-49a3-8fe0-7ef5ded0f7b0
3+
Module Guid: 7410e7c8-1228-4519-b21e-ede757f80297
44
Download Help Link: https://docs.microsoft.com/powershell/module/az.authorization
55
Help Version: 1.0.0.0
66
Locale: en-US

src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentSchedule.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ Get the specified role assignment schedule for a resource scope
3636

3737
### Example 1: List all role assignment schedules for a resource
3838
```powershell
39-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
40-
PS C:\> Get-AzRoleAssignmentSchedule -Scope $scope
39+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
40+
Get-AzRoleAssignmentSchedule -Scope $scope
41+
```
4142

43+
```output
4244
Name Type Scope
4345
---- ---- -----
4446
986d4ad8-f513-4a21-92e5-7163486e9e7c Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d
@@ -52,9 +54,11 @@ To call the API, you must have access to the `Microsoft.Authorization/roleAssign
5254

5355
### Example 2: List all My role assignment schedules for a resource
5456
```powershell
55-
PS C:\> $scope = "/" # "/" stands for tenant level resource
56-
PS C:\> Get-AzRoleAssignmentSchedule -Scope $scope -Filter "asTarget()"
57+
$scope = "/" # "/" stands for tenant level resource
58+
Get-AzRoleAssignmentSchedule -Scope $scope -Filter "asTarget()"
59+
```
5760

61+
```output
5862
Name Type Scope RoleDefinitionId
5963
---- ---- ----- ----------------
6064
4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorizatio…
@@ -67,10 +71,12 @@ Returns all `roleAssignmentSchedules` for the `scope` which are assigned to the
6771

6872
### Example 3: List all role assignment schedules for a resource with filters
6973
```powershell
70-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
71-
PS C:\> $filter = "roleDefinitionId eq '/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635'"
72-
PS C:\> Get-AzRoleAssignmentSchedule -Scope $scope -Filter $filter
74+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
75+
$filter = "roleDefinitionId eq '/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635'"
76+
Get-AzRoleAssignmentSchedule -Scope $scope -Filter $filter
77+
```
7378

79+
```output
7480
Name Type Scope RoleDefinitionId
7581
---- ---- ----- ----------------
7682
314aa57e-064d-46c3-964e-a0d20989c1a2 Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/…
@@ -98,9 +104,11 @@ Supported filters:
98104

99105
### Example 4: Get a role assignment schedule by scope and name
100106
```powershell
101-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
102-
PS C:\> Get-AzRoleAssignmentSchedule -Scope $scope -Name "4cd7e26b-8eca-425c-969d-ec708c88bf18"
107+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
108+
Get-AzRoleAssignmentSchedule -Scope $scope -Name "4cd7e26b-8eca-425c-969d-ec708c88bf18"
109+
```
103110

111+
```output
104112
Name Type Scope RoleDefinitionId
105113
---- ---- ----- ----------------
106114
4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentSchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/…
@@ -210,7 +218,7 @@ COMPLEX PARAMETER PROPERTIES
210218
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
211219
212220
213-
INPUTOBJECT <IAuthorizationIdentity>: Identity Parameter
221+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
214222
- `[Id <String>]`: Resource identity path
215223
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
216224
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.

src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleInstance.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ Gets the specified role assignment schedule instance.
3737

3838
### Example 1: List all role assignment schedule instances for a resource
3939
```powershell
40-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
41-
PS C:\> Get-AzRoleAssignmentScheduleInstance -Scope $scope
40+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
41+
Get-AzRoleAssignmentScheduleInstance -Scope $scope
42+
```
4243

44+
```output
4345
Name Type Scope
4446
---- ---- -----
4547
986d4ad8-f513-4a21-92e5-7163486e9e7c Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d
@@ -53,9 +55,11 @@ To call the API, you must have access to the `Microsoft.Authorization/roleAssign
5355

5456
### Example 2: List all My role assignment schedule instances for a resource
5557
```powershell
56-
PS C:\> $scope = "/" # "/" stands for tenant level resource
57-
PS C:\> Get-AzRoleAssignmentScheduleInstance -Scope $scope -Filter "asTarget()"
58+
$scope = "/" # "/" stands for tenant level resource
59+
Get-AzRoleAssignmentScheduleInstance -Scope $scope -Filter "asTarget()"
60+
```
5861

62+
```output
5963
Name Type Scope RoleDefinitionId
6064
---- ---- ----- ----------------
6165
4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorizatio…
@@ -68,10 +72,12 @@ Returns all `roleAssignmentScheduleInstances` for the `scope` which are assigned
6872

6973
### Example 3: List all role assignment schedule instances for a resource with filters
7074
```powershell
71-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
72-
PS C:\> $filter = "roleDefinitionId eq '/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635'"
73-
PS C:\> Get-AzRoleAssignmentScheduleInstance -Scope $scope -Filter $filter
75+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
76+
$filter = "roleDefinitionId eq '/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635'"
77+
Get-AzRoleAssignmentScheduleInstance -Scope $scope -Filter $filter
78+
```
7479

80+
```output
7581
Name Type Scope RoleDefinitionId
7682
---- ---- ----- ----------------
7783
314aa57e-064d-46c3-964e-a0d20989c1a2 Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/…
@@ -99,9 +105,11 @@ Supported filters:
99105

100106
### Example 4: Get a role assignment schedule instances by scope and name
101107
```powershell
102-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
103-
PS C:\> Get-AzRoleAssignmentScheduleInstance -Scope $scope -Name "4cd7e26b-8eca-425c-969d-ec708c88bf18"
108+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
109+
Get-AzRoleAssignmentScheduleInstance -Scope $scope -Name "4cd7e26b-8eca-425c-969d-ec708c88bf18"
110+
```
104111

112+
```output
105113
Name Type Scope RoleDefinitionId
106114
---- ---- ----- ----------------
107115
4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleAssignmentScheduleInstances /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/…
@@ -211,7 +219,7 @@ COMPLEX PARAMETER PROPERTIES
211219
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
212220
213221
214-
INPUTOBJECT <IAuthorizationIdentity>: Identity Parameter
222+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
215223
- `[Id <String>]`: Resource identity path
216224
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
217225
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.

src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleRequest.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ Get the specified role assignment schedule request.
3737

3838
### Example 1: List all role assignment schedule requests for a resource
3939
```powershell
40-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
41-
PS C:\> Get-AzRoleAssignmentScheduleRequest -Scope $scope
40+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
41+
Get-AzRoleAssignmentScheduleRequest -Scope $scope
42+
```
4243

44+
```output
4345
Name Type Scope
4446
---- ---- -----
4547
01b86d0b-2d7d-4ee2-bedb-68417ca9cc6a Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d
@@ -52,9 +54,11 @@ Returns all `roleAssignmentScheduleRequests` for the `scope`.
5254

5355
### Example 2: List all My role assignment schedule requests for a resource
5456
```powershell
55-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
56-
PS C:\> Get-AzRoleAssignmentScheduleRequest -Scope $scope -Filter "asTarget()"
57+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
58+
Get-AzRoleAssignmentScheduleRequest -Scope $scope -Filter "asTarget()"
59+
```
5760

61+
```output
5862
Name Type Scope RoleDefinitionId
5963
---- ---- ----- ----------------
6064
2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov…
@@ -67,9 +71,11 @@ Returns all `roleAssignmentScheduleRequests` for the `scope` which are assigned
6771

6872
### Example 3: List all role assignment schedule requests for a resource where calling user is an approver
6973
```powershell
70-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
71-
PS C:\> Get-AzRoleAssignmentScheduleRequest -Scope $scope -Filter "asApprover()"
74+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
75+
Get-AzRoleAssignmentScheduleRequest -Scope $scope -Filter "asApprover()"
76+
```
7277

78+
```output
7379
Name Type Scope RoleDefinitionId
7480
---- ---- ----- ----------------
7581
2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/prov…
@@ -82,9 +88,11 @@ Returns all `roleAssignmentScheduleRequests` for the `scope` on which the callin
8288

8389
### Example 4: Get a role assignment schedule request by scope and name
8490
```powershell
85-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
86-
PS C:\> Get-AzRoleAssignmentScheduleRequest -Scope $scope -Name "2cc018c2-27f8-4730-a0bc-b6a8fcee3e70"
91+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
92+
Get-AzRoleAssignmentScheduleRequest -Scope $scope -Name "2cc018c2-27f8-4730-a0bc-b6a8fcee3e70"
93+
```
8794

95+
```output
8896
Name Type Scope RoleDefinitionId
8997
---- ---- ----- ----------------
9098
2cc018c2-27f8-4730-a0bc-b6a8fcee3e70 Microsoft.Authorization/roleAssignmentScheduleRequests /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authoriz…
@@ -195,7 +203,7 @@ COMPLEX PARAMETER PROPERTIES
195203
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
196204
197205
198-
INPUTOBJECT <IAuthorizationIdentity>: Identity Parameter
206+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
199207
- `[Id <String>]`: Resource identity path
200208
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
201209
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.

src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilitySchedule.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ Get the specified role eligibility schedule for a resource scope
3636

3737
### Example 1: List all role eligible schedules for a resource
3838
```powershell
39-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
39+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
4040
Get-AzRoleEligibilitySchedule -Scope $scope
41+
```
4142

43+
```output
4244
Name Type Scope
4345
---- ---- -----
4446
986d4ad8-f513-4a21-92e5-7163486e9e7c Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d
@@ -52,9 +54,11 @@ To call the API, you must have access to the `Microsoft.Authorization/roleAssign
5254

5355
### Example 2: List all My role eligible schedules for a resource
5456
```powershell
55-
PS C:\> $scope = "/" # "/" stands for tenant level resource
57+
$scope = "/" # "/" stands for tenant level resource
5658
Get-AzRoleEligibilitySchedule -Scope $scope -Filter "asTarget()"
59+
```
5760

61+
```output
5862
Name Type Scope RoleDefinitionId
5963
---- ---- ----- ----------------
6064
4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorizatio…
@@ -67,10 +71,12 @@ Returns all `roleEligibilitySchedules` for the `scope` which are assigned to the
6771

6872
### Example 3: List all role eligible schedules for a resource with filters
6973
```powershell
70-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
74+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
7175
$filter = "roleDefinitionId eq '/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635'"
7276
Get-AzRoleEligibilitySchedule -Scope $scope -Filter $filter
77+
```
7378

79+
```output
7480
Name Type Scope RoleDefinitionId
7581
---- ---- ----- ----------------
7682
314aa57e-064d-46c3-964e-a0d20989c1a2 Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/…
@@ -98,9 +104,11 @@ Supported filters:
98104

99105
### Example 4: Get a role eligible schedules by scope and name
100106
```powershell
101-
PS C:\> $scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
107+
$scope = "/subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d"
102108
Get-AzRoleEligibilitySchedule -Scope $scope -Name "4cd7e26b-8eca-425c-969d-ec708c88bf18"
109+
```
103110

111+
```output
104112
Name Type Scope RoleDefinitionId
105113
---- ---- ----- ----------------
106114
4cd7e26b-8eca-425c-969d-ec708c88bf18 Microsoft.Authorization/roleEligibilitySchedules /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d /subscriptions/38ab2ccc-3747-4567-b36b-9478f5602f0d/providers/Microsoft.Authorization/…
@@ -210,7 +218,7 @@ COMPLEX PARAMETER PROPERTIES
210218
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
211219
212220
213-
INPUTOBJECT <IAuthorizationIdentity>: Identity Parameter
221+
`INPUTOBJECT <IAuthorizationIdentity>`: Identity Parameter
214222
- `[Id <String>]`: Resource identity path
215223
- `[RoleAssignmentScheduleInstanceName <String>]`: The name (hash of schedule name + time) of the role assignment schedule to get.
216224
- `[RoleAssignmentScheduleName <String>]`: The name (guid) of the role assignment schedule to get.

0 commit comments

Comments
 (0)