bland-lamp-97030
02/11/2019, 10:33 PMbland-lamp-97030
02/11/2019, 10:33 PMstocky-spoon-28903
02/12/2019, 12:55 AMstocky-spoon-28903
02/12/2019, 12:55 AMlittle-river-49422
02/12/2019, 7:30 AMflat-river-10700
02/12/2019, 11:18 PMincalculable-sundown-82514
02/12/2019, 11:19 PMflat-river-10700
02/12/2019, 11:19 PMflat-river-10700
02/12/2019, 11:19 PMincalculable-sundown-82514
02/12/2019, 11:20 PMlittle-river-49422
02/13/2019, 5:17 PMlittle-river-49422
02/13/2019, 5:17 PMprint(redis_acct.primary_access_key)
returns <pulumi.output.Output object at 0x04FDC310>little-river-49422
02/13/2019, 5:17 PMlittle-river-49422
02/13/2019, 5:18 PMlittle-river-49422
02/13/2019, 5:19 PMlittle-river-49422
02/13/2019, 5:25 PMlittle-river-49422
02/14/2019, 9:06 PMlittle-river-49422
02/14/2019, 9:07 PMsubnet.id
in a AKS resource definition and it does this:
error: azure:containerservice/kubernetesCluster:KubernetesCluster resource 'aks' has a problem: Can not parse "agent_pool_profile.0.vnet_subnet_id" as a resource id: Cannot parse Azure ID: parse : empty url
if I comment out AKS and provision network and remove comments and rerun it workslittle-river-49422
02/14/2019, 9:11 PMimport pulumi
from pulumi import ResourceOptions
from pulumi_azure.core import ResourceGroup
from pulumi_azure.role import Assignment
from <http://pulumi_azure.ad|pulumi_azure.ad> import Application, ServicePrincipal, ServicePrincipalPassword
from pulumi_azure.containerservice import KubernetesCluster, Registry
from pulumi_azure.network import VirtualNetwork, Subnet
from pulumi_kubernetes import Provider
from pulumi_kubernetes.apiextensions.v1beta1 import CustomResourceDefinition
from pulumi_kubernetes.rbac.v1 import ClusterRole
app = Application(
'aks-app',
name=gen_name('aks-app')
)
sp = ServicePrincipal(
'aks-sp',
application_id=app.application_id
)
sppwd = ServicePrincipalPassword(
'aks-sp-pwd',
service_principal_id=sp.id,
end_date='2020-01-01T01:02:03Z',
value="ASKNH(U#D2fji0nfh2f"
)
rg = ResourceGroup(
'rg',
name=gen_name('rg'),
location='westeurope'
)
vnet = VirtualNetwork(
'vnet',
name=gen_name('vnet'),
location=rg.location,
resource_group_name=rg.name,
address_spaces=['10.0.0.0/8']
)
subnet = Subnet(
'subnet',
name=gen_name('subnet'),
resource_group_name=rg.name,
address_prefix='10.0.0.0/24',
virtual_network_name=vnet.name
)
aks = KubernetesCluster(
'aks',
name=gen_name('aks'),
location=rg.location,
resource_group_name=rg.name,
kubernetes_version="1.12.4",
dns_prefix="dns",
agent_pool_profile=(
{
"name": "type1",
"count": 2,
"vmSize": "Standard_B2ms",
"osType": "Linux",
"maxPods": 110,
"vnet_subnet_id": subnet.id
}
),
linux_profile=(
{
"adminUsername": "azureuser",
"ssh_key": [
{
"keyData": "sshkey"
}
]
}
),
service_principal={
"clientId": app.application_id,
"clientSecret": sppwd.value
},
role_based_access_control={
"enabled": "true"
},
network_profile=(
{
"networkPlugin": "azure",
"serviceCidr": "10.10.0.0/16",
"dns_service_ip": "10.10.0.10",
"dockerBridgeCidr": "172.17.0.1/16"
}
)
)
little-river-49422
02/14/2019, 9:11 PMlittle-river-49422
02/14/2019, 9:34 PMlittle-river-49422
02/14/2019, 9:34 PMerror: azure:ad/servicePrincipalPassword:ServicePrincipalPassword resource 'aks-sp-pwd' has a problem: "service_principal_id" isn't a valid UUID (""): uuid string is wrong length
little-river-49422
02/14/2019, 9:34 PMlittle-river-49422
02/14/2019, 9:35 PMincalculable-sundown-82514
02/14/2019, 9:39 PMvnet_subnet_id
makes it sound like itโs looking for a resourceID - is that different than what subnet.id
returns?little-river-49422
02/14/2019, 9:41 PMlittle-river-49422
02/14/2019, 9:41 PMincalculable-sundown-82514
02/14/2019, 9:42 PMlittle-river-49422
02/14/2019, 9:42 PMlittle-river-49422
02/14/2019, 9:42 PM