File tree Expand file tree Collapse file tree 3 files changed +1
-101
lines changed
src/ResourceManager/Resources/Commands.Resources Expand file tree Collapse file tree 3 files changed +1
-101
lines changed Original file line number Diff line number Diff line change 192
192
<Compile Include =" Models.Authorization\AuthorizationClient.cs" />
193
193
<Compile Include =" ProviderFeatures\RegisterAzureProviderFeatureCmdlet.cs" />
194
194
<Compile Include =" Providers\GetAzureProviderCmdlet.cs" />
195
- <Compile Include =" Providers\GetAzureProviderOperationCmdlet.cs" />
195
+ <Compile Include =" Providers\GetAzureProviderOperationCmdlet.cs" />
196
196
<Compile Include =" Providers\RegisterAzureProviderCmdlet.cs" />
197
197
<Compile Include =" Providers\UnregisterAzureProviderCmdlet.cs" />
198
198
<Compile Include =" ResourceGroups\GetAzureResourceGroupLogCommand.cs" />
204
204
<Compile Include =" RoleAssignments\GetAzureRoleAssignmentCommand.cs" />
205
205
<Compile Include =" RoleAssignments\NewAzureRoleAssignmentCommand.cs" />
206
206
<Compile Include =" RoleDefinitions\GetAzureRoleDefinitionCommand.cs" />
207
- <Compile Include =" RoleDefinitions\NewAzureRoleDefinitionCommand.cs" />
208
207
<Compile Include =" Templates\TestAzureResourceGroupTemplateCommand.cs" />
209
208
<Compile Include =" Templates\SaveAzureResourceGroupGalleryTemplateCommand.cs" />
210
209
<Compile Include =" Templates\GetAzureResourceGroupGalleryTemplateCommand.cs" />
Original file line number Diff line number Diff line change @@ -179,37 +179,6 @@ public PSRoleDefinition GetRoleRoleDefinition(string name)
179
179
return role ;
180
180
}
181
181
182
- public PSRoleDefinition CreateRoleDefinition ( PSRoleDefinition roleDefinition )
183
- {
184
- AuthorizationClient . ValidateRoleDefinition ( roleDefinition ) ;
185
-
186
- Guid newRoleDefinitionId = Guid . NewGuid ( ) ;
187
- RoleDefinitionCreateOrUpdateParameters parameters = new RoleDefinitionCreateOrUpdateParameters ( )
188
- {
189
- RoleDefinition = new RoleDefinition ( )
190
- {
191
- Name = newRoleDefinitionId ,
192
- Properties = new RoleDefinitionProperties ( )
193
- {
194
- AssignableScopes = roleDefinition . AssignableScopes ,
195
- Description = roleDefinition . Description ,
196
- Permissions = new List < Permission > ( )
197
- {
198
- new Permission ( )
199
- {
200
- Actions = roleDefinition . Actions ,
201
- NotActions = roleDefinition . NotActions
202
- }
203
- } ,
204
- RoleName = roleDefinition . Name ,
205
- Type = "CustomRole"
206
- }
207
- }
208
- } ;
209
-
210
- return AuthorizationManagementClient . RoleDefinitions . CreateOrUpdate ( newRoleDefinitionId , parameters ) . RoleDefinition . ToPSRoleDefinition ( ) ;
211
- }
212
-
213
182
private static void ValidateRoleDefinition ( PSRoleDefinition roleDefinition )
214
183
{
215
184
if ( string . IsNullOrWhiteSpace ( roleDefinition . Name ) )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments