I have a driving licence which is issued in Azerbaijan and I have been living in Germany for 2 years(I have permission of residence).Clearly I can't use my driving licence in Germany after 6 month from getting a permission of residence.In this case can I drive a car using my driving licence in the Netherlands?
If you don't actually live in The Netherlands, so you are really a tourist, you can use your foreign drivers license.
Quoting from the official government page:
Tijdelijk verblijf in Nederland met buitenlands rijbewijs Neemt u aan het verkeer deel terwijl u tijdelijk in Nederland verblijft? Bijvoorbeeld tijdens uw vakantie? Dan moet u een geldig buitenlands rijbewijs hebben.
Temporary stay in The Netherlands with foreign drivers license. Participating in traffic while temporarily staying in The Netherlands? For example on your holidays? Then you need a valid foreign drivers license.
It seems that you can.
The RDW - the Netherlands Vehicle Authority - have a little bit of information in English on their website. Specifically (but confusingly), the "Using a foreign driving licence after becoming a resident of the Netherlands" page has a section at the bottom:
A tourist in the Netherlands? Are you not settling in the Netherlands, but you are here as a tourist? In that case, you can drive on the Dutch roads using your foreign driving licence. Has your driving licence been issued in a country outside of the EU/EFTA? In that case, your driving licence categories must comply with the Vienna Convention (categories A, B, C, D, E). If your driving licence does not comply with this, you are advised to have an international driving licence apart from your foreign driving licence.
You should check that your license complies with the Vienna Convention on Road Traffic (although as Azerbaijan is a signatory I would hazard a guess that it ought to).