File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 18
18
- Additional information about change #1
19
19
-->
20
20
## Upcoming Release
21
- * Added a new parameter ` -AsPlainText ` to ` Get-AzKeyVaultSecret ` to directly return the secret in plain text
21
+ * Added a new parameter ` -AsPlainText ` to ` Get-AzKeyVaultSecret ` to directly return the secret in plain text [ # 13630 ]
22
22
* Supported selective restore a key from a managed HSM full backup [ #13526 ]
23
23
* Added missing return objects of ` Get-Secret ` in SecretManagement module
24
+ * Fixed an issue that may cause vault to be created without default access policy [ #13687 ]
24
25
25
26
## Version 3.2.0
26
27
* Supported "all" as an option when setting key vault access policies
Original file line number Diff line number Diff line change 20
20
using Microsoft . Azure . Commands . ResourceManager . Common . Paging ;
21
21
using Microsoft . Azure . Commands . ResourceManager . Common . Tags ;
22
22
using Microsoft . Azure . Graph . RBAC . Version1_6 . ActiveDirectory ;
23
+ using Graph20190326Ad = Microsoft . Azure . Graph . RBAC . Version1_6_20190326 . ActiveDirectory ;
24
+ using Microsoft . Azure . Graph . RBAC . Version1_6_20190326 ;
23
25
using Microsoft . Azure . Management . Internal . Resources ;
24
26
using Microsoft . Azure . Management . Internal . Resources . Models ;
25
27
using Microsoft . Azure . Management . Internal . Resources . Utilities ;
@@ -234,14 +236,9 @@ protected string GetCurrentUsersObjectId()
234
236
string objectId = null ;
235
237
if ( DefaultContext . Account . Type == AzureAccount . AccountType . User )
236
238
{
237
- // TODO: Remove IfDef
238
- #if NETSTANDARD
239
- objectId = ActiveDirectoryClient . GetObjectId ( new ADObjectFilterOptions { UPN = DefaultContext . Account . Id } ) . ToString ( ) ;
240
- #else
241
- var userFetcher = ActiveDirectoryClient . Me . ToUser ( ) ;
242
- var user = userFetcher . ExecuteAsync ( ) . Result ;
243
- objectId = user . ObjectId ;
244
- #endif
239
+ var adClient = new Graph20190326Ad . ActiveDirectoryClient ( DefaultProfile . DefaultContext ) ;
240
+ // this operation is only in 20190326 version of API
241
+ objectId = adClient . GraphClient . SignedInUser . Get ( ) ? . ObjectId ;
245
242
}
246
243
247
244
return objectId ;
You can’t perform that action at this time.
0 commit comments