MS Azure创建永久密钥

1.先打开:https://developer.microsoft.com/en-us/graph/graph-explorer

2.用管理员帐号登录。

3.点击”modify permission“,将里面所有权限同意一下。

4.选择POST方法,并把请求地址改为”https://graph.microsoft.com/v1.0/applications/对象 ID/addPassword“

5.复制Azure应用的对象ID。

5.在输入框输入一下内容:

{
    "passwordCredential": {
        "displayName": "你想要给密钥的描述",
        "endDateTime": "9999-12-31T00:00:00Z"
    }
}

点击”Run query“,就可以在下面的框里看到如下内容:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential",
    "customKeyIdentifier": null,
    "displayName": "testing",
    "endDateTime": "9999-12-31T00:00:00Z",
    "hint": "B8A",
    "keyId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "secretText": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "startDateTime": "2023-01-07T08:48:27.8183506Z"
}

其中”secretText“就是密钥了。

转载时请保留本文章地址!!!


评论

  1. 11
    Windows Chrome 110.0.0.0
    1年前
    2023-3-03 22:23:08

    Forbidden – 403 – 2481ms. Either the signed-in user does not have sufficient privileges, or you need to consent to one of the permissions on the Modify permissions tab可是我都给了权限了

  2. 11
    Windows Chrome 110.0.0.0
    1年前
    2023-3-03 22:24:05

    没事了解决了,感谢

发送评论 编辑评论


				

|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇