Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure 知识点 #68

Open
aiastia opened this issue May 13, 2022 · 4 comments
Open

azure 知识点 #68

aiastia opened this issue May 13, 2022 · 4 comments

Comments

@aiastia
Copy link
Owner

aiastia commented May 13, 2022

协同管理开启:
订阅->访问控制->添加->添加共同管理员->输入邮箱确认
订阅->访问控制->添加->添加角色->输入邮箱->角色:所有者

@aiastia
Copy link
Owner Author

aiastia commented May 13, 2022

@aiastia
Copy link
Owner Author

aiastia commented May 13, 2022

3.zip

@aiastia
Copy link
Owner Author

aiastia commented May 14, 2022

wget --trust-server-names az.124678.xyz

@aiastia
Copy link
Owner Author

aiastia commented May 24, 2022

API获取方法:

方法1:使用cloudshell by Powershell

多订阅:az ad sp create-for-rbac --role owner --scopes /subscriptions/订阅ID

单订阅:$sub_id=$(az account list --query [].id -o tsv) ; az ad sp create-for-rbac --role owner --scopes /subscriptions/$sub_id

方法2:cloudshell by Bash

sub_id=$(az account list --query [].id -o tsv) && az ad sp create-for-rbac --role contributor --scopes /subscriptions/$sub_id

如果自定义请参考Azure API文档:https://docs.microsoft.com/zh-cn/cli/azure/role

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant