forked from NixOS/nixops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-mgmt-credentials.nix
55 lines (49 loc) · 1.49 KB
/
azure-mgmt-credentials.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
lib: name:
with lib;
{
subscriptionId = mkOption {
default = "";
example = "f1ce4500-ab06-495a-8d59-a7cfe9e46dae";
type = types.str;
description = ''
The Azure Subscription ID. If left empty, it defaults to the
contents of the environment variable <envar>AZURE_SUBSCRIPTION_ID</envar>.
'';
};
authority = mkOption {
default = "";
example = "https://login.windows.net/ACTIVE_DIRECTORY_TENANT.onmicrosoft.com";
type = types.str;
description = ''
The Azure Authority URL. If left empty, it defaults to the
contents of the environment variable <envar>AZURE_AUTHORITY_URL</envar>.
'';
};
user = mkOption {
default = "";
example = "username@ACTIVE_DIRECTORY_TENANT.onmicrosoft.com";
type = types.str;
description = ''
The Azure User. If left empty, it defaults to the
contents of the environment variable <envar>AZURE_USER</envar>.
'';
};
servicePrincipal = mkOption {
default = "";
example = "aaaaaaaa-0000-aaaa-0000-aaaaaaaaaaaa";
type = types.str;
description = ''
The Azure Service Principal Id. If left empty, it defaults to the
contents of the environment variable <envar>AZURE_SERVICE_PRINCIPAL</envar>.
'';
};
password = mkOption {
default = "";
example = "password";
type = types.str;
description = ''
The Azure Password. If left empty, it defaults to the
contents of the environment variable <envar>AZURE_PASSWORD</envar>.
'';
};
}