This message was deleted.
# azure
s
This message was deleted.
t
Oh, this is surprising. 2020-11-01 has been default since March, I’d expect somebody would hit this by now… Did Azure unpublish the API version?..
h
with v20200801:
Copy code
error: Code="Failed" Message="The async operation failed." AdditionalInfo=[{"message":"No HTTP resource was found that matches the request URI '<https://management.azure.com/subscriptions/.../providers/Microsoft.Network/publicIPAddresses/iacazuresandbox-ingress-ip?api-version=2020-08-01>'."}]
with v20201101, same InvalidApiVersionParameter as without specifying API version
python code for reference:
Copy code
import pulumi as p
import pulumi_azure_native as az
import pulumi_azure_native.network as net

def create_public_static_ingress_ip(
        resource_group: az.resources.ResourceGroup,
        resource_name: str,
        location: str,
        tags: Mapping[str, str],
) -> None:
    """Provisions a static IP for use with the cluster ingress."""
    api = net.v20201101

    public_static_ip = api.PublicIPAddress(
            resource_name=resource_name,
            resource_group_name=resource_group,
            public_ip_address_name=resource_name,
            location=location,
            public_ip_allocation_method=api.IPAllocationMethod.STATIC,
            sku=api.PublicIPAddressSkuArgs(
                    name=api.PublicIPAddressSkuName.STANDARD,
                    tier=api.PublicIPAddressSkuTier.GLOBAL_,
            ),
            ddos_settings=api.DdosSettingsArgs(
                    protected_ip=True,
                    protection_coverage=api.DdosSettingsProtectionCoverage(
                            value=api.DdosSettingsProtectionCoverage.STANDARD,
                    ),
            ),
            tags=tags,
            opts=p.ResourceOptions(
                    protect=True,
            ),
    )

    p.export('ingress-ip', public_static_ip)
Copy code
pulumi-azure-native==1.25.0
pulumi==3.11.0
also, a lot of the more recent "supported versions" as listed in the error message are apparently not available via pulumi.
t
I’ve just run https://github.com/pulumi/examples/tree/master/azure-py-webserver and it works perfectly well. Could you try it on your end?
👀 1