Coder Social home page Coder Social logo

Comments (14)

haiyuazhang avatar haiyuazhang commented on June 17, 2024 1

@Fred-sun Yes, a private DNS can no longer be created via this module, so a new module need to be
created.

from azure.

Fred-sun avatar Fred-sun commented on June 17, 2024 1

@haiyuazhang @Fred-sun Do you want me to work in the module? I will need you @haiyuazhang to test it.

@imjoseangel Welcome you work to add this module. I will test when you finish change! Thank you very much!

from azure.

thekoma avatar thekoma commented on June 17, 2024

I confirm this problem.
Also seems that the private/public type: flag is ignored and the zone is alwais created as public.

from azure.

imjoseangel avatar imjoseangel commented on June 17, 2024

Guys, Could you please check if you can create from the Azure Portal? From my side, it is working fine:

ansible -i inventories/local/hosts localhost -m azure_rm_dnszone -a "resource_group=rg name=private.example.com state=present type=private"
localhost | CHANGED => {
    "changed": true,
    "check_mode": false,
    "state": {
        "id": "/subscriptions/hidden/resourceGroups/rg/providers/Microsoft.Network/dnszones/private.example.com",
        "name": "private.example.com",
        "name_servers": null,
        "number_of_record_sets": 1,
        "registration_virtual_networks": null,
        "resolution_virtual_networks": null,
        "type": "private"
    }
}

from azure.

Fred-sun avatar Fred-sun commented on June 17, 2024

@bit4man My test is also OK, could you tell me how you met this question? Thank you very much!

localhost | CHANGED => {
    "changed": true,
    "check_mode": false,
    "state": {
        "id": "/subscriptions/*********************************/resourceGroups/v-xisurg/providers/Microsoft.Network/dnszones/private1.example.com",
        "name": "private1.example.com",
        "name_servers": null,
        "number_of_record_sets": 1,
        "registration_virtual_networks": null,
        "resolution_virtual_networks": null,
        "tags": {},
        "type": "private"
    }
}

from azure.

bit4man avatar bit4man commented on June 17, 2024

@imjoseangel Note I'm uzing AzureUSGovernment - not the commercial end point. When I use the azure portal it's "portal.azure.us" - and I can create and link private DNS zones on the portal side (a few weeks back I could not). I don't have all the data at my finger tips, but the API and implementation of PrivateDNS has changed very recently on AzureUSGov and it looks like the old implementation is no longer available.

from azure.

imjoseangel avatar imjoseangel commented on June 17, 2024

Thank you @bit4man . Could you please test specifiying the cloud_environment as defined under azure_rm_dnszone_module documentation?

- name: Create a DNS zone
  azure_rm_dnszone:
    resource_group: rg
    name: private.example.com
    type: private
    cloud_environment: AzureUSGovernment

or

ansible -i inventories/local/hosts localhost -m azure_rm_dnszone -a "resource_group=rg name=private.example.com state=present type=private cloud_environment=AzureUSGovernment"

Thank you!

from azure.

Fred-sun avatar Fred-sun commented on June 17, 2024

@bit4man Dns zones and private Dns are two different modules, in which Dns zones(type: public and private). You can refer to the following two links. thank you!
private Dns: https://docs.microsoft.com/en-us/rest/api/dns/privatedns/privatezones
Dns zones: https://docs.microsoft.com/en-us/rest/api/dns/zones

from azure.

Fred-sun avatar Fred-sun commented on June 17, 2024

@haiyuazhang Could you please help confirm whether a new module azure_rm_dnsprivatezone needs to be added to distinguish between DNS zone and private DNS? Thank you very much!

from azure.

Fred-sun avatar Fred-sun commented on June 17, 2024

@haiyuazhang Thanks for your feedback. Will you add this module? Thank you!

from azure.

imjoseangel avatar imjoseangel commented on June 17, 2024

@haiyuazhang @Fred-sun Do you want me to work in the module? I will need you @haiyuazhang to test it.

from azure.

imjoseangel avatar imjoseangel commented on June 17, 2024

@Fred-sun PR #122 created. As soon as we test and merge this, I will work in the info one.

I have kept the name as azure_rm_privatednszone instead of azure_rm_dnsprivatezone to maintain naming consistency with Azure SDK. Tell me if you agree or you prefer to rename the module.

Thank you very much for your help!

from azure.

imjoseangel avatar imjoseangel commented on June 17, 2024

@Fred-sun and @haiyuazhang

I also have developed the azure_rm_privatednszone_info. As soon as we get this merged, I will create a new PR.

Have a nice rest of the weekend

from azure.

Fred-sun avatar Fred-sun commented on June 17, 2024

@imjoseangel Sorry reply you later, we will review and advance the merger as soon as possible. Thank you!

from azure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.